Skip to Content
The Alchemy Project

src/scene/shared/colosso_solo.c

Where Isaac's friends cheer from, shared by the three Colosso finals matches (Colosseum Final 1, 2 and 3). More…

Included by colosseum_azart_match.c, colosseum_navampa_match.c and colosseum_satrage_match.c.

Macros

NameDescription
#defineCOLOSSO_CHEER_COLUMN FLAG_AREA_TEMP(0x70)Byte flags (eight flags each) holding where a friend cheers from: the metatile column at COLOSSO_CHEER_COLUMN + 16 * character and the metatile row at COLOSSO_CHEER_ROW + 16 * character, for Garet, Ivan and Mia.
#defineCOLOSSO_CHEER_ROW FLAG_AREA_TEMP(0x78)
#defineCOLOSSO_CHEER_SLOT (character) ((character) << 4)
#defineCOLOSSO_STAGE_CHEERED FLAG_SCENE_TEMP(0x00)Scene flags, by stage number: a friend cheers at the stage, and its description was heard.
#defineCOLOSSO_STAGE_DESCRIBED FLAG_SCENE_TEMP(0x08)
#defineCOLOSSO_TAKE_PLACE_CUE 99The cue each match scene raises for scColossoTakePlaceForMatch.

Enumerations

NameDescription
enumanonymous enum { COLOSSO_MENU_DESCRIPTIONS, COLOSSO_MENU_CHEER, COLOSSO_MENU_ … }The rows of the guide's choice (mnColossoMenuChoose), and what it returns when B cancels it.

Functions

NameDescription
voidscColossoPlaceFriendsAtCheeringSpots (void)Puts Garet, Ivan and Mia back at the metatiles where they chose to cheer, at the centre of each metatile.
voidscColossoControlCharacterAlone (Sint32 character)Makes the character the only party member, the one the player moves and the camera follows, with full HP and PP and no poison.
voidscColossoRaiseTakePlaceOnPsynergy (void)An event while a friend has the stages alone in Lend a Hand: once they use Psynergy on something it works on (FLAG_PSYNERGY_TARGET), raises COLOSSO_TAKE_PLACE_CUE, and their turn ends there.
static voidscColossoTakePlaceForMatch (void)COLOSSO_TAKE_PLACE_CUE: the nearest fair-haired young man level with or south of the friend calls the warriors to their places, and the friend's metatile becomes their place to cheer from.
voidscColossoAskDoneCheering (Sint32 guideId)A stage's guide, talking to a friend who looks around alone, asks whether they are done cheering.
static voidscColossoAskDoneLookingAround (Sint32 actorId)The guide where the stages start.
voidscColossoClearCheeringSpots (void)Forgets where Garet, Ivan and Mia cheer from.
Sint32scColossoGreetAtStage (Sint32 speaker, Sint32 stage)A stage's guide names the stage and decides what to do next.
voidscColossoRepeatStageNumber (Sint32 speaker, Sint32 stage)A stage's guide, after describing the stage, names it again: the copy of that line after it in the text.
voidscColossoOfferCheeringSpot (Sint32 reply, Sint32 guide, Sint32 stage)The guide at a stage, with the reply scColossoGreetAtStage returned, offers a friend's cheering there.

Description

Where Isaac's friends cheer from, shared by the three Colosso finals matches (Colosseum Final 1, 2 and 3). On the tour each stage's guide names the stage, describes it if asked and offers a friend's cheering there; the friend Isaac picks walks to the stage and leaves the party. Then, in Lend a Hand, Garet, Ivan and Mia in turn are the party alone, starting where they chose to cheer, until they use Psynergy on the stages or tell a stage's guide they are done; where they stand then is kept as their place for the race.

Its two exits are numbered alike in the three match scenes (COLOSSO_SOLO_EXIT in scene/colosso_solo.h): COLOSSO_SOLO_TO_RACE, its way from lending a hand to the race, and COLOSSO_SOLO_TO_COLOSSEUM, its way back out to the Colosseum.

Macros in detail

COLOSSO_CHEER_COLUMN

#define COLOSSO_CHEER_COLUMN FLAG_AREA_TEMP(0x70)

