darth_ballz Posted February 9, 2008 Share Posted February 9, 2008 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 More sharing options...
stoffe Posted February 9, 2008 Share Posted February 9, 2008 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 More sharing options...
darth_ballz Posted February 10, 2008 Author Share Posted February 10, 2008 OK thanks, but what would work to increase an attribute in KotOR 1 then? There must be some command or how would Force Valour etc work Link to comment Share on other sites More sharing options...
RedHawke Posted February 10, 2008 Share Posted February 10, 2008 There isn't... those functions were added in for TSL, you can't permanently adjust attributes vis scripts in KotOR I. Your example is a force power and is a temporary boost, not a permanent change. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.