List of Script Variables: Difference between revisions

Happylappy (talk | contribs)
Happylappy (talk | contribs)
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 241: Line 241:
|Pink Celebi
|Pink Celebi
|D23P11A\um19
|D23P11A\um19
|Used in both Celebi talk scripts for the player to probe deeper about her not minding that she gets to spend more time with grovyle.
|Used in both Celebi talk scripts for the player to probe deeper about her not minding that she gets to spend more time with Grovyle.
|-
|-
|29-40
|29-40
Line 326: Line 326:
|Partner
|Partner
|Various
|Various
|Somewhat unclear. Seems to be some kind of game progress, possibly whether or not the partner has (through some means) told the hero that they want to check back on Sharpedo Bluff for Grovyle. Spawns a trigger in T02P02A if enabled.
|Used during the main story (Main 22, before Brine Cave) to remember if the partner has told the hero they want to check back on Sharpedo Bluff for Grovyle. If enabled, this flag will activate related R-button partner dialogue and prevent the player from triggering the same "Let's go check out Sharpedo Bluff!" dialogue in T01P02A if it has already been triggered in T01P01A.
|-
|-
|122
|122
Line 615: Line 615:


DUNGEON_ENTER_INDEX is a more reliable tracker of the dungeon ID.   
DUNGEON_ENTER_INDEX is a more reliable tracker of the dungeon ID.   
If not 215, PROCESS_SPECIAL_DUNGEON_HAD_REQUEST_DONE will assume no missions were completed without checking DUNGEON_ENTER_INDEX. 


=== 0x28 - DUNGEON_ENTER_MODE ===
=== 0x28 - DUNGEON_ENTER_MODE ===
Line 635: Line 637:
|-
|-
|9
|9
|Escape Orb Used
|Escape Orb Used (Or mission cleared and left mid-dungeon)
|-
|-
|Other
|Other
Line 798: Line 800:


=== 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 ===
Line 865: Line 867:


=== 0x45 - CONFIG_COLOR_KIND ===
=== 0x45 - CONFIG_COLOR_KIND ===
The aura bow color determined by the personality quiz at the beginning of the game. Only ever used by wigglytuff to determine the color of aura bow given to the player.
The aura bow color determined by the personality quiz at the beginning of the game. Only ever used by Wigglytuff to determine the color of the aura bow given to the player.


=== 0x46 - ROM_VARIATION ===
=== 0x46 - ROM_VARIATION ===
Line 1,014: Line 1,016:


=== 0x5c - EVENT_LOCAL ===
=== 0x5c - EVENT_LOCAL ===
Used as scratch paper by the base game, and is reset between scripts.
Used as scratch paper by the base game, and is reset between acting scripts.


=== 0x5d - DUNGEON_EVENT_LOCAL ===
=== 0x5d - DUNGEON_EVENT_LOCAL ===
Line 1,040: Line 1,042:
Unlikely to be a backup flag. Conveniently sized for item_GetVariable to extract the item ID and metadata.
Unlikely to be a backup flag. Conveniently sized for item_GetVariable to extract the item ID and metadata.


Used somewhere in Sky Peak
Used exclusively by the debug town. Unused in the context of vanilla EoS.


=== 0x65 - ITEM_BACKUP_KUREKURE ===
=== 0x65 - ITEM_BACKUP_KUREKURE ===