Player statistic limits

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 11:51, 12 September 2026 by QCherry (talk | contribs) (Document expanded scripting capacities and complete audited limits for 0.1.3 BUILD81)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Current in update 0.1.3, expanded-budget BUILD81; audited 2026-09-12. These statistic ranges were not raised by the scripting-capacity update: gameplay values are separate from Lua VM storage.

setPlayerStat and its named stat setters reject unknown keys/non-finite values and clamp finite numeric values to the catalog range below. Further authoritative rules still apply (for example current health versus max health, life state and equipment). This table is not a promise that every underlying single-player attribute has independent gameplay support. Query getPlayerStatLimits and getPlayerStatNames rather than copying assumptions into a gamemode. See Scripting limits.

All 59 catalog ranges

Stat key Minimum Maximum
alcohol 0 100000
max_alcohol 0 100000
alcohol_depletion_rate 0 100000
super_armor 0 100000
max_super_armor 0 100000
resistance_blunt 0 100000
resistance_edge 0 100000
resistance_point 0 100000
resistance_fire 0 100000
resistance_energy 0 100000
resistance_ice 0 100000
resistance_wind 0 100000
resistance_falling 0 100000
dexterity 0 100000
fatigue 0 100000
max_fatigue 0 100000
fatigue_fill_ratio 0 100000
fatigue_fill_ratio_period 0 100000
fatigue_max_threshold_index 0 100000
fatigue_recovery_per_sleep_hour 0 100000
health 0 100000
max_health 1 100000
damage_multiplier 0 100
health_recovery_per_sleep_hour 0 100000
level 0 1000
experience 0 1000000000
skill_points 0 1000000
xp_executed_bounty 0 1000000000
xp_kill_or_defeat_bounty 0 1000000000
toughness 0 100000
toughness_a 0 100000
toughness_b 0 100000
toughness_c 0 100000
lockpick_durability 0 100000
lockpick_precision 0 100000
mana 0 100000
max_mana 0 100000
magician_level 0 6
mana_recovery_per_sleep_hour 0 100000
speed_modifier 0 100
oxygen 0 100000
max_oxygen 0 100000
oxygen_depletion_rate 0 100000
oxygen_recovery_rate 0 100000
oxygen_critical_level_percent 0 100
pickpocketing 0 100000
sleep_time 0 100000
max_sleep_time 0 100000
sleep_recovery_amount 0 100000
sleep_recovery_period 0 100000
max_rest_time 0 100000
strength 0 100000
critical_fists 0 100
critical_one_hand 0 100
critical_two_hand 0 100
critical_orc 0 100
swampweed 0 100000
max_swampweed 0 100000
swampweed_depletion_rate 0 100000

Source audit

shared/PlayerProgressionCatalog.hpp (Stats, 59 entries); server/src/scripting/ScriptRuntime.cpp (set_player_stat_value).