Jump to content

Adding a spell through dialogue


Recommended Posts

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'".

Link to comment
Share on other sites

  • Recently Browsing   0 members

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