Alchemy
Loading...
Searching...
No Matches

EventWork Struct Reference

The running scene's event work: its placement and event tables, its actors, the triggers and exit it has hit, encounters, transitions and the message on show. More...

#include <field/event_work.h>

Data Fields

struct ScenePlacement * tables [4]
 the placement tables placed so far
struct SceneEvent * events
 the scene's event table
struct FieldActor * actors [8]
 the party's characters, ids 0 to 7
struct FieldActor * placedActors [58]
 the placed actors, from id 8
u8 unk11c [0x50]
 FieldWork's markers; not named by TBS code.
s16 touchedTrigger
 the step event a touch or exit event answers
u8 unk16e [2]
 FieldWork's input request; not named by TBS code.
u16 requestedExit
 the exit kind taken, which ends the scene
u16 unk172
 FieldWork's menu request; scenes set it to 1.
u8 unk174 [6]
 FieldWork's examine, start and descriptor.
s16 facingTrigger
 the collision code ahead, which a search answers
u16 encounterEnemyGroup
 the next battle's enemy group, 0 for none
s16 psynergyRequest
 a field Psynergy to use, as owner << 10 | Psynergy
u8 unk180 [2]
 FieldWork's item request; not named by TBS code.
s16 raisedTrigger
 a raised event for Scene_RunRaisedEvent
u8 unk184 [0x18]
 FieldWork's fallen characters and item slot.
s16 blockedSteps
 frames the leader has pushed against something
s16 mode
 MODE_WORLD_MAP (3) on the world map.
u8 encounterGroups [8]
 encounter zone for each kind of ground
s32 encounterBias
 randomized distance adjustment between battles
s32 encounterThreshold
 encounter steps before a battle
u8 unk1b0 [0x10]
 FieldWork's walking distance and tiles.
s32 startTransition
 SCENE_TRANSITION(style, variant).
u8 unk1c4 [4]
 FieldWork's unk1c4 and transitionActive.
s32 transitionFrames
 frames
u8 unk1cc [0x0c]
 FieldWork's fastForward and unk1d0.
u16 message
 the next message, advanced as each window opens
u8 unk1da [6]
 FieldWork's unk1da to unk1de.
struct FieldActor * viewCenter
 the object the map view follows
u8 unk1e4 [0xade]
 not named by TBS code through this view
u16 choiceMessage
 Message containing the choices.
u16 unkcc4
 FieldWork's nameWidth; Colosso sets it to 4.

Detailed Description

The running scene's event work: its placement and event tables, its actors, the triggers and exit it has hit, encounters, transitions and the message on show.

It is struct FieldWork (heap slot 27) as the scenes see it, through gEventWork; each field is the FieldWork field at its offset.

Definition at line 20 of file event_work.h.

Field Documentation

◆ tables

struct ScenePlacement* EventWork::tables[4]

the placement tables placed so far

Definition at line 21 of file event_work.h.

◆ events

struct SceneEvent* EventWork::events

the scene's event table

Definition at line 22 of file event_work.h.

◆ actors

struct FieldActor* EventWork::actors[8]

the party's characters, ids 0 to 7

Definition at line 23 of file event_work.h.

Referenced by MercuryLighthouse_SpawnSparkPair().

◆ placedActors

struct FieldActor* EventWork::placedActors[58]

the placed actors, from id 8

Definition at line 24 of file event_work.h.

Referenced by SceneActor_FindActorAtCell(), and VenusLighthouse_RestoreScriptedChildValues().

◆ unk11c

u8 EventWork::unk11c[0x50]

FieldWork's markers; not named by TBS code.

Definition at line 25 of file event_work.h.

◆ touchedTrigger

◆ unk16e

u8 EventWork::unk16e[2]

FieldWork's input request; not named by TBS code.

Definition at line 27 of file event_work.h.

◆ requestedExit

u16 EventWork::requestedExit

the exit kind taken, which ends the scene

Definition at line 28 of file event_work.h.

Referenced by SaveMenu_Run().

◆ unk172

◆ unk174

u8 EventWork::unk174[6]

FieldWork's examine, start and descriptor.

