Jump to content

Home

Scripting Dilemmas


darth_ballz

Recommended Posts

Hey, can anyone tell me why this script doesn't compile/work?! I have no idea about scripting I copied this straight from the tutorial. All i want it to do is increase an attribute by 2 :(

 

void AdjustCreatureAttributes(GetFirstPC(),ABILITY_CHARISMA,2);

 

 

Mod note: Moved to Holowan forum since it's a modding question. ~M

Link to comment
Share on other sites

Hey, can anyone tell me why this script doesn't compile/work?! I have no idea about scripting I copied this straight from the tutorial. All i want it to do is increase an attribute by 2 :(

 

It doesn't compile since it's not a complete script. You don't have any starter function, and you have a mix of a function declaration and call instead of just a call like it should be. Try:

 

void main() {
   AdjustCreatureAttributes(GetFirstPC(), ABILITY_CHARISMA, 2);
}

 

(This will only work for Kotor2:TSL and not the first game though.)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...