List of Script Variables: Difference between revisions
Happylappy (talk | contribs) Documented every known $SCENARIO_TALK_BIT_FLAG. |
Happylappy (talk | contribs) mNo edit summary |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 206: | Line 206: | ||
=== 0x12 - SCENARIO_TALK_BIT_FLAG === | === 0x12 - SCENARIO_TALK_BIT_FLAG === | ||
Up through [ | Up through [140] are in use, and they primarily exist to remember if the player has already talked with an NPC (therefore playing modified or shorter dialogue the second time around). For example, every merchant in treasure town comments on the player's accomplishments (like defeating Darkrai) the first time you talk to them. Whether that conversation has happened yet is tracked with SCENARIO_TALK_BIT_FLAG. | ||
{| class="wikitable" | {| class="wikitable" | ||
!Number | !Number | ||
| 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 | |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 | ||
| | |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 441: | Line 441: | ||
=== 0x13 - SCENARIO_BALANCE_FLAG === | === 0x13 - SCENARIO_BALANCE_FLAG === | ||
Starts at 0 and gets increased as the player completes certain story events. Controls bag size, Wynaut/Spinda dungeon unlocks, and the spawn threshold value of pokémon, which restricts spawning of some species until this variable reaches a certain value. | Starts at 0 and gets increased as the player completes certain story events. Controls bag size, Wynaut/Spinda dungeon unlocks, and the spawn threshold value of pokémon, which restricts spawning of some species until this variable reaches a certain value. Is also used as a general game progression marker by other things, restriction certain mission types, the croagunk swap shop being able to contain a water float, and other things like that. | ||
==== Value changes ==== | ==== Value changes ==== | ||
| 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 === | ||
When called by LoadScriptVariableValue(), will always return 1. Seems unused outside of this. | |||
=== 0x3b - UNIT_SUM === | === 0x3b - UNIT_SUM === | ||
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 | 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 993: | Line 995: | ||
=== 0x55 - WORLD_MAP_MARK_LIST_NORMAL === | === 0x55 - WORLD_MAP_MARK_LIST_NORMAL === | ||
Is adequately sized for the number of World Map Markers. Presumed Unused. | |||
=== 0x56 - WORLD_MAP_MARK_LIST_SPECIAL === | === 0x56 - WORLD_MAP_MARK_LIST_SPECIAL === | ||
Is adequately sized for the number of World Map Markers. Presumed Unused. | |||
=== 0x57 - WORLD_MAP_LEVEL === | === 0x57 - WORLD_MAP_LEVEL === | ||
| 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 | Used exclusively by the debug town. Unused in the context of vanilla EoS. | ||
=== 0x65 - ITEM_BACKUP_KUREKURE === | === 0x65 - ITEM_BACKUP_KUREKURE === | ||