List of Script Variables: Difference between revisions

Capypara (talk | contribs)
Add nav template
Document SCENARIO_BALANCE_FLAG (value changes info by Gala1D)
Line 45: Line 45:


=== 0x13 - SCENARIO_BALANCE_FLAG ===
=== 0x13 - SCENARIO_BALANCE_FLAG ===
Starts at 0 and gets increased as the player completes certain story events. Controls bag size and the spawn threshold value of pokémon, which restricts spawning of some species until this variable reaches a certain value.
==== Value changes ====
This table lists the exact story spots where the value of the flag is increased.
{| class="wikitable"
|+
!Flag value
!Story chapter
!Story event
!Scene
!Script
|-
|0
|1
|Start of a new game
| -
| -
|-
|1
|3
|End of chapter
|V03P12A
|m03a1314.ssb
|-
|2
|6
|Expedition members are announced
|G01P04A
|m08a0301.ssb
|-
|3
|9
|End of chapter
|P04P01C
|m10a1213.ssb
|-
|4
|13
|End of chapter
|V16P02A
|m16a0702.ssb
|-
|5
|15
|End of chapter
|V19P06A
|m19b1014.ssb
|-
|6
|Post-game 1
|After graduating and moving to Sharpedo Bluff
|H02P99A
|s01p1103.ssb
|-
|7
|Game complete
|The Ursarings tell Hero and Partner they can evolve
(After unlocking Marine Resort)
|T01P01A
|m00p1401.ssb
|}
==== Bag size ====
This table lists the maximum bag size depending on the current value of <code>SCENARIO_BALANCE_FLAG</code>.
{| class="wikitable"
|+
!Flag value
!Bag size
|-
|0
|16
|-
|1
|24
|-
|2
|32
|-
|3
|40
|-
|4
|40
|-
|5
|40
|-
|6
|48
|-
|7
|48
|}
Values higher than 7 will read garbage data and cause crashes.
If <code>PERFORMANCE_PROGRESS_FLAG[2]</code> is 0, the bag will only have 1 slot, regardless of the value of <code>SCENARIO_BALANCE_FLAG</code>.


=== 0x14 - SCENARIO_BALANCE_DEBUG ===
=== 0x14 - SCENARIO_BALANCE_DEBUG ===