Jump to content

Home

Giving a permanent bonus through scripts?


Canderis

Recommended Posts

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

Link to comment
Share on other sites


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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...