Definition at line 30 of file event_work.h.

◆ facingTrigger

s16 EventWork::facingTrigger

the collision code ahead, which a search answers

Definition at line 31 of file event_work.h.

Referenced by Event_ReadRelief(), and Menu_RunTopSelection().

◆ encounterEnemyGroup

u16 EventWork::encounterEnemyGroup

the next battle's enemy group, 0 for none

Definition at line 32 of file event_work.h.

Referenced by SuhallaDesert_CatchInStorm(), and WorldMap_StartAirborneTravel().

◆ psynergyRequest

s16 EventWork::psynergyRequest

a field Psynergy to use, as owner << 10 | Psynergy

Definition at line 33 of file event_work.h.

Referenced by AltinPeak_RequestPsynergy(), Colosso_RaiseTakePlaceOnPsynergy(), Event_ReadStartledResidentsThoughts(), and PsynergyMenu_Run().

◆ unk180

u8 EventWork::unk180[2]

FieldWork's item request; not named by TBS code.

Definition at line 34 of file event_work.h.

◆ raisedTrigger

◆ unk184

u8 EventWork::unk184[0x18]

FieldWork's fallen characters and item slot.

Definition at line 36 of file event_work.h.

◆ blockedSteps

s16 EventWork::blockedSteps

◆ mode

s16 EventWork::mode

MODE_WORLD_MAP (3) on the world map.

Definition at line 38 of file event_work.h.

Referenced by Event_RollLongLog().

◆ encounterGroups

u8 EventWork::encounterGroups[8]

encounter zone for each kind of ground

Definition at line 39 of file event_work.h.

◆ encounterBias

s32 EventWork::encounterBias

randomized distance adjustment between battles

Definition at line 40 of file event_work.h.

Referenced by Event_MeetCorona(), Event_MeetHail(), and Event_MeetVine().

◆ encounterThreshold

s32 EventWork::encounterThreshold

encounter steps before a battle

Definition at line 41 of file event_work.h.

Referenced by Event_MeetCorona(), Event_MeetHail(), and Event_MeetVine().

◆ unk1b0

u8 EventWork::unk1b0[0x10]

FieldWork's walking distance and tiles.

Definition at line 42 of file event_work.h.

◆ startTransition

s32 EventWork::startTransition

SCENE_TRANSITION(style, variant).

Definition at line 43 of file event_work.h.

