List of Script Variables: Difference between revisions

Happylappy (talk | contribs)
Happylappy (talk | contribs)
UNIT_SUM is the number of members on the active team!!!
Line 798: Line 798:


=== 0x3a - FRIEND_SUM ===
=== 0x3a - FRIEND_SUM ===
Unknown
When called by LoadScriptVariableValue(), will always return 1. Seems unused outside of this.


=== 0x3b - UNIT_SUM ===
=== 0x3b - UNIT_SUM ===
Unknown
In a switch case, will return the number of pokemon in the active team. Cannot be written to, only read. Skytemple's Variable reader will mistakenly read this as zero, as the script variable slot itself is unused, and the number of team members is a hardcoded return from LoadScriptVariable.


=== 0x3c - CARRY_GOLD ===
=== 0x3c - CARRY_GOLD ===