Scenario Main Values: Difference between revisions

Happylappy (talk | contribs)
Document Postgame $SCENARIO_MAIN.
I got collapsed so hard in scn[2,2] and scn[2,3] I'm going to try helping others not make the same mistake.
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Stub}}
{{Stub}}


The following table is a work-in-progress list of the scenario main (<code>$SCENARIO_MAIN</code>) values used by the vanilla game. These values help the game know where you are in the story and what events have (or have not) been triggered. They are also used to determine things that change based on story progression, such as which NPCs spawn in Treasure Town or the dialogue said by the partner if you turn to talk to them in the overworld.  
The following table is a work-in-progress list of the [[List of Script Variables#0x3 - SCENARIO MAIN|scenario main]] (<code>$SCENARIO_MAIN</code>) values used by the vanilla game. These values help the game know where you are in the story and what events have (or have not) been triggered. They are also used to determine things that change based on story progression, such as which NPCs spawn in Treasure Town or the dialogue said by the partner if you turn to talk to them in the overworld.  


The format used by the game for defining this variable is <code>$SCENARIO_MAIN = scn[1, 0];</code> where the two numbers in the brackets change depending on story progression.  
The format used by the game for defining this variable is <code>$SCENARIO_MAIN = scn[1, 0];</code> where the two numbers in the brackets change depending on story progression.  
Line 59: Line 59:
|'''D01P11B'''  
|'''D01P11B'''  
<code>m01a0208.ssb</code>
<code>m01a0208.ssb</code>
|
|'''Skycloud383''' writes that upon fainting with <code>$SCENARIO_MAIN = '''scn[2, 2];'''</code> then due to a switch case in EVENT_DIVIDE_FIRST you might end up in an unexpected location.<small>(also applies to scn[2, 3];)</small>
|
|
|
|
Line 68: Line 68:
|'''D01P41A'''
|'''D01P41A'''
<code>m01a0401.ssb</code>
<code>m01a0401.ssb</code>
|
|'''Skycloud383''' writes that upon fainting with <code>$SCENARIO_MAIN = '''scn[2, 3];'''</code> then due to a switch case in EVENT_DIVIDE_FIRST you might end up in an unexpected location.
|
|
|
|