Malxados Posted March 13, 2009 Share Posted March 13, 2009 Hello, I was wondering what the script would look like to give the PC one/all of the lightsaber/force forms. Thanks, Malxados Link to comment Share on other sites More sharing options...
Star Admiral Posted March 13, 2009 Share Posted March 13, 2009 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 More sharing options...
Malxados Posted March 13, 2009 Author Share Posted March 13, 2009 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 More sharing options...
Malxados Posted March 14, 2009 Author Share Posted March 14, 2009 That's odd. It seems to teach all of the lightsaber forms if I chose one and all the force forms if I choose one of them. That is a bit convenient though. Link to comment Share on other sites More sharing options...
Star Admiral Posted March 14, 2009 Share Posted March 14, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.