AurianaValoria1 Posted July 1, 2011 Share Posted July 1, 2011 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 More sharing options...
fg109 Posted July 1, 2011 Share Posted July 1, 2011 (edited) I'm assuming you plan on having the player activate the activator to receive the spell. scn spellscript Begin ScriptEffectStart Player.MoveTo SomeCell Endscn activatorscript short doOnce Begin OnActivate if (GetActionRef == Player) && (doOnce == 0) Player.AddSpell CustomSpell set doOnce to 1 endif End Edited July 1, 2011 by fg109 Link to comment Share on other sites More sharing options...
AurianaValoria1 Posted July 1, 2011 Author Share Posted July 1, 2011 Thank you very much! :D Link to comment Share on other sites More sharing options...
AurianaValoria1 Posted July 1, 2011 Author Share Posted July 1, 2011 (edited) Hmm...when I try to provide the cell ID to the first script, it says "invalid object reference." Edited July 1, 2011 by AurianaValoria1 Link to comment Share on other sites More sharing options...
fg109 Posted July 1, 2011 Share Posted July 1, 2011 That was my mistake, you can't teleport to a cell just like that. You need to use that command on a reference, for example, an X marker, or an NPC. Link to comment Share on other sites More sharing options...
AurianaValoria1 Posted July 1, 2011 Author Share Posted July 1, 2011 Oh! OK. Thanks again! Link to comment Share on other sites More sharing options...
Recommended Posts