Link Search Menu Expand Document

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.

Подкатегории

Функции


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)