Jump to content

Recommended Posts

Posted

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 auto

Game.GetPlayer().AddSpell(MySpell)

But, it won't compile, saying "No viable alternative at input 'Spell'".

Posted

Try adding the property through the properties tab, not manually. This will ensure it goes in the right place for a fragment.

  • Recently Browsing   0 members

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