Scenario Main Values

Revision as of 22:29, 26 July 2025 by GinnieH20 (talk | contribs) (Added all of chapter 6)

The following table is a work-in-progress list of the scenario main ($SCENARIO_MAIN) 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 $SCENARIO_MAIN = scn[1, 0]; where the two numbers in the brackets change depending on story progression.

For scripts that check for specific $SCENARIO_MAIN values using if-statements (such as to determine what partner dialogue should be played at that point in the story), you will usually see the value mentioned in a format like the following, which is taken from one of the partner's overworld dialogue scripts: if ( scn($SCENARIO_MAIN) >= [26, 5] ) . In this example, the game is checking to see if the current $SCENARIO_MAIN value is greater than or equal to [26, 5] and, if that is indeed the case, then the partner's overworld dialogue will be some variation of "We're so close... There's no way we can give up now, [hero]!"

Because some scripts have identical names, the column for the script locations of each $SCENARIO_MAIN value will also include the name of the map folder they are found in. For example, the $SCENARIO_MAIN value that gets triggered following the Project P cutscene can be triggered by four seprate enter scripts that have identical names (enter01.ssb and enter02.ssb, respectively), so the corresponding map folder names are also included to help users know which enter scripts to look for.

Scenario Main (Values) Game Chapter Description Script location of the value Other notes Other scripts that mention this value Debug Menu (that uses this value)
$SCENARIO_MAIN = scn[1, 0]; Immediately BEFORE the personality quiz Found in unionall under

EVENT_DIVIDE_OPENING

~ line 900

Contained within the larger EVENT_DIVIDE
$SCENARIO_MAIN = scn[2, 0]; Immediately AFTER the personality quiz Found in unionall under

EVENT_M00A_01

~ line 2261

$SCENARIO_MAIN = scn[2, 1]; Found in unionall under

EVENT_DIVIDE_FIRST

~ line 967

happylappy writes that this is in a switch case in EVENT_DIVIDE over $SCENARIO_MAIN

“Basically, if it’s [X, 0], make it [X, 1]… for these chapters only”

(also applies to scn[3, 1];)

$SCENARIO_MAIN = scn[2, 2]; Chapter 1 Partner’s Relic Fragment was just stolen on the beach D01P11B

m01a0208.ssb

$SCENARIO_MAIN = scn[2, 3]; Ch. 1 Pre-fight in Beach Cave D01P41A

m01a0401.ssb

$SCENARIO_MAIN = scn[3, 0]; Visual of the Rainbow Stoneship along with “The Pokémon Company and CHUNSOFT presents” before the game title appears S11P02C

t01p0801.ssb

S02P01A (debug)

m00a01a.ssb

~ line 2150

Main 2
$SCENARIO_MAIN = scn[3, 1]; Chapter 2 About to enter Wigglytuff’s Guild for the first time with the partner G01P01B

m02a0101.ssb

This value appears in the script mentioned by the previous cell, EVENT_DIVIDE, the debug script, and also in a switch case in EVENT_DIVIDE_FIRST (exact locations can be found in the next cell)

Same note from happylappy as [2, 1] where “Basically, if it’s [X, 0], make it [X, 1]… for these chapters only”

S02P01A (debug)

m00a01a.ssb

~ line 1599

&

~ line 393


Found in unionall.ssb

EVENT_DIVIDE

~ line 750


Found in unionall.ssb

EVENT_DIVIDE_FIRST

~ line 983

(under “Others”)

M2 The First Job


(under “Dialogue Check”)

TALK-M02-01

$SCENARIO_MAIN = scn[3, 2]; Ch. 2 Chatot has you follow him since it’s your first day (about to learn about the Job Bulletin Board) G01P04A

m02a0301.ssb

$SCENARIO_MAIN = scn[3, 3]; Ch. 2 Entering Drenched Bluff for Spoink’s mission D02P11A

m02a0401.ssb

$SCENARIO_MAIN = scn[3, 4]; Ch. 2 Enter Drenched Bluff for Spoink’s mission (if you failed previously) D02P11A

m02a0701.ssb

