View Full Version : tsl - are the spells that are granted when level up hardcoded?
02-23-2009, 12:47 AM
or are they scripted?
02-23-2009, 12:49 AM
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 :)
02-23-2009, 12:56 AM
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, 01: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, 03: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, 07:12 PM
vBulletin®, Copyright ©2000-2016, Jelsoft Enterprises Ltd.