Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
wstag375.c File Reference

WSTAG375: Protocol Ruins, East Sector. More...

Include dependency graph for wstag375.c:

Go to the source code of this file.

Macros

#define SPRITES   0x1BF
 The file of the sprites, which the versions number differently.
 
#define STAGE_CHILDREN_SIZE   0x8
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_06)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_300 - 1)
 
#define STAGE_FILE   0x1BF
 
#define STAGE_ARCHIVE   0x2D1
 

Functions

void updateFarSprites (StageTask *task)
 Draws 36 sprites of file SPRITES at the positions of farSpriteSpots, scrolled at 1/8.
 
void updateStage (StageTask *task, void **children)
 Creates the stage helper task, and the event object when flag 0x4053 is set and 0x4054 is not.
 
void endEvent1260 (void)
 After event 1260, with Pharaohmon: lets event 1261 start and starts the stage's event battle 0.
 
void endEvent1261 (void)
 After event 1261, with Pharaohmon: gives the player the Old Wand and keeps it from playing again.
 
void setupStage (void)
 Sets the stage up: its map, actors, battles and events, playing PYRA_BGM; battle list 0 before STORY_TEDDY_FOUND, 1 from then on.
 

Variables

Vec2 farSpriteSpots []
 Defined below, after the tables that use them.
 
FieldBattles stageBattles0 []
 Defined below, after the code that uses them.
 
FieldBattles stageBattles1 []
 
const CVECTOR stageColor = { 0x80, 0x80, 0x80, 0x00 }
 the color the setup copies to FIELDSTG_state.spriteColor
 
s16 script1260 []
 
s16 script1261 []
 