This one is found in a case menu
$SCENARIO_MAIN = scn[3, 5]; Ch. 2 Enter Drenched Bluff for Spoink’s mission (if you failed previously) D02P11A

m02a0701.ssb

This one is in a case menu, same scene as above
$SCENARIO_MAIN = scn[3, 6]; Ch. 2 You find Spoink’s missing pearl at the end of Drenched Bluff D02P31A

m02a0801.ssb

This one is in a case menu, probably relating to the demo version
$SCENARIO_MAIN = scn[3, 7]; Ch. 2 You find Spoink’s missing pearl at the end of Drenched Bluff D02P31A

m02a0801.ssb

This one is in a case menu, probably relating to the demo version
$SCENARIO_MAIN = scn[4, 0]; Ch. 2 Going to bed after your first successful job mission (also the end of chapter 2) G01P07C

m02a1003.ssb

S02P01A (debug)

m00a01a.ssb

~ line 1896

&

~ line 1607

&

~ line 401

Main 3
(under “Others”)

M3 Outlaw Notice Board


(under “Dialogue Check”)

TALK-M03-01B

$SCENARIO_MAIN = scn[4, 1]; Chapter 3 Chatot notices you wandering the day after your first mission (about to learn about the Outlaw Notice Board) G01P04A

m03a0101.ssb

S02P01A (debug)

m00a01a.ssb

~ line 1615

&

~ line 406

(under “Others”)

Not That Way


(under “Dialogue Check”)

TALK-M03-02

$SCENARIO_MAIN = scn[4, 2]; Ch. 3 Meeting Marill and Azurill for the first time at Kecleon Market T01P02A

m03a0301.ssb

S02P01A (debug)

m00a01a.ssb

~ line 1623

&

~ line 411

(under “Others”)

M3 Drowzee


(under “Dialogue Check”)

TALK-M03-03

$SCENARIO_MAIN = scn[4, 3]; Ch. 3 Meeting Drowzee for the first time T01P01A

m03a0401.ssb

S02P01A (debug)

m00a01a.ssb

~ line 1631

&

~ line 416

(under “Others”)

M3 Truth


(under “Dialogue Check”)

TALK-M03-04

$SCENARIO_MAIN = scn[4, 4]; Ch. 3 Bidoof is about to help you pick your first outlaw job G01P03A

m03a0502.ssb

D01P11A

dus08.ssb

$SCENARIO_MAIN = scn[4, 5]; Ch. 3 About to enter Mt. Bristle to save Azurill from Drowzee D03P11A

m03a0601.ssb

S02P01A (debug)

m00a01a.ssb

~ line 421

(under “Dialogue Check”)

TALK-M03-06

$SCENARIO_MAIN = scn[4, 6]; Ch. 3 Drowzee reveals that it was all a trick to Azurill (pre-boss fight) D03P41A

m03a0801.ssb

For whatever reason, this particular variable appears twice in the same script (at the start of the scene and then right after the boss fight screen wipe effect)
$SCENARIO_MAIN = scn[4, 7]; Ch. 3 Drowzee is defeated and you rescue Azurill D03P41A

m03a1001.ssb

S02P01A (debug)

m00a01a.ssb

~ line 426

(under “Dialogue Check”)

TALK-M03-08

$SCENARIO_MAIN = scn[5, 0]; Requires you to do 3+ missions and scn[4, 7]; Found in unionall under

EVENT_HA_YU_KI

~ line 2283

S02P01A (debug)

m00a01a.ssb

~ line 2160

Main 4
$SCENARIO_MAIN = scn[5, 1]; Chapter 4 Loudred calls you over to do sentry duty for the first time G01P04A

m04a0101.ssb

$SCENARIO_MAIN = scn[5, 2]; Ch. 4 Triggers as the hero and partner are crawling to the sentry post G01P04A

m04a0106.ssb

$SCENARIO_MAIN = scn[5, 3]; Ch. 4 You have just completed sentry duty for the first time, and are about to hear your results G01P04A

m04a0201.ssb

$SCENARIO_MAIN = scn[5, 4]; Ch. 4 Triggers just after you receive the results if you failed sentry duty G01P04A

m04a0201.ssb

