Skills
Функции
- get_available_skill_points
- get_critter_skill_points
- mod_skill_points_per_level
- set_available_skill_points
- set_base_skill_mod
- set_critter_skill_mod
- set_critter_skill_points
- set_skill_max
get_available_skill_points
int get_available_skill_points()
get_critter_skill_points
int get_critter_skill_points(int critter, int skill)
Will get the number of additional points a critter has in a skill, on top of whatever they have from their stats and other bonuses
mod_skill_points_per_level
void mod_skill_points_per_level(int value)
Accepts a value of between -100 and 100, and modifies the number of skill points the player recieves when they level up. This is a modification of what would otherwise happen, rather than a replacement. The value is not saved into the save game, so should be reset in the game_loaded
section of a script.
set_available_skill_points
void set_available_skill_points(int value)
set_base_skill_mod
void set_base_skill_mod(int max)
set_critter_skill_mod
void set_critter_skill_mod(CritterPtr, int max)
set_critter_skill_points
void set_critter_skill_points(int critter, int skill, int value)
Will set the number of additional points a critter has in a skill, on top of whatever they have from their stats and other bonuses. Note that skill points are part of the proto, so calling it on a critter will affect all critters that share the same proto.
set_skill_max
void set_skill_max(int value)
Can’t be used to increase the skill cap above 300.