Referenced by AlpineCrossing_LiftBoulder(), AltinPeak_AwardFrostJewelAndDrain(), AltinPeak_CelebrateHydrosVictory(), AltinPeak_DrainAfterSecondBeast(), AltinPeak_DrainAfterThirdBeast(), AltmillerCave_Initialize(), AltmillerCave_InitializeDarkness(), BabiLighthouse_SetupScene(), BabiPalace_ApplyEntryState(), BabiPalace_WakeAfterFinals(), Bilibin_Initialize(), Bilibin_RestoreRaisedEntrance(), BilibinCave_RestoreDouseSection(), BilibinCave_RestoreIcePuzzleSection(), BilibinInteriors_Initialize(), ColosseumEntrance_ExplainPartySupport(), ColosseumEntrance_ExplainTrial(), ColosseumEntrance_ShowClearedTrial(), ColosseumEntrance_ShowFailedTrial(), ColossoLog_Initialize(), ColossoLog_PlayPostBattleReunion(), ColossoLog_RunCompetitorTalk(), ColossoRiver_Initialize(), ColossoWall_Initialize(), Event_AudienceWithMcCoy(), Event_BagMercuryStar(), Event_BagVenusStar(), Event_DepartForQuest(), Event_DonpaJudgesDodonpa(), Event_DoraSendsIsaacToThePlaza(), Event_EnterNyunpasHall(), Event_EnterPalace(), Event_EscortSeesPartyOff(), Event_FightEastGuard(), Event_FightFirstMonster(), Event_FightFourthMonster(), Event_FightHallGuard(), Event_FightSecondMonster(), Event_FightThirdMonster(), Event_FightThreeGuards(), Event_FightTret(), Event_FightWestGuard(), Event_FindHammet(), Event_FreeRooferAndConfrontThieves(), Event_GuardsArrestParty(), Event_HurryToThePlaza(), Event_KradenPlansSanctumVisit(), Event_KradenSetsOff(), Event_McCoyRewardsParty(), Event_OpenDoorAndLeave(), Event_PresentRewardChests(), Event_ReadCorneredSuspectsMinds(), Event_ReturnFromMtAleph(), Event_RiseToElementalStarRoom(), Event_ShowMythrilBag(), Event_StepOnEastWallSwitch(), Event_StepOnWallSwitch(), Event_StepOnWestWallSwitch(), Event_TakeMarsStar(), Event_TalkToTrialAttendant(), Event_TravelersLeaveAfterBattle(), FieldScene_RunEntrySetup(), FuchinTemple_NyunpaTeachesKi(), HammetPalace_HammetsHomecoming(), HammetPalace_IvanReportsToLayana(), HouseScene_RunRepairMorning(), Imil_Initialize(), Imil_MeetMiaAtOldCouplesHouse(), Imil_MiaSaysFarewellToApprentices(), Imil_OpenDoorAndExit(), ImilFuchinFalls_Initialize(), ImilFuchinFalls_PrepareRoom(), ItemLevel_RequestExit(), Kalay_HammetReturnsToPalace(), Kalay_IvanMeetsPalaceGuards(), Kalay_PrepareTunnel(), Kalay_StartWindowTransition(), KalayInteriors_Initialize(), KalayTolbiDocks_PrepareTicketOffice(), Kolima_Initialize(), KolimaForestBend_Initialize(), KolimaForestClearing_Initialize(), KolimaForestRiver_Initialize(), KolimaForestTree_Initialize(), KolimaInteriors_Initialize(), Lalivero_Initialize(), LamakanDesert_Initialize(), LamaTemple_EnterHamasRoom(), LamaTemple_RunHamasFarewell(), LemurianShip_SetupScene(), LinkLobby_RunRoundResult(), LunpaFortress_InitializeColumnRoom(), LunpaFortress_InitializeGuardRooms(), LunpaFortress_InitializeOuterRooms(), MercuryLighthouse_EnterRisingPassage(), MercuryLighthouse_ExitWhenChannelsOpen(), MercuryLighthouse_Initialize(), MercuryLighthouse_MoveStoneDoorBlocks(), MercuryLighthouseAerie_AlexAppears(), MercuryLighthouseAerie_Initialize(), MercuryLighthouseAerie_PartyArrives(), MercuryLighthouseEntrance_FightLizardMan(), MercuryLighthouseEntrance_Initialize(), MercuryLighthouseEntrance_MiaEntersLighthouse(), MogallForest_Initialize(), Sanctum_Initialize(), Sanctum_RequestQuestAcceptance(), SaveMenu_Run(), Scene_Initialize(), Scene_RunEntrySetup(), SolSanctumElementalStarRoom_BagJupiterStar(), SolSanctumElementalStarRoom_EnterStarRoom(), SolSanctumEntrance_ApplyEntryState(), SolSanctumEntrance_InspectInnerStatues(), SolSanctumEntrance_IntroduceSanctum(), SolSanctumEntrance_RestoreInteriorState(), SolSanctumLunaSolRooms_AnimateSavedStatueLights(), SolSanctumLunaSolRooms_Initialize(), SolSanctumLunaSolRooms_PrepareStatueTransition(), SolSanctumLunaSolRooms_RunStatueLightSequence(), SolSanctumLunaSolRooms_ShowFloatingEye(), SolSanctumLunaSolRooms_SpringStatueTrap(), SolSanctumStatue_ExplainStatuePuzzle(), SolSanctumStatue_Initialize(), SolSanctumStatue_VisitStatueHall(), Title_RevealScreen(), Tolbi_ApplyEntryState(), TolbiInteriors_ApplyEntryState(), TolbiInteriors_ExitThroughWindow(), TolbiShipDeck_AnnouncePreparationsReady(), TolbiShipDeck_ArriveAtTolbi(), TolbiShipDeck_Initialize(), TolbiShipDeck_JumpIntoKrakenBattle(), TolbiShipDeck_MonsterLandsOnDeck(), TolbiShipDeck_MonstersAttackCrew(), TolbiShipDeck_MonstersBoard(), TolbiShipDeck_ReturnFromIsland(), TolbiShipDeck_SightLand(), TolbiShipDeck_SightSeaMonsters(), TolbiShipDeck_ThankForKraken(), TolbiShipInteriors_ApplyEntryState(), TolbiShipInteriors_AskForReplacementOarsmen(), TolbiShipInteriors_DismissReplacementRowers(), TolbiShipInteriors_ReactToMonsterAttack(), TolbiShipInteriors_RunSceneCommand(), TolbiShipInteriors_ShowRowing(), TolbiShipMast_AnnounceClearCourse(), TolbiShipMast_AnnounceLand(), TolbiShipMast_Initialize(), TolbiShipMast_RunLandingSequence(), TolbiShipMast_ShowMonsters(), TolbiSpring_Initialize(), TretTreeBranch_Initialize(), TretTreeInteriors_PlayPostBattleConversation(), TunnelRuins_Initialize(), Vale_RequestBackdropExit(), ValeBabi_CloseScreenAndExit(), ValeBabi_Initialize(), ValeCave_Initialize(), ValeInteriors_Initialize(), ValeInteriors_RequestWindowExit(), ValeStorm_Initialize(), VaultInteriors_ConfrontThievesAgain(), VaultInteriors_DefeatThieves(), VaultInteriors_DiscussMindReading(), VaultInteriors_LoseToThieves(), VaultInteriors_OpenWindowTransition(), VaultInteriors_ReturnStolenGoods(), VenusLighthouse_AnimateEastTileWave(), VenusLighthouse_AnimatePairedTileWaves(), VenusLighthouse_AnimateWestTileWave(), VenusLighthouseAerie_EnterAndConfrontAntagonists(), VenusLighthouseAerie_PlayShebasFall(), VenusLighthouseAerie_ShowShebaInDanger(), VenusLighthouseAerie_StageShebasFall(), Village_EnterDoor(), WorldMap_Initialize(), WorldMap_MoveActorEightToExit(), WorldMap_RunOpeningRise(), WorldMap_ShowEndingScene(), Xian_Initialize(), and XianInteriors_Initialize().