Only triggers if you failed sentry duty
$SCENARIO_MAIN = scn[5, 5]; Ch. 4 Triggers after you’ve seen the cutscene where your team and Loudred go without dinner, which only happens if you failed sentry duty Found in unionall under

EVENT_M04_02_03

~ line 3242

Only triggers if scn[5, 4];

Appears in a switch case

S02P01A (debug)

m00a01a.ssb

~ line 431

(under “Dialogue Check”)


TALK-M04-03

$SCENARIO_MAIN = scn[5, 6]; Ch. 4 Requires you to do 2+ missions and scn[5, 5]; Found in unionall under

EVENT_HA_YU_KI

~ line 2314

$SCENARIO_MAIN = scn[5, 7]; Ch. 4 Requires you to “do 0+ missions” and scn[5, 6]; Found in unionall under

EVENT_HA_YU_KI

~ line 2325

happylappy suspects that this, and others like it, are just counting the number of days that pass
$SCENARIO_MAIN = scn[5, 8]; Ch. 4 Requires you to “do 0+ missions” and scn[5, 7]; Found in unionall under

EVENT_HA_YU_KI

~ line 2336

$SCENARIO_MAIN = scn[6, 0]; Chapter 5 Requires you to “do 0+ missions” andscn[5, 8]; Found in unionall under

EVENT_HA_YU_KI

~ line 2347

S02P01A (debug)

m00a01a.ssb

~ line 2165

Main 5
$SCENARIO_MAIN = scn[6, 1]; Ch. 5 Morning address where Chatot announces that Treeshroud Forest’s Time Gear has been stolen G01P04A

m05a0101.ssb

S02P01A (debug)

m00a01a.ssb

~ line 436

(under “Dialogue Check”)

TALK-M05-02

$SCENARIO_MAIN = scn[6, 2]; Ch. 5 Triggers after you tell Chatot you understand the details of your mission to investigate Waterfall Cave G01P04A

m05a0203.ssb

$SCENARIO_MAIN = scn[6, 3]; Ch. 5 Chimecho Assembly opens G01P03A

m00p0101.ssb

$SCENARIO_MAIN = scn[6, 4]; Ch. 5 The hero and partner discover the stairs to Spinda’s shop for the first time (“opening soon!”) P01P01A

s30a0101.ssb

$SCENARIO_MAIN = scn[6, 5]; Ch. 5 Triggers when you enter Waterfall Cave for the first time D04P12A

m05a0304.ssb

S02P01A (debug)

m00a01a.ssb

~ line 441

(under “Dialogue Check”)

TALK-M05-04

$SCENARIO_MAIN = scn[6, 6]; Ch. 5 Reaching the bottom of Waterfall Cave D04P31A

m05a0601.ssb

$SCENARIO_MAIN = scn[7, 0]; Ch. 5 After dinner, Wigglytuff tells your team about the upcoming expedition G01P05C

m05a0911.ssb

S02P01A (debug)

m00a01a.ssb

~ line 2170

Main 6
$SCENARIO_MAIN = scn[7, 1]; Chapter 6 During the morning address, Chatot talks to everyone about the expedition G01P04A

m06a0101.ssb

S02P01A (debug)

m00a01a.ssb

~ line 446

(under “Dialogue Check”)

TALK-M06-02

$SCENARIO_MAIN = scn[7, 2]; Ch. 6 About to encounter Koffing and Zubat at the job boards G01P03A

m06a0201.ssb

S02P01A (debug)

m00a01a.ssb

~ line 451

(under “Dialogue Check”)

TALK-M06-03

$SCENARIO_MAIN = scn[7, 3]; Ch. 6 Opening cutscene for Spinda’s Café P01P01A

s30a0201.ssb

S02P01A (debug)

m00a01a.ssb

~ line 456

(under “Dialogue Check”)

TALK-M06-035

$SCENARIO_MAIN = scn[7, 4]; Ch. 6 Loudred calls the hero and partner over for sentry duty (again) G01P04A

m06a0401.ssb

$SCENARIO_MAIN = scn[7, 5]; Ch. 6 Diglett has something else he has to do, and needs your team to do sentry duty again G01P04A

