BrotherBob Posted July 28, 2013 Share Posted July 28, 2013 What would I have to do to be able to add a spell to the player after they initiate a certain line of dialogue with an NPC? I tried creating a quest and adding a line of dialogue to a certain NPC. I tried to add a script fragment that would run when the dialogue line begins that adds the spell to the player:Spell Property MySpell = MySpell autoGame.GetPlayer().AddSpell(MySpell)But, it won't compile, saying "No viable alternative at input 'Spell'". Link to comment Share on other sites More sharing options...
Pevey Posted July 28, 2013 Share Posted July 28, 2013 Try adding the property through the properties tab, not manually. This will ensure it goes in the right place for a fragment. Link to comment Share on other sites More sharing options...
BrotherBob Posted July 29, 2013 Author Share Posted July 29, 2013 I'll try that. Thanks! Link to comment Share on other sites More sharing options...
BrotherBob Posted July 29, 2013 Author Share Posted July 29, 2013 Thanks, it worked! Link to comment Share on other sites More sharing options...
Recommended Posts