◆ unk1c4

u8 EventWork::unk1c4[4]

FieldWork's unk1c4 and transitionActive.

Definition at line 44 of file event_work.h.

◆ transitionFrames

s32 EventWork::transitionFrames

frames

Definition at line 45 of file event_work.h.

Referenced by AltinPeak_CelebrateHydrosVictory(), AltmillerCave_Initialize(), AltmillerCave_InitializeDarkness(), BabiPalace_WakeFromFinalsDream(), ColosseumEntrance_ExplainPartySupport(), ColosseumEntrance_ShowClearedTrial(), ColosseumEntrance_ShowFailedTrial(), ColossoLog_RunCompetitorTalk(), EnterDoor(), Event_AudienceWithMcCoy(), Event_ClimbToAttic(), Event_CrowdRecognizesIsaac(), Event_DoraSendsIsaacToThePlaza(), Event_EnterDoor(), Event_EnterWaterfallGrotto(), Event_EnterWideDoor(), Event_FightFirstMonster(), Event_FightFourthMonster(), Event_FightSecondMonster(), Event_FightThirdMonster(), Event_FightTret(), Event_GaretComesHome(), Event_HurryToThePlaza(), Event_LeaveAttic(), Event_McCoyRewardsParty(), Event_MendingTheRoof(), Event_PresentRewardChests(), Event_ReadCorneredSuspectsMinds(), Event_ReturnFromMtAleph(), Event_RiseToElementalStarRoom(), Event_RoofMended(), Event_TalkToTrialAttendant(), Event_TravelersLeaveAfterBattle(), FieldScene_RunEntrySetup(), HammetPalace_HammetsHomecoming(), HammetPalace_IvanReportsToLayana(), HouseScene_RunRepairMorning(), Imil_MeetMiaAtOldCouplesHouse(), Imil_MiaSaysFarewellToApprentices(), ItemLevel_RequestExit(), Kalay_HammetReturnsToPalace(), Kalay_IvanMeetsPalaceGuards(), Kolima_AnimateSwitchOrExit(), Kolima_WalkThroughExit(), Lalivero_Initialize(), Sanctum_RequestQuestAcceptance(), Scene_Initialize(), SolSanctumElementalStarRoom_EnterStarRoom(), SolSanctumEruption_PlayHostageScene(), SolSanctumLunaSolRooms_AnimateSavedStatueLights(), SolSanctumLunaSolRooms_PrepareStatueTransition(), SolSanctumLunaSolRooms_RunStatueLightSequence(), SolSanctumLunaSolRooms_ShowFloatingEye(), SolSanctumLunaSolRooms_SpringStatueTrap(), SolSanctumStatue_VisitStatueHall(), TakeTouchedExit(), Title_RevealScreen(), TolbiInteriors_ExitThroughWindow(), TretTreeInteriors_PlayPostBattleConversation(), Vale_RequestBackdropExit(), ValeInteriors_RequestWindowExit(), ValeStorm_Initialize(), Vault_WalkThroughExit(), Vault_WalkThroughExit(), VaultInteriors_ConfrontThievesAgain(), VaultInteriors_DefeatThieves(), VaultInteriors_DiscussMindReading(), VaultInteriors_ReturnStolenGoods(), VenusLighthouseAerie_EruptBeacon(), VenusLighthouseAerie_PlayShebasFall(), VenusLighthouseAerie_RestorePartyOnBrokenAerie(), VenusLighthouseAerie_ShowShebaInDanger(), VenusLighthouseAerie_StageShebasFall(), WorldMap_Initialize(), WorldMap_PlayLighthouseTransition(), WorldMap_RunOpeningRise(), WorldMap_ShowEndingScene(), WorldMap_StartTransitionEffect(), and Xian_WalkThroughExit().

