Jump to content

Home

Bonus form script?


Malxados

Recommended Posts

This will only work for TSL. Try something like this.

 

void main() {
  int i = 0;
  int nSpell = xxx;
  for( i = 0; i < 7; i++ ) {
     GrantSpell( nSpell, GetFirstPC() );
     nSpell++;
  }
}

 

If I recall correctly, the lightsaber forms are listed in order in the spells.2da file. Replace the xxx in the script with the RowIndex of the first lightsaber form, should be around 250. I'll check once I get home.

 

- Star Admiral

Link to comment
Share on other sites

Star Admiral strikes again!

Anywho, ya I've seen them in the spells.2da.

Thanks for the help. Also, would it work if I inserted "GetScriptParameter(1);" or whatever in there instead of the row number?

Thanks,

Malxados

 

EDIT: It seems to work with it, though I haven't tested it yet

Link to comment
Share on other sites

I thought you wanted the script to give you all the lightsaber forms. If you only want one power at a time, then you can get rid of the for loop.

 

void main() {
  int nSpell = GetScriptParameter( 1 );
  GrantSpell( nSpell, GetFirstPC() );
}

 

Hope it works. :)

 

- Star Admiral

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...