List of Script Variables: Difference between revisions
Happylappy (talk | contribs) Moar variables |
Added some information |
||
| Line 50: | Line 50: | ||
=== 0x11 - SCENARIO_MAIN_BIT_FLAG === | === 0x11 - SCENARIO_MAIN_BIT_FLAG === | ||
Has many purposes, sometimes have hardcoded or technical effects, but not always. Here's a few I know off the top of my head: | Has many purposes, sometimes have hardcoded or technical effects, but not always. Here's a few I know off the top of my head: | ||
{| class="wikitable" | |||
- | |+ | ||
!Number | |||
!Where's used | |||
|- | |||
|0 | |||
|Unused. | |||
|- | |||
|1 | |||
|Gets set to 1 right after waking up in the guild. Used for the game to determine when partner dialogue should be changed to just "Good morning, [hero]...". | |||
|- | |||
- | |2 | ||
|Unused. | |||
|- | |||
|3 | |||
|Will end the current day if EVENT_DIVIDE is run. | |||
|- | |||
|4 | |||
|Similar to 3, I think it related to missions in some way? | |||
|- | |||
|5 | |||
- | |Gets set to 1 if the player decides to go the wrong way during an expedition. | ||
|- | |||
- | |6, 7, 8 | ||
|Used to remember how the game was saved last. | |||
|- | |||
|9 | |||
- | |Used in G01P04A/um07. When it's not set, the game spawns triggers. Upon walkng to them, Croagunk calls hero and partner to tell that the Croagunk Swap Shop is now opened. | ||
|- | |||
- | |10 | ||
|Chatot tells the player to do jobs on the job board today. I think... | |||
- | |- | ||
|11 | |||
|Chatot tells the player to do sentry duty today. | |||
|- | |||
|12, 13 | |||
|Marowak Dojo First Entry/ Final Maze Opening | |||
- | |- | ||
|14-23 | |||
|Used in Marowak's Dojo. If none of them are set, the player finished all the dojo dungeons. | |||
|- | |||
|24 | |||
|Gets set when the player finishes all dojo dungeons. Used to only show a cutscene about the full dojo completion once. | |||
|- | |||
|25 | |||
|Gets set to 0 before the check whether it's set to 1 or not?.. | |||
|- | |||
|26, 27 | |||
|Unused | |||
|- | |||
|28 | |||
|Gets set to 1 when the player finishes Final Maze. Used to give another cutscene if the Final Maze gets finished again. | |||
|- | |||
|29 | |||
|Gets set to 1 if the player decides to go back to the previous location(or back to the town) from the checkpoint. | |||
- | |- | ||
|30 | |||
|Seems to be used in TITLE_TEST to distinguish between Time and Darkness. | |||
|- | |||
- | |31 | ||
|Gets set to 1 when the player presses Go Rescue for the first time. | |||
|- | |||
|32 | |||
|Gets set to 1 when the player presses Standby Adventure for the first time. | |||
- | |- | ||
|33-39 | |||
|Used after collecting one of the seven treasures. If none of them are set, the game gives a Seven Treasures collection checkmark. | |||
|- | |||
- | |40 | ||
|Gets set if the player interacts with anything on the Pelipper Island. If set, the game will save upon leaving the island. | |||
|- | |||
|41 | |||
- | |Gets set to 1 when Chimecho tells hero and partner that they're now able to change team leader. Used to only show this cutscene once. | ||
|- | |||
|42 | |||
|Gets set to 1 when the partner says good morning to hero in Sharpedo Bluff, while $SCENARIO_MAIN is 29, 92. Used to only show this cutscene once, as it's called in coroutine EVENT_DIVIDE_AFTER, that is called really often. | |||
|- | |||
|43-45 | |||
|Aegis Cave's ice, rock and steel puzzles completion. | |||
|- | |||
|46 | |||
|Gets set to 1 if the player Drifblim's Gondola. Used to show a cutscene where Drifblim thanks hero and partner for using his service. | |||
|- | |||
|47 | |||
|Gets set to 1 when player talks with Ampharos about Sneasel's Sky Gift. | |||
|- | |||
|48 | |||
|Gets set to 1 when the player gets Sneasel's gift. | |||
|- | |||
|49 | |||
|Gets set to 1 when the player leaves the station clearing after getting Sneasel's gift. | |||
|- | |||
|50-60 | |||
|Sky Gift had been sent to Wigglytuff, Chatot, Diglett, Dugtrio, Sunflora, Loudred, Corphish, Chimecho, Bidoof, Croagunk and partner respectively. | |||
|- | |||
|61 | |||
|Gets set to 1 when the player gives an item to Happiny. | |||
|- | |||
|62-73 | |||
|Wigglytuff, Chatot, Diglett, Dugtrio, Sunflora, Loudred, Corphish, Chimecho, Bidoof, Croagunk, partner and Happiny respectively sent a Sky Gift to hero. | |||
|- | |||
|74-77 | |||
|Used to decide whether Happiny will appear on the 1st/3rd/5th/7th Station Clearing respectively. Happiny will always spawn on the 1st station if ITEM_BACKUP_GET = ITEM_BACKUP_TAKE. | |||
|- | |||
|78-81 | |||
|Used to decide whether Numel will appear on the 1st/3rd/5th/7th Station Clearing respectively. | |||
|- | |||
|82 | |||
|Gets set to 1 if the player already swapped items with Numel in the current attempt to climb to Sky Peak Summit. | |||
|- | |||
|83-87 | |||
|Used to decide whether Happiny will appear on the 1st/3rd/5th/7th Station/Summit Clearing respectively. | |||
|- | |||
|88 | |||
|Gets set to 1 when the player claims Jumpluff's gift. | |||
|- | |||
|89 | |||
|Used to decide whether Delibird should appear on the 9th Station Clearing. The chance of it being set is 50% each climbing attempt. | |||
|- | |||
|90 | |||
|Gets set to 1 when the player claims Delibird's gift. | |||
|- | |||
|91 | |||
|Gets set to 1 if the player gives an item to Heracross. | |||
|- | |||
|92 | |||
|Used to decide if a bottle should appear on the beach. The chance of it being set is 10% | |||
|- | |||
|93 | |||
|Used to decide if a client should appear in the cafe. The chance of it being set is 80% | |||
|- | |||
|94 | |||
|Gets set to 1 if the player receives a Gracidea. | |||
|- | |||
|95 | |||
|Gets set to 1 when Ursaring says that hero and partner can evolve. | |||
|- | |||
|96 | |||
|Gets set to 1 when Krabby says that bottles can appear on the beach. | |||
|- | |||
|97 | |||
|Gets set to 1 when Chimecho asks hero if recruits can stay at the cafe. | |||
|- | |||
|98 | |||
|Gets set to 1 in m00a01a. Doesn't seem to be used anywhere else. | |||
|- | |||
|99-128 | |||
|Unused. | |||
|} | |||
=== 0x12 - SCENARIO_TALK_BIT_FLAG === | === 0x12 - SCENARIO_TALK_BIT_FLAG === | ||