Stats
The get/set_pc_base/extra_stat
functions are equivalent to calling get/set_critter_base/extra_stat
with dude_obj
as the critter pointer. None of these stat functions take perks into account, and neither do they do range clamping to make sure the stats are valid. Use the normal get_critter_stat
function to get a correctly perk adjusted and range clamped value for a stat.
Subcategories
Functions
- get_critter_base_stat
- get_critter_extra_stat
- get_pc_base_stat
- get_pc_extra_stat
- get_stat_max
- get_stat_min
- set_critter_base_stat
- set_critter_extra_stat
- set_pc_base_stat
- set_pc_extra_stat
get_critter_base_stat
int get_critter_base_stat(CritterPtr, int StatID)
get_critter_extra_stat
int get_critter_extra_stat(CritterPtr, int StatID)
get_pc_base_stat
int get_pc_base_stat(int StatID)
get_pc_extra_stat
int get_pc_extra_stat(int StatID)
get_stat_max
get_stat_max(int stat, bool who = False)
- Returns the maximum set value of the specified stat (see
set_stat_max
functions) - who: 0 (
False
) or omitting the argument - returns the value of the player, 1 (True
) - returns the value set for other critters
get_stat_min
get_stat_min(int stat, bool who = False)
- Returns the minimum set value of the specified stat (see
set_stat_min
functions) - who: 0 (
False
) or omitting the argument - returns the value of the player, 1 (True
) - returns the value set for other critters
set_critter_base_stat
void set_critter_base_stat(CritterPtr, int StatID, int value)
set_critter_extra_stat
void set_critter_extra_stat(CritterPtr, int StatID, int value)
set_pc_base_stat
void set_pc_base_stat(int StatID, int value)
set_pc_extra_stat
void set_pc_extra_stat(int StatID, int value)