View Full Version : tsl - are the spells that are granted when level up hardcoded?

02-22-2009, 11:47 PM
or are they scripted?

02-22-2009, 11:49 PM
If you are talking about how many you get per level up you can alter the spells.2da file to give you more per level up.

If you are talking about gaining particular spells when you level up then I think that can be scripted in.

I hope that helps :)


Star Admiral
02-22-2009, 11:56 PM
Actually, if you're looking to alter the number of powers per level, you'll need to change the classpowergain.2da file, not the spells.2da.

It is also possible to use a script to grant yourself powers; take a look at the GrantSpell() function. As for automatically gaining powers on level-up, such as the lightsaber forms that are given to you, I'm not sure how you would do it. Perhaps someone knows better?

- Star Admiral

02-23-2009, 12:30 AM
ok thnx guys,that begs the question of "global" scripts that are always run,i can use the global variable "G_PC_LEVEL" but i dont know how to have the script checked each level,or better yet constantly checked,i can but stop gags in it

edit: taling about saber forms for instance,to clarify

02-24-2009, 02:16 AM
I know that on every level there is a script that runs call "K_enter_"... somethin' so you could probably use that to do what your trying to do. I'd recommend using the classpowergain.2da though if you just wanna have more powers given to your character every time you level up.

You could also add in a script in the actual modules that constantly checks that but it'd be easier to do what has been stated above.

02-24-2009, 06:12 PM
thnx LadyRevan