Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

Can't figure out whats wrong


Dane
 Share

Recommended Posts

scn DCureHighestPotion

short Mypercent

short MyAandW

begin scripteffectstart

	set Mypercent to getrandompercent

	set MyAandW to (player.getav Alchemy + player.getav Willpower + player.getav Luck) \ 60

end


begin Scripteffectfinish

	if MyAandW <= 1

		if mypercent <= 60

			player.additemNS DCurePotion1 1

			player.equipitemNS Dcurepotion1

			message "You got cured"

			return

		elseif mypercent > 60 && mypercent <= 70

			player.additemNS DcurePotion2 1

			player.equipitemNS DcurePotion2

			message "You got cured, but it had some nasty side-effects"

			return

		else

			player.additemNS DFailCurePotion 1

			player.equipitemNS DFailCurePotion

			message "You failed to cure yourself, and it had some nasty side-effects"

			return

		endif

	elseif MyAandW > 1 && MyAandW <= 2

		if mypercent <= 65

			player.additemNS DCurePotion1 1

			player.equipitemNS DcurePotion1

			message "You got cured"

			return

		elseif MyPercent > 65 && MyPercent <= 75

			player.additemNS DCurePotion2 1

			player.equipitemNS DCurePotion2

			message "You got cured, but it had some nasty side-effects"

			return

		else

			player.additemNS DFailCurePotion 1

			player.equipitemNS DFailCurePotion

			message "You failed to cure yourself, and it had some nasty side-effects"

			return

		endif

	elseif MyAandW > 2 && MyAandW <= 3

		if mypercent <= 70

			player.additemNS DCurePotion1 1

			player.equipitemNS DCurePotion1

			message "You got cured"

			return

		elseif MyPercent > 70 && MyPercent <= 80

			player.additemNS DcurePotion2 1

			player.equipitemNS DcurePotion2

			message "You got cured, but it had some nasty side-effects"

			return

		else

			player.AdditemNS DFailCurePotion 1

			player.equipitemNS DfailCurePotion

			message "You failed to cure yourself, and it had some nasty side-effects"

			return

		endif

	elseif MyAandW > 3 && MyAandW <= 4

		if mypercent <= 75

			player.additemNS DCurePotion1 1

			player.equipitemNS DcurePotion1

			message "You got cured"

			return

		elseif MyPercent > 75 && MyPercent <= 85

			player.additemNS DcurePotion2 1

			player.equipitemNS DcurePotion2

			message "You got cured, but it had some nasty side-effects"

			return

		else

			player.additemNS DFailCurePotion 1

			player.equipitemNS DfailCurePotion

			message "You failed to cure yourself, and it had some nasty side-effects"

			return

		endif

	elseif MyAandW > 4

		if MyPercent <= 80

			player.addItemNS DCurePotion1 1

			player.EquipitemNS DCurePotion1

			Message "You got cured"

			return

		elseif MyPercent > 80 && MyPercent <= 90

			player.additemNS DCurePotion2 1

			player.equipitemNS DcurePotion2

			Message "You got cured, but it had some nasty side-effects"

			return

		else

			player.additemNS DFailCurePotion 1

			player.equipitemNS DfailCurePotion

			Message "You failed to cure yourself, and it had some nasty side-effects"

			return

		endif

	endif

end

According to the beta-testers this isn't working, and I can't figure out whats not working.

It is a Magic Effect (a potion uses it) and it should add another potion + force"feed" it to the player

Link to comment
Share on other sites

-SNIP-

According to the beta-testers this isn't working, and I can't figure out whats not working.

It is a Magic Effect (a potion uses it) and it should add another potion + force"feed" it to the player

Why do I have a feeling that the "\" in your script should be "/"

:question:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...