AreaBattle battles0Area0Battle0 = { 47, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area0Battle1 = { 47, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area0Battle2 = { 47, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area0Battle3 = { 47, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area0Battle4 = { 45, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area0Battle5 = { 45, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area0Battle6 = { 45, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area0Battle7 = { 45, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList battles0Area0Battles
 
AreaBattle battles0Area1Battle0 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area1Battle1 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area1Battle2 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area1Battle3 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area1Battle4 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area1Battle5 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area1Battle6 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area1Battle7 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList battles0Area1Battles
 
AreaBattle battles0Area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
BattleList battles0Area2Battles
 
AreaBattle battles0Area3Battle0 = { 1, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area3Battle1 = { 309, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area3Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area3Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area3Battle5 = { 47, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles0Area3Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
BattleList battles0Area3Battles
 
AreaBattle battles1Area0Battle0 = { 47, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area0Battle1 = { 45, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area0Battle2 = { 46, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area0Battle3 = { 46, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area0Battle4 = { 46, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area0Battle5 = { 46, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area0Battle6 = { 46, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area0Battle7 = { 46, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList battles1Area0Battles
 
AreaBattle battles1Area1Battle0 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area1Battle1 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area1Battle2 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area1Battle3 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area1Battle4 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area1Battle5 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area1Battle6 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area1Battle7 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList battles1Area1Battles
 
AreaBattle battles1Area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
BattleList battles1Area2Battles
 
AreaBattle battles1Area3Battle0 = { 1, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area3Battle1 = { 309, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area3Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area3Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area3Battle5 = { 47, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle battles1Area3Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
BattleList battles1Area3Battles
 
ActorImage stageImages []
 
u16 actor2Talk0Conditions [] = { (0x7000 | ( 0xD )) , 0, 0xFFFF }
 
u16 actor2Talk0Actions [] = { (0x7000 | ( 0x13 )) , 1, (0x7000 | ( 0x32 )) , 1, 0xFFFF }
 
u16 actor2Talk1Conditions [] = { (0x7000 | ( 0xD )) , 1, 0xFFFF }
 
u16 actor3Talk0Conditions [] = { (( 0x1A ) << 8 | ( 0x29 )) , 0, 0xFFFF }
 
u16 actor3Talk0Actions [] = { (( 0x1A ) << 8 | ( 0x29 )) , 1, 0xFFFF }
 
u16 actor3Talk1Conditions [] = { (( 0x1A ) << 8 | ( 0x29 )) , 1, (0x7000 | ( 0x2B )) , 0, 0xFFFF }
 
u16 actor3Talk2Conditions []
 
u16 actor3Talk2Actions [] = { (( 6 ) << 8 | ( 7 )) , 1, 0xFFFF }
 
u16 actor3Talk3Conditions []
 
u16 actor4Talk0Conditions [] = { (0x7000 | ( 0xD )) , 0, 0xFFFF }
 
u16 actor4Talk0Actions [] = { (0x7000 | ( 0x13 )) , 1, (0x7000 | ( 0x32 )) , 1, 0xFFFF }
 
u16 actor4Talk1Conditions [] = { (0x7000 | ( 0xD )) , 1, 0xFFFF }
 
u16 actor5Talk0Conditions [] = { (( 0x1A ) << 8 | ( 0x29 )) , 0, 0xFFFF }
 
u16 actor5Talk0Actions [] = { (( 0x1A ) << 8 | ( 0x29 )) , 1, 0xFFFF }
 
u16 actor5Talk1Conditions [] = { (( 0x1A ) << 8 | ( 0x29 )) , 1, (0x7000 | ( 0x2B )) , 0, 0xFFFF }
 
u16 actor5Talk2Conditions []
 
u16 actor5Talk2Actions [] = { (( 6 ) << 8 | ( 7 )) , 1, 0xFFFF }
 
u16 actor5Talk3Conditions []
 
u16 actor6Talk0Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor6Talk0Actions [] = { (( 0xA ) << 8 | ( 0 )) , 1, (0x9000 | ( 0x35 )) , 1, 0xFFFF }
 
u16 actor6Talk1Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor7Talk0Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor7Talk0Actions [] = { (( 0xA ) << 8 | ( 0 )) , 1, (0x9000 | ( 0x35 )) , 1, 0xFFFF }
 
u16 actor7Talk1Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor8Talk0Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor8Talk0Actions [] = { (( 0xA ) << 8 | ( 0 )) , 1, (0x9000 | ( 0x35 )) , 1, 0xFFFF }
 
u16 actor8Talk1Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor9Talk0Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor9Talk0Actions [] = { (( 0xA ) << 8 | ( 0 )) , 1, (0x9000 | ( 0x35 )) , 1, 0xFFFF }
 
u16 actor9Talk1Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor10Talk0Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor10Talk0Actions [] = { (( 0xA ) << 8 | ( 0 )) , 1, (0x9000 | ( 0x35 )) , 1, 0xFFFF }
 
u16 actor10Talk1Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor11Talk0Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor11Talk0Actions [] = { (( 0xA ) << 8 | ( 0 )) , 1, (0x9000 | ( 0x35 )) , 1, 0xFFFF }
 
u16 actor11Talk1Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor12Talk0Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor12Talk0Actions [] = { (( 0xA ) << 8 | ( 0 )) , 1, (0x9000 | ( 0x35 )) , 1, 0xFFFF }
 
u16 actor12Talk1Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor13Talk0Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor13Talk0Actions [] = { (( 0xA ) << 8 | ( 0 )) , 1, (0x9000 | ( 0x35 )) , 1, 0xFFFF }
 
u16 actor13Talk1Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor14Talk0Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor14Talk0Actions [] = { (( 0xA ) << 8 | ( 0 )) , 1, (0x9000 | ( 0x35 )) , 1, 0xFFFF }
 
u16 actor14Talk1Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor15Talk0Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor15Talk0Actions [] = { (( 0xA ) << 8 | ( 0 )) , 1, (0x9000 | ( 0x35 )) , 1, 0xFFFF }
 
u16 actor15Talk1Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor16Talk0Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor16Talk0Actions [] = { (0x9000 | ( 0x35 )) , 1, (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor16Talk1Conditions [] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor17Talk0Conditions [] = { (( 0x1C ) << 8 | ( 0xF )) , 0, 0xFFFF }
 
u16 actor17Talk1Conditions [] = { (( 0x1C ) << 8 | ( 0xF )) , 1, (( 0 ) << 8 | ( 5 )) , 0, 0xFFFF }
 
u16 actor17Talk1Actions [] = { (( 0x1C ) << 8 | ( 0x10 )) , 1, (( 0 ) << 8 | ( 5 )) , 1, 0xFFFF }
 
u16 actor17Talk2Conditions [] = { (( 0x1C ) << 8 | ( 0xF )) , 1, (( 0 ) << 8 | ( 5 )) , 1, 0xFFFF }
 
u16 actor18Talk0Conditions [] = { (( 0x1A ) << 8 | ( 0x17 )) , 0, 0xFFFF }
 
u16 actor18Talk1Conditions []
 
u16 actor18Talk1Actions [] = { (( 0x1A ) << 8 | ( 0x18 )) , 1, 0xFFFF }
 
u16 actor18Talk2Conditions []
 
u16 actor21Talk0Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 0xE )), 0, (( 0x1A ) << 8 | ( 0x2B )) , 0, 0xFFFF }
 
u16 actor21Talk1Conditions []
 
u16 actor21Talk1Actions [] = { (( 0x1C ) << 8 | ( 0x4F )) , 1, 0xFFFF }
 
u16 actor21Talk2Conditions []
 
u16 actor21Talk3Conditions []
 
u16 actor21Talk3Actions [] = { (0x7000 | ( 0x13 )) , 1, (0x8000 | ( 0 ) << 9 | ( 0xE )), 1, 0xFFFF }
 
u16 actor21Talk4Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 0xE )), 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor5Talks []
 
FieldTalk actor6Talks []
 
FieldTalk actor7Talks []
 
FieldTalk actor8Talks []
 
FieldTalk actor9Talks []
 
FieldTalk actor10Talks []
 
FieldTalk actor11Talks []
 
FieldTalk actor12Talks []
 
FieldTalk actor13Talks []
 
FieldTalk actor14Talks []
 
FieldTalk actor15Talks []
 
FieldTalk actor16Talks []
 
FieldTalk actor17Talks []
 
FieldTalk actor18Talks []
 
FieldTalk actor19Talks []
 
FieldTalk actor20Talks []
 
FieldTalk actor21Talks []
 
FieldTalk actor22Talks []
 
FieldTalk actor23Talks []
 
u16 actor0Conditions [] = { (( 0x1C ) << 8 | ( 0x11 )) , 0, (0x6000 | ( STORY_GENJI_BEATEN )) , 1, 0xFFFF }
 
u16 actor1Conditions [] = { (( 0x1C ) << 8 | ( 0x11 )) , 0, (0x6000 | ( STORY_GENJI_BEATEN )) , 1, 0xFFFF }
 
u16 actor2Conditions []
 
u16 actor3Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x23 )), 0, 0xFFFF }
 
u16 actor4Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x23 )), 1, 0xFFFF }
 
u16 actor5Conditions []
 
u16 actor6Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor7Conditions [] = { (0x6000 | ( STORY_LOOKING_FOR_TEDDY )) , 1, 0xFFFF }
 
u16 actor8Conditions [] = { (0x6000 | ( STORY_TEDDY_FOUND )) , 1, 0xFFFF }
 
u16 actor9Conditions [] = { (0x7000 | ( 0x16 )) , 1, 0xFFFF }
 
u16 actor10Conditions [] = { (0x7000 | ( 0x17 )) , 1, 0xFFFF }
 
u16 actor11Conditions [] = { (0x7000 | ( 0x18 )) , 1, 0xFFFF }
 
u16 actor12Conditions [] = { (0x7000 | ( 0x19 )) , 1, 0xFFFF }
 
u16 actor13Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
u16 actor14Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor15Conditions [] = { (0x7000 | ( 0x15 )) , 1, 0xFFFF }
 
u16 actor16Conditions [] = { (0x6000 | ( STORY_GENJI_BEATEN )) , 1, 0xFFFF }
 
u16 actor17Conditions [] = { (( 0x1C ) << 8 | ( 0x11 )) , 0, (0x6000 | ( STORY_GENJI_BEATEN )) , 1, 0xFFFF }
 
u16 actor18Conditions [] = { (0x6000 | ( STORY_SEPIKMON_MASK_LOST )) , 1, 0xFFFF }
 
u16 actor19Conditions [] = { (0x6000 | ( STORY_AGUMON_SUITS )) , 1, 0xFFFF }
 
u16 actor20Conditions [] = { (0x7000 | ( 0x3C )) , 1, 0xFFFF }
 
u16 actor21Conditions [] = { (0x6000 | ( STORY_TEDDY_FOUND )) , 1, 0xFFFF }
 
u16 actor22Conditions [] = { (( 0x1C ) << 8 | ( 0x11 )) , 0, (0x6000 | ( STORY_GENJI_BEATEN )) , 1, 0xFFFF }
 
u16 actor23Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x22, 4, 505, 213, 7 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x23, 5, 480, 225, 7 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x2B, 6, 304, 328, 1 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x2B, 6, 304, 328, 1 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x2B, 6, 304, 328, 1 }
 
FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x2B, 6, 304, 328, 1 }
 
FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x3B, 7, 1073, 145, 1 }
 
FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x3B, 7, 1073, 145, 1 }
 
FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x3B, 7, 1073, 145, 1 }
 
FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x3B, 7, 1073, 145, 1 }
 
FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x3B, 7, 1073, 145, 1 }
 
FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x3B, 7, 1073, 145, 1 }
 
FieldActorEntry actor12 = { actor12Conditions, actor12Talks, 0x3B, 7, 1073, 145, 1 }
 
FieldActorEntry actor13 = { actor13Conditions, actor13Talks, 0x3B, 7, 1073, 145, 1 }
 
FieldActorEntry actor14 = { actor14Conditions, actor14Talks, 0x3B, 7, 1073, 145, 1 }
 
FieldActorEntry actor15 = { actor15Conditions, actor15Talks, 0x3B, 7, 1073, 145, 1 }
 
FieldActorEntry actor16 = { actor16Conditions, actor16Talks, 0x3B, 7, 1073, 145, 1 }
 
FieldActorEntry actor17 = { actor17Conditions, actor17Talks, 0x3C, 8, 560, 240, 3 }
 
FieldActorEntry actor18 = { actor18Conditions, actor18Talks, 0x3D, 9, 97, 242, 7 }
 
FieldActorEntry actor19 = { actor19Conditions, actor19Talks, 0x3D, 9, 97, 242, 7 }
 
FieldActorEntry actor20 = { actor20Conditions, actor20Talks, 0x3D, 9, 97, 242, 7 }
 
FieldActorEntry actor21 = { actor21Conditions, actor21Talks, 0x3D, 9, 97, 242, 7 }
 
FieldActorEntry actor22 = { actor22Conditions, actor22Talks, 0x40, 0xA, 529, 201, 7 }
 
FieldActorEntry actor23 = { actor23Conditions, actor23Talks, 0x9D, 0xB, 304, 328, 1 }
 
FieldActorEntry * stageActors []
 
StageTile stageObjects []
 The tables and color setupStage gives FIELDSTG_state (FieldState)
 
StageSlot stageSlots []
 
void(* stageFuncs [])(void)
 The stage's functions (common/start_stage.inc.c calls the first): a StageFuncs in the stages with a tween, which define STAGE_TWEEN before they include this file, and in the others an array of just setupStage.
 
FieldEvent stageEvents []
 

Detailed Description

WSTAG375: Protocol Ruins, East Sector.

Definition in file wstag375.c.

Macro Definition Documentation

◆ SPRITES

#define SPRITES   0x1BF

The file of the sprites, which the versions number differently.

Definition at line 14 of file wstag375.c.

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   0x8

Definition at line 69 of file wstag375.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_06)

Definition at line 97 of file wstag375.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_300 - 1)

Definition at line 98 of file wstag375.c.

◆ STAGE_FILE

#define STAGE_FILE   0x1BF

Definition at line 99 of file wstag375.c.

◆ STAGE_ARCHIVE

#define STAGE_ARCHIVE   0x2D1

Definition at line 100 of file wstag375.c.

Function Documentation

◆ updateFarSprites()

void updateFarSprites ( StageTask *  task)

Draws 36 sprites of file SPRITES at the positions of farSpriteSpots, scrolled at 1/8.

< the map, its objects and characters, and the menus

< the map, its objects and characters, and the menus

Definition at line 18 of file wstag375.c.

Referenced by createFarSprites().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateStage()

void updateStage ( StageTask *  task,
void **  children 
)

Creates the stage helper task, and the event object when flag 0x4053 is set and 0x4054 is not.

< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40

< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40

Definition at line 52 of file wstag375.c.

Here is the call graph for this function:

◆ endEvent1260()

void endEvent1260 ( void  )

After event 1260, with Pharaohmon: lets event 1261 start and starts the stage's event battle 0.

< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40

< action: FIELDSTG_battleFuncs.startEventBattle

Definition at line 73 of file wstag375.c.

◆ endEvent1261()

void endEvent1261 ( void  )

After event 1261, with Pharaohmon: gives the player the Old Wand and keeps it from playing again.

< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40

Definition at line 82 of file wstag375.c.

◆ setupStage()

void setupStage ( void  )

Sets the stage up: its map, actors, battles and events, playing PYRA_BGM; battle list 0 before STORY_TEDDY_FOUND, 1 from then on.

Sets the stage up: its map, actors, battles and events, playing KANRIBGM; BGM_0029 instead except at STORY_PRESIDENT_ARRESTED once flag 0x1A0A is set.

< PYRA_BGM: the Protocol Ruins

< PYRA_BGM: the Protocol Ruins

< a cell's value: a direction (3 bits) and a StageSlot (5)

< a cell's value: its battle area (FieldBattles), or 0

Definition at line 106 of file wstag375.c.

Variable Documentation

◆ farSpriteSpots

Vec2 farSpriteSpots
Initial value:
= {
{ 596, 399 }, { 809, 564 }, { 820, 832 }, { 1143, 1009 },
{ 738, 1035 }, { 416, 1055 }, { 36, 28 }, { 140, 0 },
{ 178, 159 }, { 218, 202 }, { 186, 242 }, { 299, 93 },
{ 418, 16 }, { 440, 329 }, { 476, 369 }, { 725, 82 },
{ 1137, 24 }, { 1213, 103 }, { 1281, 147 }, { 1349, 48 },
{ 669, 632 }, { 491, 796 }, { 661, 889 }, { 624, 926 },
{ 998, 634 }, { 1026, 648 }, { 890, 940 }, { 915, 959 },
{ 826, 1119 }, { 1028, 1089 }, { 1227, 1002 }, { 1306, 861 },
{ 498, 1190 }, { 146, 569 }, { 187, 590 }, { 394, 616 },
}

Defined below, after the tables that use them.

Definition at line 194 of file wstag375.c.

Referenced by updateFarSprites().

◆ stageBattles0

FieldBattles stageBattles0[]
Initial value:
= {
}
BattleList battles0Area3Battles
Definition wstag375.c:252
BattleList battles0Area0Battles
Definition wstag375.c:213
BattleList battles0Area2Battles
Definition wstag375.c:239
BattleList battles0Area1Battles
Definition wstag375.c:226

Defined below, after the code that uses them.

Definition at line 309 of file wstag375.c.

Referenced by setupStage().

◆ stageBattles1

FieldBattles stageBattles1[]
Initial value:
= {
}
BattleList battles1Area1Battles
Definition wstag375.c:278
BattleList battles1Area3Battles
Definition wstag375.c:304
BattleList battles1Area0Battles
Definition wstag375.c:265
BattleList battles1Area2Battles
Definition wstag375.c:291

Definition at line 312 of file wstag375.c.

Referenced by setupStage().

◆ stageColor

const CVECTOR stageColor = { 0x80, 0x80, 0x80, 0x00 }

the color the setup copies to FIELDSTG_state.spriteColor

the color the setup copies to FIELDSTG_state.spriteColor

It starts the stage, before its jump tables: in wstag924.c GCC would align them to 8 bytes after it, so it is a file of its own, linked first

Definition at line 90 of file wstag375.c.

Referenced by setupStage().

◆ script1260

s16 script1260[]

Definition at line 133 of file wstag375.c.

◆ script1261

s16 script1261[]
Initial value:
= {
0x600, 1 , 2 ,
0x100, 2 , 0x414 , 0x9F ,
0x101, 2 , 1 , 5 ,
0x100, 0x3B , 0x431 , 0x91 ,
0x101, 0x3B , 1 , 1 ,
0x300, 0x78 ,
0x200, 0 , 1 , 0x3B , 0 ,
0x301 ,
0x300, 0x1E ,
0x200, 0 , 2 , 2 , 3 ,
0x101, 2 , 7 , 5 ,
0x301 ,
0x101, 2 , 1 , 5 ,
0x300, 0x1E ,
0x200, 0 , 3 , 0x3B , 0 ,
0x301 ,
0x101, 0x32D , 0x34A , 2 ,
0x300, 0x3C ,
0x200, 0 , 4 , 2 , 3 ,
0x101, 2 , 7 , 5 ,
0x301 ,
0x101, 2 , 1 , 5 ,
0x300, 0x1E ,
0x200, 0 , 5 , 0x3B , 0 ,
0x301 ,
0x300, 0x3C ,
0 ,
}

Definition at line 165 of file wstag375.c.

◆ battles0Area0Battle0

AreaBattle battles0Area0Battle0 = { 47, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 205 of file wstag375.c.

◆ battles0Area0Battle1

AreaBattle battles0Area0Battle1 = { 47, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 206 of file wstag375.c.

◆ battles0Area0Battle2

AreaBattle battles0Area0Battle2 = { 47, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 207 of file wstag375.c.

◆ battles0Area0Battle3

AreaBattle battles0Area0Battle3 = { 47, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 208 of file wstag375.c.

◆ battles0Area0Battle4

AreaBattle battles0Area0Battle4 = { 45, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 209 of file wstag375.c.

◆ battles0Area0Battle5

AreaBattle battles0Area0Battle5 = { 45, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 210 of file wstag375.c.

◆ battles0Area0Battle6

AreaBattle battles0Area0Battle6 = { 45, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 211 of file wstag375.c.

◆ battles0Area0Battle7

AreaBattle battles0Area0Battle7 = { 45, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 212 of file wstag375.c.

◆ battles0Area0Battles

BattleList battles0Area0Battles
Initial value:
= {
3,
}
AreaBattle battles0Area0Battle3
Definition wstag375.c:208
AreaBattle battles0Area0Battle7
Definition wstag375.c:212
AreaBattle battles0Area0Battle5
Definition wstag375.c:210
AreaBattle battles0Area0Battle4
Definition wstag375.c:209
AreaBattle battles0Area0Battle1
Definition wstag375.c:206
AreaBattle battles0Area0Battle0
Definition wstag375.c:205
AreaBattle battles0Area0Battle2
Definition wstag375.c:207
AreaBattle battles0Area0Battle6
Definition wstag375.c:211

Definition at line 213 of file wstag375.c.

◆ battles0Area1Battle0

AreaBattle battles0Area1Battle0 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 218 of file wstag375.c.

◆ battles0Area1Battle1

AreaBattle battles0Area1Battle1 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 219 of file wstag375.c.

◆ battles0Area1Battle2

AreaBattle battles0Area1Battle2 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 220 of file wstag375.c.

◆ battles0Area1Battle3

AreaBattle battles0Area1Battle3 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 221 of file wstag375.c.

◆ battles0Area1Battle4

AreaBattle battles0Area1Battle4 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 222 of file wstag375.c.

◆ battles0Area1Battle5

AreaBattle battles0Area1Battle5 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 223 of file wstag375.c.

◆ battles0Area1Battle6

AreaBattle battles0Area1Battle6 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 224 of file wstag375.c.

◆ battles0Area1Battle7

AreaBattle battles0Area1Battle7 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 225 of file wstag375.c.

◆ battles0Area1Battles

BattleList battles0Area1Battles
Initial value:
= {
0,
}
AreaBattle battles0Area1Battle4
Definition wstag375.c:222
AreaBattle battles0Area1Battle2
Definition wstag375.c:220
AreaBattle battles0Area1Battle3
Definition wstag375.c:221
AreaBattle battles0Area1Battle6
Definition wstag375.c:224
AreaBattle battles0Area1Battle5
Definition wstag375.c:223
AreaBattle battles0Area1Battle7
Definition wstag375.c:225
AreaBattle battles0Area1Battle1
Definition wstag375.c:219
AreaBattle battles0Area1Battle0
Definition wstag375.c:218

Definition at line 226 of file wstag375.c.

◆ battles0Area2Battle0

AreaBattle battles0Area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 231 of file wstag375.c.

◆ battles0Area2Battle1

AreaBattle battles0Area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 232 of file wstag375.c.

◆ battles0Area2Battle2

AreaBattle battles0Area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 233 of file wstag375.c.

◆ battles0Area2Battle3

AreaBattle battles0Area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 234 of file wstag375.c.

◆ battles0Area2Battle4

AreaBattle battles0Area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 235 of file wstag375.c.

◆ battles0Area2Battle5

AreaBattle battles0Area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 236 of file wstag375.c.

◆ battles0Area2Battle6

AreaBattle battles0Area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 237 of file wstag375.c.

◆ battles0Area2Battle7

AreaBattle battles0Area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 238 of file wstag375.c.

◆ battles0Area2Battles

BattleList battles0Area2Battles
Initial value:
= {
0,
}
AreaBattle battles0Area2Battle2
Definition wstag375.c:233
AreaBattle battles0Area2Battle1
Definition wstag375.c:232
AreaBattle battles0Area2Battle3
Definition wstag375.c:234
AreaBattle battles0Area2Battle0
Definition wstag375.c:231
AreaBattle battles0Area2Battle5
Definition wstag375.c:236
AreaBattle battles0Area2Battle4
Definition wstag375.c:235
AreaBattle battles0Area2Battle6
Definition wstag375.c:237
AreaBattle battles0Area2Battle7
Definition wstag375.c:238

Definition at line 239 of file wstag375.c.

◆ battles0Area3Battle0

AreaBattle battles0Area3Battle0 = { 1, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }

Definition at line 244 of file wstag375.c.

◆ battles0Area3Battle1

AreaBattle battles0Area3Battle1 = { 309, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }

Definition at line 245 of file wstag375.c.

◆ battles0Area3Battle2

AreaBattle battles0Area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 246 of file wstag375.c.

◆ battles0Area3Battle3

AreaBattle battles0Area3Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 247 of file wstag375.c.

◆ battles0Area3Battle4

AreaBattle battles0Area3Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 248 of file wstag375.c.

◆ battles0Area3Battle5

AreaBattle battles0Area3Battle5 = { 47, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 249 of file wstag375.c.

◆ battles0Area3Battle6

AreaBattle battles0Area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 250 of file wstag375.c.

◆ battles0Area3Battle7

AreaBattle battles0Area3Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 251 of file wstag375.c.

◆ battles0Area3Battles

BattleList battles0Area3Battles
Initial value:
= {
0,
}
AreaBattle battles0Area3Battle3
Definition wstag375.c:247
AreaBattle battles0Area3Battle7
Definition wstag375.c:251
AreaBattle battles0Area3Battle1
Definition wstag375.c:245
AreaBattle battles0Area3Battle6
Definition wstag375.c:250
AreaBattle battles0Area3Battle4
Definition wstag375.c:248
AreaBattle battles0Area3Battle2
Definition wstag375.c:246
AreaBattle battles0Area3Battle5
Definition wstag375.c:249
AreaBattle battles0Area3Battle0
Definition wstag375.c:244

Definition at line 252 of file wstag375.c.

◆ battles1Area0Battle0

AreaBattle battles1Area0Battle0 = { 47, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 257 of file wstag375.c.

◆ battles1Area0Battle1

AreaBattle battles1Area0Battle1 = { 45, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 258 of file wstag375.c.

◆ battles1Area0Battle2

AreaBattle battles1Area0Battle2 = { 46, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 259 of file wstag375.c.

◆ battles1Area0Battle3

AreaBattle battles1Area0Battle3 = { 46, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 260 of file wstag375.c.

◆ battles1Area0Battle4

AreaBattle battles1Area0Battle4 = { 46, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 261 of file wstag375.c.

◆ battles1Area0Battle5

AreaBattle battles1Area0Battle5 = { 46, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 262 of file wstag375.c.

◆ battles1Area0Battle6

AreaBattle battles1Area0Battle6 = { 46, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 263 of file wstag375.c.

◆ battles1Area0Battle7

AreaBattle battles1Area0Battle7 = { 46, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 264 of file wstag375.c.

◆ battles1Area0Battles

BattleList battles1Area0Battles
Initial value:
= {
3,
}
AreaBattle battles1Area0Battle4
Definition wstag375.c:261
AreaBattle battles1Area0Battle5
Definition wstag375.c:262
AreaBattle battles1Area0Battle6
Definition wstag375.c:263
AreaBattle battles1Area0Battle0
Definition wstag375.c:257
AreaBattle battles1Area0Battle3
Definition wstag375.c:260
AreaBattle battles1Area0Battle7
Definition wstag375.c:264
AreaBattle battles1Area0Battle1
Definition wstag375.c:258
AreaBattle battles1Area0Battle2
Definition wstag375.c:259

Definition at line 265 of file wstag375.c.

◆ battles1Area1Battle0

AreaBattle battles1Area1Battle0 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 270 of file wstag375.c.

◆ battles1Area1Battle1

AreaBattle battles1Area1Battle1 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 271 of file wstag375.c.

◆ battles1Area1Battle2

AreaBattle battles1Area1Battle2 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 272 of file wstag375.c.

◆ battles1Area1Battle3

AreaBattle battles1Area1Battle3 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 273 of file wstag375.c.

◆ battles1Area1Battle4

AreaBattle battles1Area1Battle4 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 274 of file wstag375.c.

◆ battles1Area1Battle5

AreaBattle battles1Area1Battle5 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 275 of file wstag375.c.

◆ battles1Area1Battle6

AreaBattle battles1Area1Battle6 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 276 of file wstag375.c.

◆ battles1Area1Battle7

AreaBattle battles1Area1Battle7 = { 0, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 277 of file wstag375.c.

◆ battles1Area1Battles

BattleList battles1Area1Battles
Initial value:
= {
0,
}
AreaBattle battles1Area1Battle5
Definition wstag375.c:275
AreaBattle battles1Area1Battle3
Definition wstag375.c:273
AreaBattle battles1Area1Battle2
Definition wstag375.c:272
AreaBattle battles1Area1Battle1
Definition wstag375.c:271
AreaBattle battles1Area1Battle4
Definition wstag375.c:274
AreaBattle battles1Area1Battle0
Definition wstag375.c:270
AreaBattle battles1Area1Battle6
Definition wstag375.c:276
AreaBattle battles1Area1Battle7
Definition wstag375.c:277

Definition at line 278 of file wstag375.c.

◆ battles1Area2Battle0

AreaBattle battles1Area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 283 of file wstag375.c.

◆ battles1Area2Battle1

AreaBattle battles1Area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 284 of file wstag375.c.

◆ battles1Area2Battle2

AreaBattle battles1Area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 285 of file wstag375.c.

◆ battles1Area2Battle3

AreaBattle battles1Area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 286 of file wstag375.c.

◆ battles1Area2Battle4

AreaBattle battles1Area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 287 of file wstag375.c.

◆ battles1Area2Battle5

AreaBattle battles1Area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 288 of file wstag375.c.

◆ battles1Area2Battle6

AreaBattle battles1Area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 289 of file wstag375.c.

◆ battles1Area2Battle7

AreaBattle battles1Area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 290 of file wstag375.c.

◆ battles1Area2Battles

BattleList battles1Area2Battles
Initial value:
= {
0,
}
AreaBattle battles1Area2Battle4
Definition wstag375.c:287
AreaBattle battles1Area2Battle2
Definition wstag375.c:285
AreaBattle battles1Area2Battle6
Definition wstag375.c:289
AreaBattle battles1Area2Battle3
Definition wstag375.c:286
AreaBattle battles1Area2Battle0
Definition wstag375.c:283
AreaBattle battles1Area2Battle5
Definition wstag375.c:288
AreaBattle battles1Area2Battle1
Definition wstag375.c:284
AreaBattle battles1Area2Battle7
Definition wstag375.c:290

Definition at line 291 of file wstag375.c.

◆ battles1Area3Battle0

AreaBattle battles1Area3Battle0 = { 1, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }

Definition at line 296 of file wstag375.c.

◆ battles1Area3Battle1

AreaBattle battles1Area3Battle1 = { 309, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }

Definition at line 297 of file wstag375.c.

◆ battles1Area3Battle2

AreaBattle battles1Area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 298 of file wstag375.c.

◆ battles1Area3Battle3

AreaBattle battles1Area3Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 299 of file wstag375.c.

◆ battles1Area3Battle4

AreaBattle battles1Area3Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 300 of file wstag375.c.

◆ battles1Area3Battle5

AreaBattle battles1Area3Battle5 = { 47, 7, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 301 of file wstag375.c.

◆ battles1Area3Battle6

AreaBattle battles1Area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 302 of file wstag375.c.

◆ battles1Area3Battle7

AreaBattle battles1Area3Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 303 of file wstag375.c.

◆ battles1Area3Battles

BattleList battles1Area3Battles
Initial value:
= {
0,
}
AreaBattle battles1Area3Battle5
Definition wstag375.c:301
AreaBattle battles1Area3Battle0
Definition wstag375.c:296
AreaBattle battles1Area3Battle7
Definition wstag375.c:303
AreaBattle battles1Area3Battle2
Definition wstag375.c:298
AreaBattle battles1Area3Battle6
Definition wstag375.c:302
AreaBattle battles1Area3Battle4
Definition wstag375.c:300
AreaBattle battles1Area3Battle3
Definition wstag375.c:299
AreaBattle battles1Area3Battle1
Definition wstag375.c:297

Definition at line 304 of file wstag375.c.

◆ stageImages

ActorImage stageImages[]
Initial value:
= {
{ 0x200, 0x100, 0x21C, 0x1A6, 0x70, 0xA6, 0x230, 0x1FE },
{ 0x200, 0x100, 0x200, 0x100, 0, 0, 0x220, 0x1FE },
{ 0x200, 0x100, 0x216, 0x138, 0x58, 0x38, 0x200, 0x1FD },
{ 0x200, 0x100, 0x208, 0x1BC, 0x20, 0xBC, 0x210, 0x1FD },
{ 0x200, 0x100, 0x210, 0x1BC, 0x40, 0xBC, 0x220, 0x1FD },
{ 0x200, 0x100, 0x200, 0x1BC, 0, 0xBC, 0x230, 0x1FD },
{ 0x140, 0x100, 0x162, 0x128, 0x88, 0x28, 0x170, 0x1FF },
{ 0x140, 0x100, 0x16A, 0x128, 0xA8, 0x28, 0x140, 0x1FE },
{ 0x140, 0x100, 0x15A, 0x100, 0x68, 0, 0x150, 0x1FE },
{ 0x140, 0x100, 0x150, 0x100, 0x40, 0, 0x160, 0x1FE },
{ 0x140, 0x100, 0x162, 0x100, 0x88, 0, 0x170, 0x1FE },
{ 0x140, 0x100, 0x16A, 0x100, 0xA8, 0, 0x140, 0x1FD },
{ 0x140, 0x100, 0x150, 0x130, 0x40, 0x30, 0x150, 0x1FD },
{ 0x140, 0x100, 0x172, 0x140, 0xC8, 0x40, 0x160, 0x1FD },
}

Definition at line 315 of file wstag375.c.

Referenced by setupStage().

◆ actor2Talk0Conditions

u16 actor2Talk0Conditions[] = { (0x7000 | ( 0xD )) , 0, 0xFFFF }

Definition at line 331 of file wstag375.c.

◆ actor2Talk0Actions

u16 actor2Talk0Actions[] = { (0x7000 | ( 0x13 )) , 1, (0x7000 | ( 0x32 )) , 1, 0xFFFF }

Definition at line 332 of file wstag375.c.

◆ actor2Talk1Conditions

u16 actor2Talk1Conditions[] = { (0x7000 | ( 0xD )) , 1, 0xFFFF }

Definition at line 333 of file wstag375.c.

◆ actor3Talk0Conditions

u16 actor3Talk0Conditions[] = { (( 0x1A ) << 8 | ( 0x29 )) , 0, 0xFFFF }

Definition at line 334 of file wstag375.c.

◆ actor3Talk0Actions

u16 actor3Talk0Actions[] = { (( 0x1A ) << 8 | ( 0x29 )) , 1, 0xFFFF }

Definition at line 335 of file wstag375.c.

◆ actor3Talk1Conditions

u16 actor3Talk1Conditions[] = { (( 0x1A ) << 8 | ( 0x29 )) , 1, (0x7000 | ( 0x2B )) , 0, 0xFFFF }

Definition at line 336 of file wstag375.c.

◆ actor3Talk2Conditions

u16 actor3Talk2Conditions[]
Initial value:
= {
(( 0x1A ) << 8 | ( 0x29 )) , 1,
(0x7000 | ( 0x2B )) , 1,
(0x7000 | ( 0x25 )) , 0,
0xFFFF ,
}

Definition at line 337 of file wstag375.c.

◆ actor3Talk2Actions

u16 actor3Talk2Actions[] = { (( 6 ) << 8 | ( 7 )) , 1, 0xFFFF }

Definition at line 343 of file wstag375.c.

◆ actor3Talk3Conditions

u16 actor3Talk3Conditions[]
Initial value:
= {
(( 0x1A ) << 8 | ( 0x29 )) , 1,
(0x7000 | ( 0x2B )) , 1,
(0x7000 | ( 0x25 )) , 1,
0xFFFF ,
}

Definition at line 344 of file wstag375.c.

◆ actor4Talk0Conditions

u16 actor4Talk0Conditions[] = { (0x7000 | ( 0xD )) , 0, 0xFFFF }

Definition at line 350 of file wstag375.c.

◆ actor4Talk0Actions

u16 actor4Talk0Actions[] = { (0x7000 | ( 0x13 )) , 1, (0x7000 | ( 0x32 )) , 1, 0xFFFF }

Definition at line 351 of file wstag375.c.

◆ actor4Talk1Conditions

u16 actor4Talk1Conditions[] = { (0x7000 | ( 0xD )) , 1, 0xFFFF }

Definition at line 352 of file wstag375.c.

◆ actor5Talk0Conditions

u16 actor5Talk0Conditions[] = { (( 0x1A ) << 8 | ( 0x29 )) , 0, 0xFFFF }

Definition at line 353 of file wstag375.c.

◆ actor5Talk0Actions

u16 actor5Talk0Actions[] = { (( 0x1A ) << 8 | ( 0x29 )) , 1, 0xFFFF }

Definition at line 354 of file wstag375.c.

◆ actor5Talk1Conditions

u16 actor5Talk1Conditions[] = { (( 0x1A ) << 8 | ( 0x29 )) , 1, (0x7000 | ( 0x2B )) , 0, 0xFFFF }

Definition at line 355 of file wstag375.c.

◆ actor5Talk2Conditions

u16 actor5Talk2Conditions[]
Initial value:
= {
(( 0x1A ) << 8 | ( 0x29 )) , 1,
(0x7000 | ( 0x2B )) , 1,
(0x7000 | ( 0x25 )) , 0,
0xFFFF ,
}

Definition at line 356 of file wstag375.c.

◆ actor5Talk2Actions

u16 actor5Talk2Actions[] = { (( 6 ) << 8 | ( 7 )) , 1, 0xFFFF }

Definition at line 362 of file wstag375.c.

◆ actor5Talk3Conditions

u16 actor5Talk3Conditions[]
Initial value:
= {
(( 0x1A ) << 8 | ( 0x29 )) , 1,
(0x7000 | ( 0x2B )) , 1,
(0x7000 | ( 0x25 )) , 1,
0xFFFF ,
}

Definition at line 363 of file wstag375.c.

◆ actor6Talk0Conditions

u16 actor6Talk0Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }

Definition at line 369 of file wstag375.c.

◆ actor6Talk0Actions

u16 actor6Talk0Actions[] = { (( 0xA ) << 8 | ( 0 )) , 1, (0x9000 | ( 0x35 )) , 1, 0xFFFF }

Definition at line 370 of file wstag375.c.

◆ actor6Talk1Conditions

u16 actor6Talk1Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 371 of file wstag375.c.

◆ actor7Talk0Conditions

u16 actor7Talk0Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }

Definition at line 372 of file wstag375.c.

◆ actor7Talk0Actions

u16 actor7Talk0Actions[] = { (( 0xA ) << 8 | ( 0 )) , 1, (0x9000 | ( 0x35 )) , 1, 0xFFFF }

Definition at line 373 of file wstag375.c.

◆ actor7Talk1Conditions

u16 actor7Talk1Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 374 of file wstag375.c.

◆ actor8Talk0Conditions

u16 actor8Talk0Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }

Definition at line 375 of file wstag375.c.

◆ actor8Talk0Actions

u16 actor8Talk0Actions[] = { (( 0xA ) << 8 | ( 0 )) , 1, (0x9000 | ( 0x35 )) , 1, 0xFFFF }

Definition at line 376 of file wstag375.c.

◆ actor8Talk1Conditions

u16 actor8Talk1Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 377 of file wstag375.c.

◆ actor9Talk0Conditions

u16 actor9Talk0Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }

Definition at line 378 of file wstag375.c.

◆ actor9Talk0Actions

u16 actor9Talk0Actions[] = { (( 0xA ) << 8 | ( 0 )) , 1, (0x9000 | ( 0x35 )) , 1, 0xFFFF }

Definition at line 379 of file wstag375.c.

◆ actor9Talk1Conditions

u16 actor9Talk1Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 380 of file wstag375.c.

◆ actor10Talk0Conditions

u16 actor10Talk0Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }

Definition at line 381 of file wstag375.c.

◆ actor10Talk0Actions

u16 actor10Talk0Actions[] = { (( 0xA ) << 8 | ( 0 )) , 1, (0x9000 | ( 0x35 )) , 1, 0xFFFF }

Definition at line 382 of file wstag375.c.

◆ actor10Talk1Conditions

u16 actor10Talk1Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 383 of file wstag375.c.

◆ actor11Talk0Conditions

u16 actor11Talk0Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }

Definition at line 384 of file wstag375.c.

◆ actor11Talk0Actions

u16 actor11Talk0Actions[] = { (( 0xA ) << 8 | ( 0 )) , 1, (0x9000 | ( 0x35 )) , 1, 0xFFFF }

Definition at line 385 of file wstag375.c.

◆ actor11Talk1Conditions

u16 actor11Talk1Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 386 of file wstag375.c.

◆ actor12Talk0Conditions

u16 actor12Talk0Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }

Definition at line 387 of file wstag375.c.

◆ actor12Talk0Actions

u16 actor12Talk0Actions[] = { (( 0xA ) << 8 | ( 0 )) , 1, (0x9000 | ( 0x35 )) , 1, 0xFFFF }

Definition at line 388 of file wstag375.c.

◆ actor12Talk1Conditions

u16 actor12Talk1Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 389 of file wstag375.c.

◆ actor13Talk0Conditions

u16 actor13Talk0Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }

Definition at line 390 of file wstag375.c.

◆ actor13Talk0Actions

u16 actor13Talk0Actions[] = { (( 0xA ) << 8 | ( 0 )) , 1, (0x9000 | ( 0x35 )) , 1, 0xFFFF }

Definition at line 391 of file wstag375.c.

◆ actor13Talk1Conditions

u16 actor13Talk1Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 392 of file wstag375.c.

◆ actor14Talk0Conditions

u16 actor14Talk0Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }

Definition at line 393 of file wstag375.c.

◆ actor14Talk0Actions

u16 actor14Talk0Actions[] = { (( 0xA ) << 8 | ( 0 )) , 1, (0x9000 | ( 0x35 )) , 1, 0xFFFF }

Definition at line 394 of file wstag375.c.

◆ actor14Talk1Conditions

u16 actor14Talk1Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 395 of file wstag375.c.

◆ actor15Talk0Conditions

u16 actor15Talk0Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }

Definition at line 396 of file wstag375.c.

◆ actor15Talk0Actions

u16 actor15Talk0Actions[] = { (( 0xA ) << 8 | ( 0 )) , 1, (0x9000 | ( 0x35 )) , 1, 0xFFFF }

Definition at line 397 of file wstag375.c.

◆ actor15Talk1Conditions

u16 actor15Talk1Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 398 of file wstag375.c.

◆ actor16Talk0Conditions

u16 actor16Talk0Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 0, 0xFFFF }

Definition at line 399 of file wstag375.c.

◆ actor16Talk0Actions

u16 actor16Talk0Actions[] = { (0x9000 | ( 0x35 )) , 1, (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 400 of file wstag375.c.

◆ actor16Talk1Conditions

u16 actor16Talk1Conditions[] = { (( 0xA ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 401 of file wstag375.c.

◆ actor17Talk0Conditions

u16 actor17Talk0Conditions[] = { (( 0x1C ) << 8 | ( 0xF )) , 0, 0xFFFF }

Definition at line 402 of file wstag375.c.

◆ actor17Talk1Conditions

u16 actor17Talk1Conditions[] = { (( 0x1C ) << 8 | ( 0xF )) , 1, (( 0 ) << 8 | ( 5 )) , 0, 0xFFFF }

Definition at line 403 of file wstag375.c.

◆ actor17Talk1Actions

u16 actor17Talk1Actions[] = { (( 0x1C ) << 8 | ( 0x10 )) , 1, (( 0 ) << 8 | ( 5 )) , 1, 0xFFFF }

Definition at line 404 of file wstag375.c.

◆ actor17Talk2Conditions

u16 actor17Talk2Conditions[] = { (( 0x1C ) << 8 | ( 0xF )) , 1, (( 0 ) << 8 | ( 5 )) , 1, 0xFFFF }

Definition at line 405 of file wstag375.c.

◆ actor18Talk0Conditions

u16 actor18Talk0Conditions[] = { (( 0x1A ) << 8 | ( 0x17 )) , 0, 0xFFFF }

Definition at line 406 of file wstag375.c.

◆ actor18Talk1Conditions

u16 actor18Talk1Conditions[]
Initial value:
= {
(( 0x1A ) << 8 | ( 0x17 )) , 1,
(( 0x1A ) << 8 | ( 0x18 )) , 0,
0xFFFF ,
}

Definition at line 407 of file wstag375.c.

◆ actor18Talk1Actions

u16 actor18Talk1Actions[] = { (( 0x1A ) << 8 | ( 0x18 )) , 1, 0xFFFF }

Definition at line 412 of file wstag375.c.

◆ actor18Talk2Conditions

u16 actor18Talk2Conditions[]
Initial value:
= {
(( 0x1A ) << 8 | ( 0x17 )) , 1,
(( 0x1A ) << 8 | ( 0x18 )) , 1,
0xFFFF ,
}

Definition at line 413 of file wstag375.c.

◆ actor21Talk0Conditions

u16 actor21Talk0Conditions[] = { (0x8000 | ( 0 ) << 9 | ( 0xE )), 0, (( 0x1A ) << 8 | ( 0x2B )) , 0, 0xFFFF }

Definition at line 418 of file wstag375.c.

◆ actor21Talk1Conditions

u16 actor21Talk1Conditions[]
Initial value:
= {
(0x8000 | ( 0 ) << 9 | ( 0xE )), 0,
(( 0x1A ) << 8 | ( 0x2B )) , 1,
(( 0x1C ) << 8 | ( 0x4F )) , 0,
0xFFFF ,
}

Definition at line 419 of file wstag375.c.

◆ actor21Talk1Actions

u16 actor21Talk1Actions[] = { (( 0x1C ) << 8 | ( 0x4F )) , 1, 0xFFFF }

Definition at line 425 of file wstag375.c.

◆ actor21Talk2Conditions

u16 actor21Talk2Conditions[]
Initial value:
= {
(0x8000 | ( 1 ) << 9 | ( 0x5A )), 0,
(0x8000 | ( 0 ) << 9 | ( 0xE )), 0,
(( 0x1A ) << 8 | ( 0x2B )) , 1,
(( 0x1C ) << 8 | ( 0x4F )) , 1,
0xFFFF ,
}

Definition at line 426 of file wstag375.c.

◆ actor21Talk3Conditions

u16 actor21Talk3Conditions[]
Initial value:
= {
(0x8000 | ( 0 ) << 9 | ( 0xE )), 0,
(( 0x1A ) << 8 | ( 0x2B )) , 1,
(0x8000 | ( 1 ) << 9 | ( 0x5A )), 1,
(( 0x1C ) << 8 | ( 0x4F )) , 1,
0xFFFF ,
}

Definition at line 433 of file wstag375.c.

◆ actor21Talk3Actions

u16 actor21Talk3Actions[] = { (0x7000 | ( 0x13 )) , 1, (0x8000 | ( 0 ) << 9 | ( 0xE )), 1, 0xFFFF }

Definition at line 440 of file wstag375.c.

◆ actor21Talk4Conditions

u16 actor21Talk4Conditions[] = { (0x8000 | ( 0 ) << 9 | ( 0xE )), 1, 0xFFFF }

Definition at line 441 of file wstag375.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0xED },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 442 of file wstag375.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0xEF },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 446 of file wstag375.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ actor2Talk1Conditions, ((void *)0) , 0x2A7 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor2Talk1Conditions[]
Definition wstag375.c:333
u16 actor2Talk0Actions[]
Definition wstag375.c:332
u16 actor2Talk0Conditions[]
Definition wstag375.c:331

Definition at line 450 of file wstag375.c.

◆ actor3Talks

FieldTalk actor3Talks[]
Initial value:
= {
{ actor3Talk1Conditions, ((void *)0) , 0x2A8 },
{ actor3Talk3Conditions, ((void *)0) , 0x2A9 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor3Talk3Conditions[]
Definition wstag375.c:344
u16 actor3Talk0Conditions[]
Definition wstag375.c:334
u16 actor3Talk2Conditions[]
Definition wstag375.c:337
u16 actor3Talk1Conditions[]
Definition wstag375.c:336
u16 actor3Talk2Actions[]
Definition wstag375.c:343
u16 actor3Talk0Actions[]
Definition wstag375.c:335

Definition at line 455 of file wstag375.c.

◆ actor4Talks

FieldTalk actor4Talks[]
Initial value:
= {
{ actor4Talk1Conditions, ((void *)0) , 0x2A7 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor4Talk1Conditions[]
Definition wstag375.c:352
u16 actor4Talk0Conditions[]
Definition wstag375.c:350
u16 actor4Talk0Actions[]
Definition wstag375.c:351

Definition at line 462 of file wstag375.c.

◆ actor5Talks

FieldTalk actor5Talks[]
Initial value:
= {
{ actor5Talk1Conditions, ((void *)0) , 0x2A8 },
{ actor5Talk3Conditions, ((void *)0) , 0x2A9 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor5Talk3Conditions[]
Definition wstag375.c:363
u16 actor5Talk2Actions[]
Definition wstag375.c:362
u16 actor5Talk0Conditions[]
Definition wstag375.c:353
u16 actor5Talk0Actions[]
Definition wstag375.c:354
u16 actor5Talk1Conditions[]
Definition wstag375.c:355
u16 actor5Talk2Conditions[]
Definition wstag375.c:356

Definition at line 467 of file wstag375.c.

◆ actor6Talks

FieldTalk actor6Talks[]
Initial value:
= {
{ actor6Talk1Conditions, ((void *)0) , 0x1B8 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor6Talk0Actions[]
Definition wstag375.c:370
u16 actor6Talk1Conditions[]
Definition wstag375.c:371
u16 actor6Talk0Conditions[]
Definition wstag375.c:369

Definition at line 474 of file wstag375.c.

◆ actor7Talks

FieldTalk actor7Talks[]
Initial value:
= {
{ actor7Talk1Conditions, ((void *)0) , 0x1B0 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor7Talk1Conditions[]
Definition wstag375.c:374
u16 actor7Talk0Conditions[]
Definition wstag375.c:372
u16 actor7Talk0Actions[]
Definition wstag375.c:373

Definition at line 479 of file wstag375.c.

◆ actor8Talks

FieldTalk actor8Talks[]
Initial value:
= {
{ actor8Talk1Conditions, ((void *)0) , 0x1B1 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor8Talk1Conditions[]
Definition wstag375.c:377
u16 actor8Talk0Actions[]
Definition wstag375.c:376
u16 actor8Talk0Conditions[]
Definition wstag375.c:375

Definition at line 484 of file wstag375.c.

◆ actor9Talks

FieldTalk actor9Talks[]
Initial value:
= {
{ actor9Talk1Conditions, ((void *)0) , 0x1B2 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor9Talk0Conditions[]
Definition wstag375.c:378
u16 actor9Talk1Conditions[]
Definition wstag375.c:380
u16 actor9Talk0Actions[]
Definition wstag375.c:379

Definition at line 489 of file wstag375.c.

◆ actor10Talks

FieldTalk actor10Talks[]
Initial value:
= {
{ actor10Talk1Conditions, ((void *)0) , 0x1B3 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor10Talk1Conditions[]
Definition wstag375.c:383
u16 actor10Talk0Conditions[]
Definition wstag375.c:381
u16 actor10Talk0Actions[]
Definition wstag375.c:382

Definition at line 494 of file wstag375.c.

◆ actor11Talks

FieldTalk actor11Talks[]
Initial value:
= {
{ actor11Talk1Conditions, ((void *)0) , 0x1B4 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor11Talk1Conditions[]
Definition wstag375.c:386
u16 actor11Talk0Conditions[]
Definition wstag375.c:384
u16 actor11Talk0Actions[]
Definition wstag375.c:385

Definition at line 499 of file wstag375.c.

◆ actor12Talks

FieldTalk actor12Talks[]
Initial value:
= {
{ actor12Talk1Conditions, ((void *)0) , 0x1B5 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor12Talk0Actions[]
Definition wstag375.c:388
u16 actor12Talk0Conditions[]
Definition wstag375.c:387
u16 actor12Talk1Conditions[]
Definition wstag375.c:389

Definition at line 504 of file wstag375.c.

◆ actor13Talks

FieldTalk actor13Talks[]
Initial value:
= {
{ actor13Talk1Conditions, ((void *)0) , 0x1B6 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor13Talk0Conditions[]
Definition wstag375.c:390
u16 actor13Talk0Actions[]
Definition wstag375.c:391
u16 actor13Talk1Conditions[]
Definition wstag375.c:392

Definition at line 509 of file wstag375.c.

◆ actor14Talks

FieldTalk actor14Talks[]
Initial value:
= {
{ actor14Talk1Conditions, ((void *)0) , 0x1B7 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor14Talk1Conditions[]
Definition wstag375.c:395
u16 actor14Talk0Actions[]
Definition wstag375.c:394
u16 actor14Talk0Conditions[]
Definition wstag375.c:393

Definition at line 514 of file wstag375.c.

◆ actor15Talks

FieldTalk actor15Talks[]
Initial value:
= {
{ actor15Talk1Conditions, ((void *)0) , 0x1AF },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor15Talk1Conditions[]
Definition wstag375.c:398
u16 actor15Talk0Conditions[]
Definition wstag375.c:396
u16 actor15Talk0Actions[]
Definition wstag375.c:397

Definition at line 519 of file wstag375.c.

◆ actor16Talks

FieldTalk actor16Talks[]
Initial value:
= {
{ actor16Talk1Conditions, ((void *)0) , 0x2E8 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor16Talk0Actions[]
Definition wstag375.c:400
u16 actor16Talk1Conditions[]
Definition wstag375.c:401
u16 actor16Talk0Conditions[]
Definition wstag375.c:399

Definition at line 524 of file wstag375.c.

◆ actor17Talks

FieldTalk actor17Talks[]
Initial value:
= {
{ actor17Talk0Conditions, ((void *)0) , 0xEC },
{ actor17Talk2Conditions, ((void *)0) , 0x2DB },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor17Talk2Conditions[]
Definition wstag375.c:405
u16 actor17Talk1Conditions[]
Definition wstag375.c:403
u16 actor17Talk0Conditions[]
Definition wstag375.c:402
u16 actor17Talk1Actions[]
Definition wstag375.c:404

Definition at line 529 of file wstag375.c.

◆ actor18Talks

FieldTalk actor18Talks[]
Initial value:
= {
{ actor18Talk0Conditions, ((void *)0) , 0x2AA },
{ actor18Talk2Conditions, ((void *)0) , 0x2AC },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor18Talk1Actions[]
Definition wstag375.c:412
u16 actor18Talk1Conditions[]
Definition wstag375.c:407
u16 actor18Talk2Conditions[]
Definition wstag375.c:413
u16 actor18Talk0Conditions[]
Definition wstag375.c:406

Definition at line 535 of file wstag375.c.

◆ actor19Talks

FieldTalk actor19Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x2AC },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 541 of file wstag375.c.

◆ actor20Talks

FieldTalk actor20Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x2AD },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 545 of file wstag375.c.

◆ actor21Talks

FieldTalk actor21Talks[]
Initial value:
= {
{ actor21Talk0Conditions, ((void *)0) , 0x2AE },
{ actor21Talk2Conditions, ((void *)0) , 4 },
{ actor21Talk4Conditions, ((void *)0) , 0x2B1 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor21Talk0Conditions[]
Definition wstag375.c:418
u16 actor21Talk2Conditions[]
Definition wstag375.c:426
u16 actor21Talk3Conditions[]
Definition wstag375.c:433
u16 actor21Talk4Conditions[]
Definition wstag375.c:441
u16 actor21Talk3Actions[]
Definition wstag375.c:440
u16 actor21Talk1Conditions[]
Definition wstag375.c:419
u16 actor21Talk1Actions[]
Definition wstag375.c:425

Definition at line 549 of file wstag375.c.

◆ actor22Talks

FieldTalk actor22Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0xEE },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 557 of file wstag375.c.

◆ actor23Talks

FieldTalk actor23Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x2A6 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 561 of file wstag375.c.

◆ actor0Conditions

u16 actor0Conditions[] = { (( 0x1C ) << 8 | ( 0x11 )) , 0, (0x6000 | ( STORY_GENJI_BEATEN )) , 1, 0xFFFF }

Definition at line 565 of file wstag375.c.

◆ actor1Conditions

u16 actor1Conditions[] = { (( 0x1C ) << 8 | ( 0x11 )) , 0, (0x6000 | ( STORY_GENJI_BEATEN )) , 1, 0xFFFF }

Definition at line 566 of file wstag375.c.

◆ actor2Conditions

u16 actor2Conditions[]
Initial value:
= {
(0x7000 | ( 0x3B )) , 1,
(0x8000 | ( 0 ) << 9 | ( 0x23 )), 1,
0xFFFF ,
}

Definition at line 567 of file wstag375.c.

◆ actor3Conditions

u16 actor3Conditions[] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x23 )), 0, 0xFFFF }

Definition at line 572 of file wstag375.c.

◆ actor4Conditions

u16 actor4Conditions[] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x23 )), 1, 0xFFFF }

Definition at line 573 of file wstag375.c.

◆ actor5Conditions

u16 actor5Conditions[]
Initial value:
= {
(0x8000 | ( 0 ) << 9 | ( 0x23 )), 0,
(0x7000 | ( 0x3B )) , 1,
0xFFFF ,
}

Definition at line 574 of file wstag375.c.

◆ actor6Conditions

u16 actor6Conditions[] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }

Definition at line 579 of file wstag375.c.

◆ actor7Conditions

u16 actor7Conditions[] = { (0x6000 | ( STORY_LOOKING_FOR_TEDDY )) , 1, 0xFFFF }

Definition at line 580 of file wstag375.c.

◆ actor8Conditions

u16 actor8Conditions[] = { (0x6000 | ( STORY_TEDDY_FOUND )) , 1, 0xFFFF }

Definition at line 581 of file wstag375.c.

◆ actor9Conditions

u16 actor9Conditions[] = { (0x7000 | ( 0x16 )) , 1, 0xFFFF }

Definition at line 582 of file wstag375.c.

◆ actor10Conditions

u16 actor10Conditions[] = { (0x7000 | ( 0x17 )) , 1, 0xFFFF }

Definition at line 583 of file wstag375.c.

◆ actor11Conditions

u16 actor11Conditions[] = { (0x7000 | ( 0x18 )) , 1, 0xFFFF }

Definition at line 584 of file wstag375.c.

◆ actor12Conditions

u16 actor12Conditions[] = { (0x7000 | ( 0x19 )) , 1, 0xFFFF }

Definition at line 585 of file wstag375.c.

◆ actor13Conditions

u16 actor13Conditions[] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }

Definition at line 586 of file wstag375.c.

◆ actor14Conditions

u16 actor14Conditions[] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }

Definition at line 587 of file wstag375.c.

◆ actor15Conditions

u16 actor15Conditions[] = { (0x7000 | ( 0x15 )) , 1, 0xFFFF }

Definition at line 588 of file wstag375.c.

◆ actor16Conditions

u16 actor16Conditions[] = { (0x6000 | ( STORY_GENJI_BEATEN )) , 1, 0xFFFF }

Definition at line 589 of file wstag375.c.

◆ actor17Conditions

u16 actor17Conditions[] = { (( 0x1C ) << 8 | ( 0x11 )) , 0, (0x6000 | ( STORY_GENJI_BEATEN )) , 1, 0xFFFF }

Definition at line 590 of file wstag375.c.

◆ actor18Conditions

u16 actor18Conditions[] = { (0x6000 | ( STORY_SEPIKMON_MASK_LOST )) , 1, 0xFFFF }

Definition at line 591 of file wstag375.c.

◆ actor19Conditions

u16 actor19Conditions[] = { (0x6000 | ( STORY_AGUMON_SUITS )) , 1, 0xFFFF }

Definition at line 592 of file wstag375.c.

◆ actor20Conditions

u16 actor20Conditions[] = { (0x7000 | ( 0x3C )) , 1, 0xFFFF }

Definition at line 593 of file wstag375.c.

◆ actor21Conditions

u16 actor21Conditions[] = { (0x6000 | ( STORY_TEDDY_FOUND )) , 1, 0xFFFF }

Definition at line 594 of file wstag375.c.

◆ actor22Conditions

u16 actor22Conditions[] = { (( 0x1C ) << 8 | ( 0x11 )) , 0, (0x6000 | ( STORY_GENJI_BEATEN )) , 1, 0xFFFF }

Definition at line 595 of file wstag375.c.

◆ actor23Conditions

u16 actor23Conditions[] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }

Definition at line 596 of file wstag375.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x22, 4, 505, 213, 7 }

Definition at line 597 of file wstag375.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x23, 5, 480, 225, 7 }

Definition at line 598 of file wstag375.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x2B, 6, 304, 328, 1 }

Definition at line 599 of file wstag375.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x2B, 6, 304, 328, 1 }

Definition at line 600 of file wstag375.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x2B, 6, 304, 328, 1 }

Definition at line 601 of file wstag375.c.

◆ actor5

FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x2B, 6, 304, 328, 1 }

Definition at line 602 of file wstag375.c.

◆ actor6

FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x3B, 7, 1073, 145, 1 }

Definition at line 603 of file wstag375.c.

◆ actor7

FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x3B, 7, 1073, 145, 1 }

Definition at line 604 of file wstag375.c.

◆ actor8

FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x3B, 7, 1073, 145, 1 }

Definition at line 605 of file wstag375.c.

◆ actor9

FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x3B, 7, 1073, 145, 1 }

Definition at line 606 of file wstag375.c.

◆ actor10

FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x3B, 7, 1073, 145, 1 }

Definition at line 607 of file wstag375.c.

◆ actor11

FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x3B, 7, 1073, 145, 1 }

Definition at line 608 of file wstag375.c.

◆ actor12

FieldActorEntry actor12 = { actor12Conditions, actor12Talks, 0x3B, 7, 1073, 145, 1 }

Definition at line 609 of file wstag375.c.

◆ actor13

FieldActorEntry actor13 = { actor13Conditions, actor13Talks, 0x3B, 7, 1073, 145, 1 }

Definition at line 610 of file wstag375.c.

◆ actor14

FieldActorEntry actor14 = { actor14Conditions, actor14Talks, 0x3B, 7, 1073, 145, 1 }

Definition at line 611 of file wstag375.c.

◆ actor15

FieldActorEntry actor15 = { actor15Conditions, actor15Talks, 0x3B, 7, 1073, 145, 1 }

Definition at line 612 of file wstag375.c.

◆ actor16

FieldActorEntry actor16 = { actor16Conditions, actor16Talks, 0x3B, 7, 1073, 145, 1 }

Definition at line 613 of file wstag375.c.

◆ actor17

FieldActorEntry actor17 = { actor17Conditions, actor17Talks, 0x3C, 8, 560, 240, 3 }

Definition at line 614 of file wstag375.c.

◆ actor18

FieldActorEntry actor18 = { actor18Conditions, actor18Talks, 0x3D, 9, 97, 242, 7 }

Definition at line 615 of file wstag375.c.

◆ actor19

FieldActorEntry actor19 = { actor19Conditions, actor19Talks, 0x3D, 9, 97, 242, 7 }

Definition at line 616 of file wstag375.c.

◆ actor20

FieldActorEntry actor20 = { actor20Conditions, actor20Talks, 0x3D, 9, 97, 242, 7 }

Definition at line 617 of file wstag375.c.

◆ actor21

FieldActorEntry actor21 = { actor21Conditions, actor21Talks, 0x3D, 9, 97, 242, 7 }

Definition at line 618 of file wstag375.c.

◆ actor22

FieldActorEntry actor22 = { actor22Conditions, actor22Talks, 0x40, 0xA, 529, 201, 7 }

Definition at line 619 of file wstag375.c.

◆ actor23

FieldActorEntry actor23 = { actor23Conditions, actor23Talks, 0x9D, 0xB, 304, 328, 1 }

Definition at line 620 of file wstag375.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag375.c:597
FieldActorEntry actor6
Definition wstag375.c:603
FieldActorEntry actor17
Definition wstag375.c:614
FieldActorEntry actor18
Definition wstag375.c:615
FieldActorEntry actor5
Definition wstag375.c:602
FieldActorEntry actor2
Definition wstag375.c:599
FieldActorEntry actor23
Definition wstag375.c:620
FieldActorEntry actor19
Definition wstag375.c:616
FieldActorEntry actor22
Definition wstag375.c:619
FieldActorEntry actor10
Definition wstag375.c:607
FieldActorEntry actor4
Definition wstag375.c:601
FieldActorEntry actor8
Definition wstag375.c:605
FieldActorEntry actor9
Definition wstag375.c:606
FieldActorEntry actor20
Definition wstag375.c:617
FieldActorEntry actor15
Definition wstag375.c:612
FieldActorEntry actor12
Definition wstag375.c:609
FieldActorEntry actor16
Definition wstag375.c:613
FieldActorEntry actor7
Definition wstag375.c:604
FieldActorEntry actor13
Definition wstag375.c:610
FieldActorEntry actor11
Definition wstag375.c:608
FieldActorEntry actor1
Definition wstag375.c:598
FieldActorEntry actor21
Definition wstag375.c:618
FieldActorEntry actor3
Definition wstag375.c:600
FieldActorEntry actor14
Definition wstag375.c:611

Definition at line 621 of file wstag375.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
}

The tables and color setupStage gives FIELDSTG_state (FieldState)

Definition at line 648 of file wstag375.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x225, 0x510, 0x88, 1, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 5 , 8, 0, 0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 5 , 4, 0, 0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 6 , 1, 0, 0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 6 , 0, 0, 0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 4 , 6, 0, 0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 4 , 5, 0, 0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 9, 0x7E, 0x1AF, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 9, 0x6D, 0x117, 0, 0, 0, 0 },
{ { { (( 0 ) << 8 | ( 0xF )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2328, 0, 0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 651 of file wstag375.c.

Referenced by setupStage().

◆ stageFuncs

void(* stageFuncs[])(void) ( void  )
Initial value:
= {
}
void setupStage(void)
Sets the stage up: its map, actors, battles and events, playing PYRA_BGM; battle list 0 before STORY_...
Definition wstag375.c:106

The stage's functions (common/start_stage.inc.c calls the first): a StageFuncs in the stages with a tween, which define STAGE_TWEEN before they include this file, and in the others an array of just setupStage.

Definition at line 664 of file wstag375.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 1260, script1260, ( ( 0x128 - 1) << 16 | ( 0x1B )), ((void *)0) , endEvent1260 },
{ 1261, script1261, ( ( 0x128 - 1) << 16 | ( 0x1C )), ((void *)0) , endEvent1261 },
{ 9000, ((void *)0) , 0, FIELDSTG_startEventBattle5, ((void *)0) },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
void * FIELDSTG_startEventBattle5(void)
Starts battle 5 of the fourth area: the end of the stages' events 9000.
Definition field.c:1010
void endEvent1261(void)
After event 1261, with Pharaohmon: gives the player the Old Wand and keeps it from playing again.
Definition wstag375.c:82
void endEvent1260(void)
After event 1260, with Pharaohmon: lets event 1261 start and starts the stage's event battle 0.
Definition wstag375.c:73
s16 script1261[]
Definition wstag375.c:165
s16 script1260[]
Definition wstag375.c:133

Definition at line 667 of file wstag375.c.

Referenced by setupStage().