Byte flags (eight flags each) holding where a friend cheers from: the metatile column at COLOSSO_CHEER_COLUMN + 16 * character and the metatile row at COLOSSO_CHEER_ROW + 16 * character, for Garet, Ivan and Mia.

Referenced by scColossoAskDoneCheering(), scColossoClearCheeringSpots(), scColossoOfferCheeringSpot(), scColossoPlaceFriendsAtCheeringSpots() and scColossoTakePlaceForMatch().

Definition at line 17 of file colosso_solo.c.

COLOSSO_CHEER_ROW

#define COLOSSO_CHEER_ROW FLAG_AREA_TEMP(0x78)

Referenced by scColossoAskDoneCheering(), scColossoClearCheeringSpots(), scColossoOfferCheeringSpot(), scColossoPlaceFriendsAtCheeringSpots() and scColossoTakePlaceForMatch().

Definition at line 18 of file colosso_solo.c.

COLOSSO_CHEER_SLOT

#define COLOSSO_CHEER_SLOT(character) ((character) << 4)

Referenced by scColossoAskDoneCheering(), scColossoClearCheeringSpots(), scColossoOfferCheeringSpot(), scColossoPlaceFriendsAtCheeringSpots() and scColossoTakePlaceForMatch().

Definition at line 19 of file colosso_solo.c.

COLOSSO_STAGE_CHEERED

#define COLOSSO_STAGE_CHEERED FLAG_SCENE_TEMP(0x00)

Scene flags, by stage number: a friend cheers at the stage, and its description was heard. When a friend cheers there, the guide says "Unfortunately, we have a full house."

Referenced by scColossoGreetAtStage() and scColossoOfferCheeringSpot().

Definition at line 24 of file colosso_solo.c.

COLOSSO_STAGE_DESCRIBED

#define COLOSSO_STAGE_DESCRIBED FLAG_SCENE_TEMP(0x08)

Referenced by scColossoGreetAtStage().

Definition at line 25 of file colosso_solo.c.

COLOSSO_TAKE_PLACE_CUE

#define COLOSSO_TAKE_PLACE_CUE 99

The cue each match scene raises for scColossoTakePlaceForMatch.

Referenced by ColosseumAzartMatchCues, ColosseumNavampaMatchCues, ColosseumSatrageMatchCues and scColossoRaiseTakePlaceOnPsynergy().

Definition at line 93 of file colosso_solo.c.

Enumerations in detail

anonymous enum

enum { COLOSSO_MENU_DESCRIPTIONS, COLOSSO_MENU_CHEER, COLOSSO_MENU_NOTHING, COLOSSO_MENU_CANCELLED }

The rows of the guide's choice (mnColossoMenuChoose), and what it returns when B cancels it.

EnumeratorValueDescription
COLOSSO_MENU_DESCRIPTIONS
COLOSSO_MENU_CHEER
COLOSSO_MENU_NOTHING
COLOSSO_MENU_CANCELLED-1

Definition at line 29 of file colosso_solo.c.

Functions in detail

scColossoPlaceFriendsAtCheeringSpots

void scColossoPlaceFriendsAtCheeringSpots(void)

Puts Garet, Ivan and Mia back at the metatiles where they chose to cheer, at the centre of each metatile.

References fdActorSetPosFX(), scFieldGameFlagGetByte() and Sint32.

Referenced by scInit().

Definition at line 39 of file colosso_solo.c.

scColossoControlCharacterAlone

void scColossoControlCharacterAlone(Sint32 character)

Makes the character the only party member, the one the player moves and the camera follows, with full HP and PP and no poison.

References fdCameraFollowActor(), fdPartyClearUnusableShortcuts(), gmPartyAddMember(), gmPartyRemoveMember(), gmUnitGet(), MainRoutineStateWork and Sint32.

Referenced by scColosseumNavampaMatchUnusedAskToControlCharacter(), scColossoAskDoneCheering(), scColossoTakePlaceForMatch() and scInit().

Definition at line 72 of file colosso_solo.c.

scColossoRaiseTakePlaceOnPsynergy

void scColossoRaiseTakePlaceOnPsynergy(void)

An event while a friend has the stages alone in Lend a Hand: once they use Psynergy on something it works on (FLAG_PSYNERGY_TARGET), raises COLOSSO_TAKE_PLACE_CUE, and their turn ends there.

