zenetx Posted May 12, 2014 Share Posted May 12, 2014 Hi guys! Please, I need some advice. I'm trying to do my first mod and I was doing well ... until now. I did some scripting following this tutorial and everything worked flawless. But now I am stuck with a stupid doubt. I need to do a set quest stage after the game detect the player cast a spell, something like the Winterhold College entry test (but simpler) So I did my script: Scriptname DetectSpellCastScript extends QuestEvent OnSpellCast()SetStage(20)endEvent And it compiles with no errors. The problem is: How do I attach it to a papyrus fragment?? I mean, it is not a function! How can I invoke it without a function? Thanks in advance. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted May 12, 2014 Share Posted May 12, 2014 Apply it as a separate script on the player alias in your quest. Scriptname DetectSpellCastScript Extends ReferenceAlias Event OnSpellCast() GetOwningQuest().SetStage(20) EndEvent Link to comment Share on other sites More sharing options...
zenetx Posted May 12, 2014 Author Share Posted May 12, 2014 Thanks IsharaMeradin, you're a Gentleman and a Scholar. After your advise and a little study, I managed to make it work. For future references, follow another tutorial about this subject: http://www.youtube.com/watch?feature=player_detailpage&v=-3kmTpITwfI#t=723 Link to comment Share on other sites More sharing options...
Recommended Posts