Link Search Menu Expand Document

Critters

Функции


get_npc_level

int get_npc_level(string npc)

get_unspent_ap_bonus

int get_unspent_ap_bonus()

Gets the AC bonus you receive per unused action point at the end of your turn in combat. To allow for fractional values, the value given if divided by 4. (Hence the default value is 4 and not 1.)


get_unspent_ap_perk_bonus

int get_unspent_ap_perk_bonus()

Similar to get_unspent_ap_bonus, but accounts for the extra AC granted by the H2H Evade perk. (The default value of this is also 4, equivalent to doubling the original bonus.


inc_npc_level

void inc_npc_level(int party_member_pid)

Takes a party member PID or an NPC name (deprecated, for compatibility with sfall 4.1.5/3.8.15 or earlier) as an argument. The NPC must be in your party. This function ignores player level requirements and the minimum 3 player level delay between NPC level gains. It also ignores the random element, regardless of sfall’s NPCAutoLevel setting.


set_base_hit_chance_mod

void set_base_hit_chance_mod(int max, int mod)

set_base_pickpocket_mod

void set_base_pickpocket_mod(int max, int mod)

Changes maximum chance of success and chance mod for each steal attempt. max will replace 95% success chance cap (so you can set 100% maximum chance, for instance). mod will add this much percent to each success chance. for example if your chance is 50% and mod is 20, you will get 70% actual success rate


set_critter_hit_chance_mod

void set_critter_hit_chance_mod(CritterPtr, int max, int mod)

set_critter_pickpocket_mod

void set_critter_pickpocket_mod(CritterPtr, int max, int mod)

The same as set_base_pickpocket, but applies only to specific critter.


set_hit_chance_max

void set_hit_chance_max(int percentage)

Effects all critters rather than just the player and can set the maximum in range from 0 to 999.


set_hp_per_level_mod

void set_hp_per_level_mod(int mod)

set_pickpocket_max

void set_pickpocket_max(int percentage)

Effects all critters rather than just the player and can set the maximum in range from 0 to 999.


set_unspent_ap_bonus

void set_unspent_ap_bonus(int multiplier)

Alters the AC bonus you receive per unused action point at the end of your turn in combat. To allow for fractional values, the value given if divided by 4. (Hence the default value is 4 and not 1.)


set_unspent_ap_perk_bonus

void set_unspent_ap_perk_bonus(int multiplier)

Similar to set_unspent_ap_bonus, but effects the extra AC granted by the H2H Evade perk. (The default value of this is also 4, equivalent to doubling the original bonus.


set_xp_mod

void set_xp_mod(int percentage)