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"
- [0]: Not in unionall. Unsure
|+
 
!Number
- [1]: Has something to do with partner.ssb and partner2.ssb
!Where's used
 
|-
- [2]: Not in unionall. Unsure
|0
 
|Unused.
- [3]: Will end the current day if EVENT_DIVIDE is run.  
|-
 
|1
- [4]: Similar to 3, I think it related to missions in some way?
|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]...".
 
|-
- [6], [7], [8]: Used to remember how the game was saved last.
|2
 
|Unused.
- [9]: Not in unionall. Unsure
|-
 
|3
- [10]: Chatot tells the player to do jobs on the job board today. I think...
|Will end the current day if EVENT_DIVIDE is run.
 
|-
- [11]: Chatot tells the player to do sentry duty today.  
|4
 
|Similar to 3, I think it related to missions in some way?
- [12], [13]: Marowak Dojo First Entry/ Final Maze Opening
|-
 
|5
- [14] through [28]: Unsure, not in unionall!
|Gets set to 1 if the player decides to go the wrong way during an expedition.
 
|-
- [29]: Referenced in GETOUT_REQUEST_RETURN.  
|6, 7, 8
 
|Used to remember how the game was saved last.
- [30]: Seems to be used in TITLE_TEST to... distinguish between Time and Darkness???
|-
 
|9
- [31] through [41]: Unsure, not in unionall
|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.
 
|-
- [42]: Used for... something in EVENT_DIVIDE_AFTER.
|10
 
|Chatot tells the player to do jobs on the job board today. I think...
- [43], [44], [45]: ICE, ROCK, and STEEL puzzles solved in Aegis Cave
|-
 
|11
- [46]: Unknown. Proooobably between Aegis Cave and Sky Peak in plot?
|Chatot tells the player to do sentry duty today.
 
|-
- [47], [48], [49]: Used to remember the progression state of Ampharos giving you Sneasel's Sky Gift on Sky Peak. [47] means the conversation happened (if the bag is full, Ampharos will hold onto the gift for you to pick up later), [48] means the gift was claimed, and [49] means the gift was claimed AND the player has left the room after receiving the gift. (so Ampharos will revert to their default dialogue).  
|12, 13
 
|Marowak Dojo First Entry/ Final Maze Opening
- [50], [62]: Wigglytuff Sky Gift in transit/ready to be claimed
|-
 
|14-23
- [51], [63]: Chatot Sky Gift in transit/ready to be claimed
|Used in Marowak's Dojo. If none of them are set, the player finished all the dojo dungeons.
 
|-
- [52], [64]: Diglett Sky Gift in transit/ready to be claimed
|24
 
|Gets set when the player finishes all dojo dungeons. Used to only show a cutscene about the full dojo completion once.
- [53], [65]: Dugtrio Sky Gift in transit/ready to be claimed
|-
 
|25
- [54], [66]: Sunflora Sky Gift in transit/ready to be claimed
|Gets set to 0 before the check whether it's set to 1 or not?..
 
|-
- [55], [67]: Loudred Sky Gift in transit/ready to be claimed
|26, 27
 
|Unused
- [56], [68]: Corphish Sky Gift in transit/ready to be claimed
|-
 
|28
- [57], [69]: Chimecho Sky Gift in transit/ready to be claimed
|Gets set to 1 when the player finishes Final Maze. Used to give another cutscene if the Final Maze gets finished again.
 
|-
- [58], [70]: Bidoof Sky Gift in transit/ready to be claimed
|29
 
|Gets set to 1 if the player decides to go back to the previous location(or back to the town) from the checkpoint.
- [59], [71]: Croagunk Sky Gift in transit/ready to be claimed
|-
 
|30
- [60], [72]: Partner Sky Gift in transit/ready to be claimed
|Seems to be used in TITLE_TEST to distinguish between Time and Darkness.
 
|-
- [61], [73]: Happiny Sky Gift in transit/ready to be claimed
|31
 
|Gets set to 1 when the player presses Go Rescue for the first time.
(Happiny is a Random NPC that can show up at station passes, and requests an item. Will give a Sky Gift in gratitude)
|-
 
|32
 
|Gets set to 1 when the player presses Standby Adventure for the first time.
- [74], [75], [76], [77]: Happiny will request an item from the player at 1st/3rd/5th/7th Station Clearing. Normally a 50% chance.
|-
 
|33-39
'''HOWEVER''': If ITEM_BACKUP_TAKE happens to roll into the same item as ITEM_BACKUP_GET (which would suggest Numel was set to give you the same item back that you traded them), Happiny will always spawn on the 1st Station Clearing. This does not appear to affect Numel spawning, which may be a bug. (Also this apparently can't ever happen???).
|Used after collecting one of the seven treasures. If none of them are set, the game gives a Seven Treasures collection checkmark.
 
|-
- [78], [79], [80], [81]: Numel will swap items with the player at 1st/3rd/5th/7th Station Clearing. 50% chance to choose one at random at beginning of the day (?)
|40
 
|Gets set if the player interacts with anything on the Pelipper Island. If set, the game will save upon leaving the island.
- [82]: Numel has been traded with today.  
|-
 
|41
- [83], [84], [85], [86], [87]: Jumpluff bearing a free Sky Gift is on 1st Station/3rd Station/5th Station/7th Station/Summit Clearing.  
|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.
 
|-
- [88]: Jumpluff's Sky Gift has been claimed today.
|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.
- [89]: Delibird bearing a free Sky Gift is on 9th Station Clearing. 50% chance to show up each day.
|-
 
|43-45
- [90]: Delibird Sky Gift has been claimed today.
|Aegis Cave's ice, rock and steel puzzles completion.
 
|-
- [91]: Not in unionall. Unsure.
|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.
- [92]: Bottle will show up on the beach. 10% chance each day.
|-
 
|47
- [93]: Client will show up in Spinda's Cafe. 80% chance each day.
|Gets set to 1 when player talks with Ampharos about Sneasel's Sky Gift.
 
|-
- [94]: Seems to be reset each morning?
|48
 
|Gets set to 1 when the player gets Sneasel's gift.
- [95]: Ursaring believes hero and partner can evolve!
|-
 
|49
- [96]: Krabby Beach Bottle cutscene has played
|Gets set to 1 when the player leaves the station clearing after getting Sneasel's gift.
 
|-
- [97]: Chimecho demands recruits be allowed to hang out at the cafe
|50-60
 
|Sky Gift had been sent to Wigglytuff, Chatot, Diglett, Dugtrio, Sunflora, Loudred, Corphish, Chimecho, Bidoof, Croagunk and partner respectively.
- [98] through [127]: Not in Unionall. Some may be unused?
|-
|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 ===