PDA

View Full Version : Permanently increase max Vitality & Force Points w/ scripts?


spyblade
07-09-2007, 03:23 PM
Is it possible to use a script (or another method) to permanently increase the maximum number of vitality points for a PC or NPCand also do the same with force points? Aside from the 2da which affects every level. I just want a bonus bunch given at once.

stoffe
07-09-2007, 03:30 PM
Is it possible to use a script (or another method) to permanently increase the maximum number of vitality points for a PC or NPCand also do the same with force points? Aside from the 2da which affects every level. I just want a bonus bunch given at once.

Depends on which game this is for. If it's TSL it's (sort of) possible, like:


void main() {
// Change this to whoever should be modified.
object oPC = GetFirstPC();

// Set how much bonus to HP/FP to give.
int iBonus = 100;

AddBonusForcePoints(oPC, iBonus);
SetMaxHitPoints(oPC, GetMaxHitPoints(oPC) + iBonus);
}

spyblade
07-09-2007, 03:35 PM
Thanks for the help. Sorry I didn't specify, stoffe. It is actually a question for K1. Is it not possible, then?

stoffe
07-09-2007, 03:37 PM
Thanks for the help. Sorry I didn't specify, stoffe. It is actually a question for K1. Is it not possible, then?

You can modify the health using the same method as the script above, but you can't permanently alter the force points in KOTOR 1 since that's new functionality added in the second game.

spyblade
07-09-2007, 03:47 PM
That's cool. It's probably not possible to duplicate the effects of the Force Sensitive feat and make a new feat that uses the same commands. And then grant both of them? I know a lot of feat modding is hardcoded, but some of the 2da functions can still be used.