Jump to content

Home

Scripting question


Darth_Robinson

Recommended Posts

I'm trying to add a small part to the game that gives the player a new Force Power. I read the 'frequently asked scripting questions' thread, and there was a script there to add a new power, but I'm having a little trouble. Could anyone help me out a bit? I don't really know what this should look like.

Link to comment
Share on other sites

Yes, it's very simple:

void main()
{
GrantSpell( int nSpell, GetObjectByTag("my_npc_tag"));
}

Replace int nSpell by the corresponding row number in spells.2da and replace my_npc_tag by the tag of the npc to which you want to give the force power (look in the utc file to find the tag).

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...