Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Permanently increase max Vitality & Force Points w/ scripts?

Page: 1 of 1
 spyblade
07-09-2007, 2:23 PM
#1
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, 2:30 PM
#2
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, 2:35 PM
#3
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, 2:37 PM
#4
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, 2:47 PM
#5
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.
Page: 1 of 1