◆ unk1cc

u8 EventWork::unk1cc[0x0c]

FieldWork's fastForward and unk1d0.

Definition at line 46 of file event_work.h.

◆ message

u16 EventWork::message

the next message, advanced as each window opens

Definition at line 47 of file event_work.h.

Referenced by AdvanceMessage(), BabiLighthouse_DiscussPursuit(), BabiLighthouse_ExplainTruthDoor(), BabiPalace_MeetBabiAfterColosso(), BabiPalace_RestInPalaceBeds(), BabiPalace_WakeAfterFinals(), BabiPalace_WakeFromFinalsDream(), ColosseumEntrance_ExplainPartySupport(), ColosseumEntrance_ExplainTrial(), Event_AskAboutEruption(), Event_AskAboutJailbreak(), Event_AskAboutJourney(), Event_AskAboutNewAdepts(), Event_AskAboutPsynergyChanges(), Event_AskAboutTreeSpirit(), Event_AskIfReadyForFinals(), Event_AskIsaacHisBusiness(), Event_AskWhetherIvanWentToLunpa(), Event_AskWhetherMaskedManWasFelix(), Event_ConfrontSaturosAndMenardi(), Event_DemonstratePsynergy(), Event_DiscussSuspiciousGuests(), Event_EnterIsaacsHouse(), Event_ExamineTreeMan(), Event_FehAsksToSeeChi(), Event_FinalsBegin(), Event_GaretAsksToProtectFamily(), Event_GaretComesHome(), Event_GaretMeetsHisSister(), Event_IodemAsksWhyTurningBack(), Event_IodemQuestionsGuards(), Event_IodemQuestionsWoundedSoldiers(), Event_JillGivesHardNut(), Event_KradenPlansSanctumVisit(), Event_MayorGivesWaterOfLife(), Event_McCoyRewardsParty(), Event_MonkSpeaksOfNyunpa(), Event_NyunpaOffersTest(), Event_OfferBones(), Event_OfferBones(), Event_OfferLuckyGuess(), Event_ReadMindOnIvan(), Event_ReadMindOnJailKey(), Event_ReadRelief(), Event_RoofMended(), Event_SentToAidElders(), Event_SetSecondSmallJewel(), Event_SkipMessages(), Event_SoldierAsksAboutCrossing(), Event_TalkAboutIvan(), Event_TalkToEastGuard(), Event_TalkToEastGuard(), Event_TalkToEastGuard(), Event_TalkToHungryDiner(), Event_TalkToRewardKeeper(), Event_UseBlackOrb(), Event_VisitorAsksAboutBridge(), Event_VisitSickDora(), Event_WelcomeIsaacBack(), FuchinTemple_NyunpaTeachesKi(), FuchinTemple_RunHamasRevealLesson(), HammetPalace_AdvanceMessage(), HammetPalace_IvanReportsToLayana(), HouseScene_RunRepairMorning(), Kalay_AskAboutCaveAccess(), Kalay_HammetReturnsToPalace(), Kalay_IvanMeetsPalaceGuards(), Kalay_WatchTourGroupDeparture(), KalayTolbiDocks_TalkToGatekeeper(), KalayTolbiDocks_TalkToTicketSeller(), KalayTolbiDocks_TalkToWaitingDaughter(), KalayTolbiDocks_TalkToWorriedFather(), Kolima_WitnessForestCurse(), KolimaForestBridge_WitnessForestCurse(), KolimaForestTree_RestoreTret(), MercuryLighthouse_MiaOpensEntranceWithPly(), MercuryLighthouse_MiaSensesSomeoneInside(), MercuryLighthouseAerie_AlexAppears(), MercuryLighthouseAerie_ConfrontSaturos(), ReceiveBlackOrb(), ReportToFaran(), Sanctum_RequestQuestAcceptance(), SetSail(), SolSanctumElementalStarRoom_EnterStarRoom(), SolSanctumElementalStarRoom_GiveMythrilBags(), SolSanctumElementalStarRoom_SkipMessages(), Tolbi_MeetSearchingSoldiers(), Tolbi_TalkToGambler(), TolbiShipDeck_ReturnFromIsland(), TolbiShipInteriors_AskPassenger12ToRow(), TolbiShipInteriors_AskPassenger9ToRow(), TolbiShipInteriors_AskToRow(), TolbiShipInteriors_ReachIsland(), TolbiShipInteriors_ReactToMonsterAttack(), TolbiShipInteriors_ReturnLuckyAnchor(), TolbiShipInteriors_TalkToWaitingPassenger8(), TolbiSpring_OfferLuckyDice(), Vault_AskYesNoAndShowReply(), VaultInteriors_AskYesNoAndShowReply(), VaultInteriors_DefeatThieves(), VaultInteriors_ReturnStolenGoods(), VenusLighthouseAerie_CombineSaturosAndMenardi(), VenusLighthouseAerie_DiscussSaturosAndMenardiDefeat(), VenusLighthouseAerie_EnterAndConfrontAntagonists(), VenusLighthouseAerie_PlayShebasFall(), Xian_StrikeTrainingTreeWithForce(), and Xian_TalkToWaterCarrier().

◆ unk1da

u8 EventWork::unk1da[6]

FieldWork's unk1da to unk1de.

Definition at line 48 of file event_work.h.

◆ viewCenter

struct FieldActor* EventWork::viewCenter

the object the map view follows

Definition at line 49 of file event_work.h.

Referenced by Event_RollLongLog(), TretTreeBranch_ShiftLeaderAndCameraByCells(), and VenusLighthouse_StepActorWithDust().

◆ unk1e4

u8 EventWork::unk1e4[0xade]

not named by TBS code through this view

Definition at line 50 of file event_work.h.

◆ choiceMessage

u16 EventWork::choiceMessage

Message containing the choices.

Definition at line 51 of file event_work.h.

Referenced by Colosso_AskDoneCheering().

◆ unkcc4

u16 EventWork::unkcc4

FieldWork's nameWidth; Colosso sets it to 4.

Definition at line 52 of file event_work.h.

Referenced by Colosso_AskDoneCheering().