Jump to content

Scripting Assistance


Recommended Posts

Hi, guys! I'm hoping someone can help me with a couple of scripts, since I am no good at it at all. :blush:

 

What I would like is a scripted spell that can teleport the player to a specific cell when cast.

 

I'd also like to attach another script to an activator that gives the scripted spell to the player, but only once.

 

Could anyone help me out?

 

Thanks!

Auri

Link to comment
Share on other sites

I'm assuming you plan on having the player activate the activator to receive the spell.

 

scn spellscript

Begin ScriptEffectStart

Player.MoveTo SomeCell

End

scn activatorscript

short doOnce

Begin OnActivate

if (GetActionRef == Player) && (doOnce == 0)
	Player.AddSpell CustomSpell
	set doOnce to 1
endif

End

Edited by fg109
Link to comment
Share on other sites

Hmm...when I try to provide the cell ID to the first script, it says "invalid object reference." Edited by AurianaValoria1
Link to comment
Share on other sites

  • Recently Browsing   0 members

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