Jump to content

[LE] Help with Custom Ability


Recommended Posts

I tried creating a spell of type Ability, then a magic effect to go with it, and finally a quest with start game enabled and a script which goes like this attached:

 

Scriptname (whatever the name is)

 

Spell Property MagicAbility

 

Event OnInit()

 

Game.GetPlayer().AddSpell(MagicAbility)

 

EndEvent

 

/////////////////////////////////////////////////////////////////

 

Note that the line within Event OnInit is indented

 

I even went into the game and typed "player.addspell <ID> ", but the console says: "Magic Ability not added to <Character Name>".

Edited by Wolfynator
Link to comment
Share on other sites

  • Recently Browsing   0 members

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