m06a0401.ssb

&

m06a0403.ssb

Triggers twice for whatever reason. The first time is at the start of the scene where Diglett asks for your help again, and the second time is after you confirm to Loudred that you understand what you need to do (i.e. right before the sentry duty minigame starts)
$SCENARIO_MAIN = scn[7, 6]; Ch. 6 Chatot has just announced that Team Skull will be living at the guild until the expedition G01P04A

m06a0501.ssb

S02P01A (debug)

m00a01a.ssb

~ line 461

(under “Dialogue Check”)

TALK-M06-05

$SCENARIO_MAIN = scn[8, 0]; Ch. 6 Requires scn[7, 6]; Found in unionall under

EVENT_HA_YU_KI

~ line 2431

S02P01A (debug)

m00a01a.ssb

~ line 2175

Main 7
$SCENARIO_MAIN = scn[8, 1]; Ch. 6 Chatot asks your team to go find Perfect Apples at Apple Woods G01P04A

m07a0301.ssb

S02P01A (debug)

m00a01a.ssb

~ line 466

(under “Dialogue Check”)

TALK-M07-02

$SCENARIO_MAIN = scn[8, 2]; Ch. 6 Entering Apple Woods for the first time D05P11A

m07a0601.ssb

S02P01A (debug)

m00a01a.ssb

~ line 471

(under “Dialogue Check”)

TALK-M07-04

$SCENARIO_MAIN = scn[8, 3]; Ch, 6 Reaching the end of Apple Woods and encountering Team Skul D05P31A

m07a0701.ssb

$SCENARIO_MAIN = scn[8, 4]; Ch. 6 The other guild apprentices sneak in some food for the hero and partner G01P07A

m07a1302.ssb

S02P01A (debug)

m00a01a.ssb

~ line 476

(under “Dialogue Check”)

TALK-M07-06

$SCENARIO_MAIN = scn[8, 5]; Ch. 6 Project P is introduced to the player for the first time upon entering the crossroads P01P01A

s30a0301.ssb

S02P01A (debug)

m00a01a.ssb

~ line 481

(under “Dialogue Check”)

TALK-M07-065

$SCENARIO_MAIN = scn[8, 6]; Ch. 6 Seems to be triggered upon re-entering the crossroads after having seen the Project P cutscene (i.e., having scn[8, 5];) G01P01A

enter02.ssb


P01P02A

enter02.ssb


P01P04A

enter01.ssb


T01P01A

enter01.ssb

This value can be triggered by four different enter scripts that all connect to the crossroads S02P01A (debug)

m00a01a.ssb

~ line 488

(under “Dialogue Check”)

TALK-M07-067

$SCENARIO_MAIN = scn[8, 7]; Ch. 6 Requires you to do 1+ missions and scn[8, 6]; Found in unionall under

EVENT_HA_YU_KI

~ line 2358

S02P01A (debug)

m00a01a.ssb

~ line 493

(under “Dialogue Check”)

TALK-M07-08

$SCENARIO_MAIN = scn[8, 8]; Ch. 6 Requires you to do sentry duty and havescn[8, 7]; Found in unionall under

EVENT_HA_YU_KI

~ line 2370

$SCENARIO_MAIN = scn[8, 9]; Ch. 6 Requires you to “do 0+ missions” and scn[8, 8]; Found in unionall under

EVENT_HA_YU_KI

~ line 2381

$SCENARIO_MAIN = scn[9, 0]; Ch. 6 Requires you to “do 0+ missions” and scn[8, 9]; Found in unionall under

EVENT_HA_YU_KI

~ line 2392

S02P01A (debug)

m00a01a.ssb

~ line 2180

Main 8
$SCENARIO_MAIN = scn[9, 1]; Ch. 6 Announcement of the expedition members during the morning address G01P04A

m08a0301.ssb

S02P01A (debug)

m00a01a.ssb

~ line 1639

&

~ line 1646

&

~ line 498

(under “Others”)

M8 Ready for the Expedition?


(under “Others”)

M8 First Time to Craggy Coast


(under “Dialogue Check”)

TALK-M08-02