References gmFlagGet(), MainRoutineStateWork, Sint32 and state.

Referenced by scInit().

Definition at line 98 of file colosso_solo.c.

scColossoTakePlaceForMatch

static void scColossoTakePlaceForMatch(void)

COLOSSO_TAKE_PLACE_CUE: the nearest fair-haired young man level with or south of the friend calls the warriors to their places, and the friend's metatile becomes their place to cheer from. "The match is about to begin. Please take your places." The next friend then looks around, or, after Mia, the party leaves for the race.

References fdActorGetById(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagSet(), MainRoutineStateWork, scColossoControlCharacterAlone(), scFieldGameFlagSetByte(), Sint32, state and syImportScriptSetExitRequest().

Referenced by ColosseumAzartMatchCues, ColosseumNavampaMatchCues and ColosseumSatrageMatchCues.

Definition at line 113 of file colosso_solo.c.

scColossoAskDoneCheering

void scColossoAskDoneCheering(Sint32 guideId)

A stage's guide, talking to a friend who looks around alone, asks whether they are done cheering.

References fdActorGetById(), fdMessageShowAtActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), gmFlagSet(), MainRoutineStateWork, scColossoControlCharacterAlone(), scFieldGameFlagSetByte(), Sint32, state and syImportScriptSetExitRequest().

Referenced by scColosseumAzartMatchTalkToBridgeAttendant(), scColosseumAzartMatchTalkToLumberAttendant(), scColosseumAzartMatchTalkToPipeworksAttendant(), scColosseumAzartMatchTalkToRockAttendant(), scColosseumNavampaMatchTalkToFreeClimbAttendant(), scColosseumNavampaMatchTalkToLogRollingAttendant(), scColosseumNavampaMatchTalkToMovingSidewalkAttendant(), scColosseumNavampaMatchTalkToScalesAttendant(), scColosseumNavampaMatchTalkToSteppingStoneAttendant(), scColosseumNavampaMatchTalkToWallWedgeAttendant(), scColosseumSatrageMatchTalkToBoardWalkAttendant(), scColosseumSatrageMatchTalkToLogRollingAttendant(), scColosseumSatrageMatchTalkToMiniMazeAttendant(), scColosseumSatrageMatchTalkToShiftingFloorAttendant() and scColosseumSatrageMatchTalkToWallAttendant().

Definition at line 196 of file colosso_solo.c.

scColossoAskDoneLookingAround

static void scColossoAskDoneLookingAround(Sint32 actorId)

The guide where the stages start. While Isaac looks around alone he asks whether Isaac has seen enough and, on yes, walks him back out to the Colosseum; while friends are still with Isaac, he tells him to choose where they cheer from first.

References fdActorGetById(), fdActorWalkToAndWaitById(), fdActorWalkToById(), fdScriptAskYesNoAndShowResponse(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmPartyCountMembers(), Sint32 and syImportScriptSetExitRequest().

Referenced by ColosseumAzartMatchCues, ColosseumNavampaMatchCues and ColosseumSatrageMatchCues.

Definition at line 260 of file colosso_solo.c.

scColossoClearCheeringSpots

void scColossoClearCheeringSpots(void)

Forgets where Garet, Ivan and Mia cheer from.

References scFieldGameFlagSetByte().

Referenced by scInit().

Definition at line 301 of file colosso_solo.c.

scColossoGreetAtStage

Sint32 scColossoGreetAtStage(Sint32 speaker, Sint32 stage)

A stage's guide names the stage and decides what to do next. "This is stage N of the first finals match." (in Colosseum Final 1; the second in Final 2 and the third in Final 3). Returns what the guide does next, an enum COLOSSO_GUIDE_REPLY; the yes or no answer to the description's question is COLOSSO_GUIDE_DESCRIBE or COLOSSO_GUIDE_OFFER_CHEERING.

References fdEndBusyAndReveal(), fdMessageShowAtActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), gmFlagGet(), gmFlagSet(), MainRoutineStateWork, mnColossoMenuChoose(), mnMessageArgumentPush() and Sint32.

