Jump to content

Can anyone help me with scripts?


CaptainRC

Recommended Posts

You could write down what you specifically want to accomplish with said script.

 

I'm not very good with scripts myself (see my thread on it lolz) but I have the basics down more or less. There are a lot better posters here than I on it.

 

But putting down what you want to do will be the best help :).

Link to comment
Share on other sites

Here's what I want the script to do. I've placed an enchanted sword in an Ayleid ruin. However, I want to make it a holy sword. I want the script to make the sword display a message like "You cannot take this sacred sword. You are not worthy." and be unable to be picked up if the player's infamy is greater than zero. Even better if the sword gives the player a mild shock if he tries to pick it up under that condition. However, if the player's infamy is at zero, then I want it to display something to the effect of "You are worthy. Take this sacred sword. However, if you misuse the sword, you will not be able to use it again until you have redeemed yourself." So should the player gain any infamy, the sword should be unable to be equipped until he gets his infamy back to zero.
Link to comment
Share on other sites

Try this:

 

scn test

Begin OnActivate

if (GetActionRef != Player)
	Return
else if (GetPCInfamy == 0)
	Activate
	MessageBox "You are worthy. Take this sacred sword. However, if you misuse the sword, you will not be able to use it again until you have redeemed yourself."
elseif (GetPCInfamy > 0)
	Cast StandardShockDamageTouch3Journeyman Player
	MessageBox "You cannot take this sacred sword. You are not worthy."
endif

End

Begin GameMode

if (Player.GetEquipped "your sword's object ID here" == 1)
	if (GetPCInfamy > 0)
		Player.UnequipItem "your sword's object ID here"
	endif
endif

End

Begin OnEquip

if (GetPCInfamy > 0)
	MessageBox "Die infidel!  Keep your filthy hands to yourself!"
	PlaySound AMBThunder
	Player.PlayMagicEffectVisuals SHDG
	Player.Kill
endif

End

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...