View Full Version : Giving a permanent bonus through scripts?
Canderis
08-07-2009, 11:14 AM
How would I give the pc a permanent force-point increase and increase the strength by one through scripts (TSL) Is this even possible?
Nirran
08-07-2009, 11:24 AM
these wont compile but these are the functions needed
AddBonusForcePoints( GetFirstPC(), int nBonusFP );
effect estrength = EffectAbilityIncrease(ABILITY_STRENGTH, 1);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, estrength, GetFirstPC());
Nirran
Canderis
08-07-2009, 11:35 AM
Where do I add in the amount of points I want to increase and make it so it applies to the pc.
Nirran
08-07-2009, 02:14 PM
void main(){
int nBonus = 500;
int nStrength = 1;
AddBonusForcePoints( GetFirstPC(), nBonus );
effect eStrength = EffectAbilityIncrease(ABILITY_STRENGTH, nStrength);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eStrength, GetFirstPC(), 1.0);
}
change the 500 to the force points you want to apply,change the 1 to the strength you want to apply
easiest way to get this in the game is add it to a dialog ,party member for example
Canderis
08-07-2009, 02:19 PM
Thanks Nirran!
Nirran
08-07-2009, 03:52 PM
np Canderis
vBulletin®, Copyright ©2000-2013, Jelsoft Enterprises Ltd.