Referenced by scColosseumAzartMatchTalkToBridgeAttendant(), scColosseumAzartMatchTalkToLumberAttendant(), scColosseumAzartMatchTalkToPipeworksAttendant(), scColosseumAzartMatchTalkToRockAttendant(), scColosseumNavampaMatchTalkToFreeClimbAttendant(), scColosseumNavampaMatchTalkToLogRollingAttendant(), scColosseumNavampaMatchTalkToMovingSidewalkAttendant(), scColosseumNavampaMatchTalkToScalesAttendant(), scColosseumNavampaMatchTalkToSteppingStoneAttendant(), scColosseumNavampaMatchTalkToWallWedgeAttendant(), scColosseumSatrageMatchTalkToBoardWalkAttendant(), scColosseumSatrageMatchTalkToLogRollingAttendant(), scColosseumSatrageMatchTalkToMiniMazeAttendant(), scColosseumSatrageMatchTalkToShiftingFloorAttendant() and scColosseumSatrageMatchTalkToWallAttendant().

Definition at line 316 of file colosso_solo.c.

scColossoRepeatStageNumber

void scColossoRepeatStageNumber(Sint32 speaker, Sint32 stage)

A stage's guide, after describing the stage, names it again: the copy of that line after it in the text.

References fdScriptSetMessageId(), fdScriptShowMessageAndWait(), MainRoutineStateWork, mnMessageArgumentPush() and Sint32.

Referenced by scColosseumAzartMatchTalkToBridgeAttendant(), scColosseumAzartMatchTalkToLumberAttendant(), scColosseumAzartMatchTalkToPipeworksAttendant(), scColosseumAzartMatchTalkToRockAttendant(), scColosseumNavampaMatchTalkToFreeClimbAttendant(), scColosseumNavampaMatchTalkToLogRollingAttendant(), scColosseumNavampaMatchTalkToMovingSidewalkAttendant(), scColosseumNavampaMatchTalkToScalesAttendant(), scColosseumNavampaMatchTalkToSteppingStoneAttendant(), scColosseumNavampaMatchTalkToWallWedgeAttendant(), scColosseumSatrageMatchTalkToBoardWalkAttendant(), scColosseumSatrageMatchTalkToLogRollingAttendant(), scColosseumSatrageMatchTalkToMiniMazeAttendant(), scColosseumSatrageMatchTalkToShiftingFloorAttendant() and scColosseumSatrageMatchTalkToWallAttendant().

Definition at line 366 of file colosso_solo.c.

scColossoOfferCheeringSpot

void scColossoOfferCheeringSpot(Sint32 reply, Sint32 guide, Sint32 stage)

The guide at a stage, with the reply scColossoGreetAtStage returned, offers a friend's cheering there. The friend chosen and the leader nod to each other, the guide steps aside and the friend walks past him to the stage, theirs to cheer from.

References fdActorFaceDirection(), fdActorGetById(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetPosFX(), fdActorTurnToFaceEachOther(), fdActorWalkToAndWait(), fdActorWalkToAndWaitById(), fdActorWalkToById(), fdActorWatchAndSetScript(), fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), gmFlagGet(), gmFlagSet(), gmPartyAddMember(), gmPartyCountMembers(), gmPartyRemoveMember(), MainRoutineStateWork, mnMessageArgumentPush(), mnPartyMemberChooserOpen(), scFieldGameFlagSetByte(), Sint32 and sySynch().

Referenced by scColosseumAzartMatchTalkToBridgeAttendant(), scColosseumAzartMatchTalkToLumberAttendant(), scColosseumAzartMatchTalkToPipeworksAttendant(), scColosseumAzartMatchTalkToRockAttendant(), scColosseumNavampaMatchTalkToFreeClimbAttendant(), scColosseumNavampaMatchTalkToLogRollingAttendant(), scColosseumNavampaMatchTalkToMovingSidewalkAttendant(), scColosseumNavampaMatchTalkToScalesAttendant(), scColosseumNavampaMatchTalkToSteppingStoneAttendant(), scColosseumNavampaMatchTalkToWallWedgeAttendant(), scColosseumSatrageMatchTalkToBoardWalkAttendant(), scColosseumSatrageMatchTalkToLogRollingAttendant(), scColosseumSatrageMatchTalkToMiniMazeAttendant(), scColosseumSatrageMatchTalkToShiftingFloorAttendant() and scColosseumSatrageMatchTalkToWallAttendant().

Definition at line 393 of file colosso_solo.c.