Skip to Content
The Alchemy Project

src/scene/contigo.c

Contigo, the village of the Jupiter clan north of Atteka Inlet, beside the crater below Jupiter Lighthouse, and the rooms of its overlay: the houses, shops, inn and Sanctum, the three game tents, and the Anemos geoglyph east of the village, where the villagers build the Wings of Anemos in front of the Anemos Sanctum. More…

Macros

NameDescription
#defineFLAG_SHINE_FREED 0x9e7Force has freed Shine from the tree stump it was stuck in.
#defineFLAG_SHINE_CAUGHT 0x9e6Set as Shine, freed, joins the party; until then it waits where it landed.
#defineFLAG_HAMMA_WELCOMED_PARTY 0x9d1Set once Hamma has welcomed the party to her new home, after it set out with the wings, and told Ivan why she kept from him that she is his sister (scContigoReturnToNewHome).
#defineFLAG_WHOLE_VILLAGE_IN_VIEW FLAG_SCENE_TEMP(0x00)The village's temp flag: the camera follows the leader east past the village gate as far as the weed patch, rather than stopping at the gate (scContigoWidenCameraBounds).
#defineREUNION_HAMMA_PORTRAIT_Y JAPANESE_OR(12, 10)The tile row of Hamma's portrait as she and Isaac speak at once in the reunion (scContigoTheReunion): two rows higher from the first patch on.
#defineCOIN_WON_MESSAGEWhat the dice and wheels attendants say as the party comes back from a game (scContigoInitLuckyDice); the Spanish text numbers these lines differently.
#defineCOIN_LOST_MESSAGE
#defineREAD_SIGN_MESSAGE
#defineCONGRATULATIONS_MESSAGE
#defineFIRST_PRIZE_MESSAGE
#defineNEXT_PRIZE_MESSAGE
#defineCOME_AGAIN_MESSAGE ((Sint32)MsgContigoComeAgain)
#defineFLAG_LEFT_FOR_A_GAME 0x9e5Set as the party leaves the dice hall for one of its games, so that the hall greets it on its way back by the game's entrance.
#defineEFFECT_SET_MODE fdActorSelectAnimation
#defineEFFECT_SET_SCRIPT fdActorStartScript
#defineTELEPORT_CIRCLE_FIRST_ENTRY 89

Enumerations

NameDescription
enumCONTIGO_METATILE_BEHAVIOR { METATILE_BEHAVIOR_GEOGLYPH_WEST_EDGE, METATILE_BEHAVIOR_SANC … }The map metatiles the village's, the geoglyph's and the houses' cue rows answer.
enumCONTIGO_DICE_HALL_ENTRANCE { ENTRANCE_FROM_SUPER_LUCKY_DICE, ENTRANCE_FROM_LUCKY_DICE, EN … }The dice hall's ways back from its games.
enumCONTIGO_VILLAGE_ACTOR_ID { ACTOR_YOUNG_MAN_ON_THE_WIND_LEGEND, ACTOR_WOMAN_FORESEEING_T … }The village's people and Djinn (ContigoVillagePlacements).
enumCONTIGO_SHOPS_ACTOR_ID { ACTOR_MAN_ON_IVANS_RETURN, ACTOR_WOMAN_ON_IVANS_MOTHER, ACTO … }The shops and inn before the reunion (ContigoShopsPlacementsBeforeReunion).
enumCONTIGO_REUNION_ACTOR_ID { ACTOR_HAMMA, ACTOR_KRADEN }Hamma and Kraden at the reunion and after it (ContigoShopsPlacements, ContigoShopsPlacementsReunion).
enumCONTIGO_LUCKY_DICE_ACTOR_ID { ACTOR_SUPER_LUCKY_DICE_ATTENDANT, ACTOR_SUPER_LUCKY_DICE_RUL … }The dice and wheels hall (ContigoLuckyDicePlacements).
enumCONTIGO_GEOGLYPH_ACTOR_ID { ACTOR_VISITOR_FROM_AFAR, ACTOR_WOMAN_ON_THE_WINGS, ACTOR_WIN … }The geoglyph, where the Wings of Anemos are built (ContigoGeoglyphPlacements).
enumanonymous enum { ACTOR_CORN, ACTOR_BRAMBLE_SEED }The village's treasure actors after the Power Bread's (SceneItems): the Corn, and the Bramble Seed under the weeds north of the Teleport circle.
enumanonymous enum { WHEELS_PRIZE_ICONS, WHEELS_ICON_MOON, WHEELS_PRIZES_PER_ICON }The Lucky Wheels' icons that win prizes, shirts, boots, rings, then the stars' and hearts' items, three prizes to each (ContigoWheelsPrizes); the Moon after them is wild, any of the five at random.
enumanonymous enum { CHILD_GIRL, CHILD_BOY, CHILD_WALKING, CHILD_TALKED_TO }The two children walking round the middle of the village keep, in their scene counter, which of them each is, so that each looks out for the other, and in their scene byte whether one is being talked to.
enumanonymous enum { SHOP_CONTIGO_WEAPONS, SHOP_CONTIGO_ARMOR, SHOP_CONTIGO_ITEMS }Contigo's shops, as mnShopRun numbers them.
enumanonymous enum { INN_ID_CONTIGO }Contigo's inn, as mnInnCheckIn numbers the inns.
enumCONTIGO_RAISED_CUE { RAISED_SALT_FOUND }The cue scContigoScoopForSalt raises once Salt has popped up, which runs scContigoSaltJoinsParty.
enumanonymous enum { LUCKY_DICE_COINS_PER_LEVEL, LUCKY_DICE_MEDIUM_WIN, LUCKY_DIC … }The dice games cost 10 coins for each level of the party's average level; a win of 5,000 coins or more, or of 20,000, is greeted with a bigger jingle.
enumanonymous enum { SPARKLE_RISING, SPARKLE_ENDING }The sparkle's scene counter: rings still starting, or ending once both pairs have risen.

Functions

NameDescription
voidscContigoOfferLuckyWheels (Sint32 returning)The Lucky Wheels attendant asks whether Felix will use his game tickets, warns when the party has little room for prizes, and sends it to the slot machine; returning is nonzero as the party comes back from a game, when she asks only whether to keep playing.
voidscContigoOpenSanctumDoor (Sint32 srcX, Sint32 srcY, Sint32 doorX, Sint32 doorY)A thump, and the door at the head of the Sanctum's steps shows open; Felix walks slowly in through it and the screen fades out.
voidscTeleportStartShimmer (void)Starts the shimmer at its slow pace, as Teleport is cast: the first step after 16 ticks, each after a tick less, down to two.
voidscTeleportStopShimmer (void)Stops the shimmer, leaving the next transition a backdrop fade.
voidscContigoInitVillage (void)Sets up the village: the two children walking about its middle stop when faced (scContigoPauseWhenFaced); once Jupiter Lighthouse's beacon is lit, until the ship has its wings, the girl and the old woman are gone and four doors are locked; Shine waits where it landed until caught.
voidscContigoInitGeoglyph (void)Sets up the geoglyph: until Jupiter Lighthouse's beacon is lit the wings' parts lie on it among the workers; after, they and the workers are gone, and the men in long robes too until the ship has its wings.
voidscContigoInitShops (void)Sets up the houses: walking into the house at the top of the hill once the beacon is lit starts the reunion; in the others the baby lies in its cradle, the old man on Hesperia shivers once the ship has its wings, and the workers resting at the inn are gone after the reunion.
voidscContigoInitLuckyDice (void)Sets up the dice hall: its signs drawn small and its attendants' colours, and on the party's return from a game the coins won or lost, or the prizes.
BSS_DATAALIGNED (4)The blend of one turn of the two maps' alternation in the throne room, a step every four ticks: the first map fades up and down, then the second.
voidscTeleportArriveWhirling (void)The party arrives by Teleport on the circle: the room fades in grey while the circle shimmers and the whirl plays, then its colours come back.
Sint32scListCountEntries (Uint16 *list)The number of entries in a list of palette slots ended by PALETTE_LIST_END, less one.
voidfdPaletteCycleFade (void)Steps a palette cycle that fades as it slows.
voidscContigoSaltJoinsParty (void)Salt, popped up out of the gap in the weed patch east of the village gate, joins the party: "Felix found the Venus Djinni Salt!"
voidscContigoFreedDjinniJoinsParty (void)Talking to Shine where it landed, beside the tree stump behind the inn, once Force has freed it: the Mars Djinni joins the party.
Sint32scContigoPauseWhenFaced (ACTOR *self)The update of the two children walking round the middle of the village: each stands while it is talked to, while Mind Read shows its thoughts, or while it faces the other child or the leader close by, and walks on otherwise or once the leader is right by it.
Sint32scContigoShowWorkerPuzzled (void)A question mark over the worker wondering which part goes where, as he looks from one part of the wings to another (ContigoPuzzledWorkerScript).
const SCENE_ENTRANCE *scGetEntrances (void)Where the party can enter: the cave under the spring has its own entrances.
const SCENE_REGION *scGetExitRegions (void)The regions of the rooms whose exits are rectangles: the Chestbeaters' room and the stream room.
const Uint32 *scGetExits (void)The dock's ways lead back the way the party came into Lemuria, which the harbour and the shore of Ancient Lemuria note in FLAG_LEMURIA_OTHER_WAY_IN.
const ACTOR_PLACE *scGetActorPlacements (void)The scene's actor placements: a room of names for its entrance, else the debug room's.
const CUE *scGetCues (void)The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's.
voidscContigoExamineWall (void)Felix examines the Sanctum's front wall between its west and middle steps, behind the translation sign (metatiles (45, 18) and (46, 18)): "There are characters carved into it", which he cannot make sense of.
voidscContigoReadSign (void)Felix reads the small sign in front of the Sanctum's carved wall: "The characters from the wall are translated" on it.
voidscContigoReadLuckyWheelsSign (void)Felix reads the sign outside the Lucky Wheels tent, left of the inn (metatile (4, 55)): "Turn the slot and get a prize!
voidscContigoReadSuperLuckyDiceSign (void)Felix reads the sign west of the two tents north of the Teleport circle (metatile (11, 47)), which points to Super Lucky Dice in the west tent: "Drop some cash and double up!
voidscContigoReadLuckyDiceSign (void)Felix reads the sign east of the two tents north of the Teleport circle (metatile (19, 47)), which points to Lucky Dice in the east tent: "You never know what the dice will do next!
voidscContigoAskAboutWindLegend (void)Until Jupiter Lighthouse is lit, the young man a few steps inside the village gate asks Felix whether he knows the legend of the people who could control the wind and air, and answers his yes or no.
voidscContigoWhirlLeaf (ACTOR *effect)The update of a leaf in the baby's whirlwind: it circles on a random radius, now and then pausing to spin faster, and is released after 101 ticks.
voidscContigoRaiseLeaves (void)An event that spawns a leaf in the baby's whirlwind every eighth tick, flung up to fall back as it circles.
voidscContigoBabyThinks (void)Talking to the baby in its cradle, in the house north of the weapon shop: "The baby's forehead is furrowed, like it's thinking." The room turns dark blue, a whirlwind grows over the cradle and leaves whirl up in it, then the light comes back, the baby babbles "Babu bawaba bibaw.", and its brother grumbles that the shabby old house is drafty.
voidscContigoTalkToItemMerchant (void)Talking to the item merchant across her counter, in the west of the two houses south of the Teleport circle, opens the item shop; from any other side she talks of the wings.
voidscContigoTalkToWeaponMerchant (void)Talking to the weapon merchant, the west of the two men behind the counter in the shop east of the Teleport circle, across it opens his shop; from any other side he talks of Atteka's traditions.
voidscContigoTalkToArmorMerchant (void)Talking to the armor merchant, the east of the two men behind the counter in the shop east of the Teleport circle, across it opens his shop; from any other side he talks of the mining in the ruins.
voidscContigoTalkToInnkeeper (void)Talking to the innkeeper across the counter of the inn, right of the Lucky Wheels tent, offers a night's rest; from any other side the innkeeper talks of the visitors and the wings.
voidscContigoTalkToHealer (void)Talking to the healer across his counter, at the head of the red carpet in the Sanctum north-east of the Teleport circle, offers the Sanctum's healing; from any other side he talks of the miracle of the wings.
voidscContigoAskAboutSuperDice (void)In the Super Lucky Dice tent, one of the players asks Felix whether he has ever played Superdice before, and answers his yes or no.
voidscContigoReadSuperLuckyDiceRules (void)Felix reads the rules sign in the Super Lucky Dice tent: four dice thrown at once, what matching pairs and fours win, and the hi-lo game after a win.
voidscContigoReadLuckyDiceRules (void)Felix reads the first of the two signs in the Lucky Dice tent: throw the dice on the table and try to get the same numbers.
voidscContigoReadLuckyDicePairs (void)Felix reads the second sign in the Lucky Dice tent: what pairs, triples and four of a kind win.
voidscContigoTalkToWheelsAttendant (void)Talking to the young woman by the slot machine in the Lucky Wheels tent offers a game for game tickets (scContigoOfferLuckyWheels).
voidscContigoReadLuckyWheelsRules (void)Felix reads the rules sign in the Lucky Wheels tent: five pulls of the lever, stars to hold a wheel, and more lines for more tickets.
voidscContigoReadLuckyWheelsPrizes (void)Felix reads the prizes sign in the Lucky Wheels tent: shirts, rings and boots win their kind, stars and hearts win items, and the Moon is wild.
voidscContigoAskAboutGeoglyph (void)On Felix's first visit, the man in a long robe between the Sanctum's middle and east steps asks whether he has taken a good look at the Anemos geoglyph, and answers his yes or no.
voidscContigoTalkToDoubtingBoy (void)Talking to the boy walking about the middle of the village with a girl: he talks of the geoglyphs and of the crater where the city of the Anemos is said to have stood, and Mind Read hears that he will not believe it flew.
voidscContigoTalkAboutTheShip (void)Talking to the girl walking about the middle of the village with the boy: she talks of the wings the village built and, once they are gone, of seeing the ship take off; Mind Read hears her thoughts on the same.
voidfdTeleportPlaySparks (void)The leaving half of a teleport, fdTeleportPlayWhirl's companion in the same scenes: the leader raises both arms in changing colours, spins faster and faster as sparks burst from it, shrinks away and is hidden.
voidscContigoTeleportOut (void)Teleport cast on the carved stone circle in the middle of the village (metatiles (16, 50) and (17, 50)): the village turns grey, the circle shimmers and sparks of coloured light rise, and the party arrives on a circle like it in the Anemos Inner Sanctum.
voidscContigoScatterWeedsWestOfItemShop (void)Cyclone scatters the clump of weeds just west of the item shop, the west of the two houses south of the Teleport circle (metatile (8, 56)), leaving bare ground.
voidscContigoScatterWeedsBehindInn (void)Cyclone scatters the clump of weeds behind the inn, beside the tree stump where Shine is stuck (metatiles (2, 45) and (3, 45)), leaving bare ground.
static __inline__ voidscContigoCopyTouchedMetatiles (Sint32 srcX, Sint32 srcZ, Sint32 width, Sint32 height, Sint32 windowX, Sint32 windowZ, Sint32 layer)The scene's own name for fdTileCopiesCopyTouchedMetatiles, which the Bramble Seed's clump calls.
voidscContigoScatterWeedsOverBrambleSeed (void)Cyclone scatters the clump of weeds beside the east wall of the house at the top of the hill (metatile (17, 41)), and unless it was taken the Bramble Seed lies uncovered there.
voidscContigoScatterWeedsWestOfWeaponShop (void)Cyclone scatters the clump of weeds against the west wall of the weapon and armor shop, east of the Teleport circle (metatiles (23, 49) and (23, 50)), leaving bare ground.
voidscContigoScatterWeedsByGate (void)Cyclone scatters the weeds just east of the village gate's east post (metatiles (29, 59) and (30, 58) to (30, 60)), leaving bare ground.
voidscContigoScatterWeedsBelowLuckyWheels (void)Cyclone scatters the clump of weeds below the Lucky Wheels tent, at the edge of the slope (metatile (3, 58)), leaving bare ground.
voidscContigoScatterWeedsOnCliffWest (void)Cyclone scatters the western of the two clumps of weeds on top of the cliff south of the item shop (metatiles (7, 60) and (8, 60)), leaving bare ground.
voidscContigoScatterWeedsOnCliffEast (void)Cyclone scatters the eastern of the two clumps of weeds on top of the cliff south of the item shop (metatiles (10, 61) and (11, 61)), leaving bare ground.
voidscContigoScatterWeedPatchTopRow (void)Cyclone scatters the top row of the big weed patch east of the village gate (metatiles (40, 57) to (42, 57)), leaving bare ground.
voidscContigoScatterWeedPatchSecondRow (void)Cyclone scatters the second row from the top of the big weed patch east of the village gate (metatiles (39, 58) to (43, 58)), leaving bare ground.
voidscContigoScatterWeedPatchMiddleRow (void)Cyclone scatters the middle row of the big weed patch east of the village gate, either side of the open gap where Salt hides (metatiles (39, 59), (40, 59), (42, 59) and (43, 59)), leaving bare ground.
voidscContigoScatterWeedPatchFourthRow (void)Cyclone scatters the second row from the bottom of the big weed patch east of the village gate (metatiles (39, 60) to (43, 60)), leaving bare ground.
voidscContigoScatterWeedPatchBottomRow (void)Cyclone scatters the bottom row of the big weed patch east of the village gate (metatiles (40, 61) to (42, 61)), leaving bare ground.
voidscContigoWidenCameraBounds (void)Nothing visible happens when Felix walks south from the middle of the village into its south part, on one of the three ways in: west of the item shop, between it and the house beside it, or east of that house (metatiles (5, 55) to (8, 55), (14, 55) and (18, 57) to (20, 57)).
voidscContigoNarrowCameraBounds (void)Nothing visible happens when Felix walks back north from the village's south part into its middle, on one of the three ways (metatiles (4, 54) to (8, 54), (14, 54) and (18, 56) to (20, 56)); the view stops at the village gate again, and FLAG_WHOLE_VILLAGE_IN_VIEW is cleared.
voidscContigoScoopForSalt (void)Scoop cast in the open gap in the middle of the big weed patch east of the village gate (metatile (41, 59)): until the party has Salt, the Venus Djinni pops up there, turns to Felix and joins the party.
voidscContigoRevealMiddleDoor (void)Felix casts Reveal anywhere at the geoglyph or the Sanctum's front: the carved wall at the head of the Sanctum's main steps shows as a dark open doorway, its middle door, and while Reveal lasts walking north into it (metatiles (48, 19) and (49, 19)) leads inside, on the way to the Dragon Skin's chest.
voidscContigoHideMiddleDoor (void)As Reveal fades in front of the Sanctum, its middle door shows shut again and walking into it leads nowhere.
voidscContigoForceFreesDjinni (void)Force cast on the tree stump behind the inn, where Shine is stuck: the ground shakes with a thump, a ring of dust bursts out of the stump, and Shine leaps out and lands just north-west of it, Felix hopping aside if it lands on him.
voidscContigoLockDoors (void)Once Jupiter Lighthouse's beacon is lit, while the villagers are away transporting the wings: the doors of the item shop, the house beside it, the weapon and armor shop and the baby's house north of it show shut, and trying one says it is locked (scShowEntranceLocked).
voidscContigoPlaceWingPart (Sint32 id)Lays a frame or feather of the wings flat on the ground, drawn behind.
voidscContigoSetUpWingParts (void)Lays out the wings' parts by the geoglyph: each frame and feather shows its own piece and lies flat, and the loose parts block the way.
Sint32scContigoSelectLuckyWheelsPrize (Sint32 icon)The prize for an icon matched on the Lucky Wheels: one of the icon's three, never the one it gave last; the Moon picks an icon at random, and a negative icon gives nothing.
voidscContigoOfferLuckyDice (void)Talking to the young man running the Lucky Dice tent offers a game, at 10 coins for each level of the party's average level: "Hey, buddy, wanna try yer luck at the dice?"
voidscContigoOfferSuperLuckyDice (void)Talking to the young man running the Super Lucky Dice tent offers a game at the same price as Lucky Dice, which his offer does not say: "Welcome, welcome, step right up!
voidscContigoShrinkActor (Sint32 id)Draws an actor at seven tenths of its size, as the geoglyph's and the dice hall's signs are drawn.
voidscContigoEnterSanctumWestDoor (void)Felix walks up the Sanctum's west steps into its door (metatiles (42, 20) and (43, 20)): it opens with a thump, he walks in, and he arrives in a small stone room of the Sanctum with dragon statues.
voidscContigoEnterSanctumMiddleDoor (void)Unused: the same for the Sanctum's middle door, which Reveal opens as a plain exit instead (scContigoRevealMiddleDoor).
voidscContigoEnterSanctumEastDoor (void)Felix walks up the Sanctum's east steps into its door (metatiles (54, 20) and (55, 20)): it opens with a thump, he walks in, and he arrives in a small stone room of the Sanctum with dragon statues.
voidscContigoStartSparkle (ACTOR *actor, SPARKLE_STATE *state)Sets up the sparkle: loads its picture and its four 16 by 16 sprites, and hands the object to its update, scContigoRaiseSparkle.
voidscContigoStopSparkle (ACTOR *actor)Ends the sparkle: its update finishes once both pairs have risen.
voidscContigoTheReunion (void)Walking into the house at the top of the hill once Jupiter Lighthouse's beacon is lit: Isaac, Garet, Mia and Ivan are waiting, and the reunion begins (scContigoInitShops).
voidscContigoReturnToNewHome (void)The party's first steps into the house at the top of the hill after the ship has its wings (metatiles (7, 25) to (12, 25), just inside the door): Hamma welcomes it to her new home, tells Ivan why she kept from him that she is his sister, and warns that the world is falling into ruin unless Mars Lighthouse is lit.
Sint32scInit (void)Opens the room through the window transition, and in the debug room draws the cat 1.7 times its size.
Sint32scPrepareMap (void)Once Briggs is caught the pool has dried up: its colours take the dry ground's.
voidscContigoKeepPriorityWithLeader (void)An event that draws the Corn at the leader's sprite priority.
static inline voidscContigoReportCoinChange (void)Back from a dice game, the attendant reports the coins the party won, with a jingle for the size of the win, or lost.
voidscContigoRaiseSparkle (ACTOR *actor)The sparkle's update, played over Hamma as she speaks of Mars Lighthouse in the reunion: two pairs of white half-rings rise around her, a pair starting every 16 ticks, until both have climbed RING_CLIMB pixels.

Variables

NameDescription
extern const Sint32 *FieldEffectDurationScripts []The field effects' three scripts by how long an effect lasts: short, medium and long.
extern ACTOR_PLACEContigoVillagePlacements []
extern ACTOR_PLACEContigoGeoglyphPlacements []
extern ACTOR_PLACEContigoShopsPlacementsBeforeReunion []
extern ACTOR_PLACEContigoShopsPlacementsReunion []
extern ACTOR_PLACEContigoShopsPlacements []
extern ACTOR_PLACEContigoLuckyDicePlacements []
extern CUEContigoVillageCues []
extern CUEContigoShopsCues []
extern CUEContigoShopsReunionCues []
extern Uint32ContigoWheelsPrizes []The Lucky Wheels' prizes, three to each icon that wins them (scContigoSelectLuckyWheelsPrize).
extern Sint32ContigoEnterSanctumDoorScript []Felix walking slowly north into an opened Sanctum door, half a pixel a tick.
extern Uint32ContigoRejoinLeaderScript []The end of the visit to Hamma's new home: Ivan, Isaac and Kraden walk to the leader and go into him.
extern Uint16TeleportCirclePaletteSlots []The entries the circle is drawn in.
extern Uint16TeleportCircleColors []The circle's colours: one pale grey-green on every entry.
extern Uint16TeleportCircleShimmerColors []The shimmer's colours, which it moves round the entries: lilac, blues deepening to violet, and white.
extern Uint16TeleportCircleShimmerSlots []The shimmer's six steps: for each, the entries its colours go to.
extern Sint32ContigoShiverScript []The old man on Hesperia shivering once the party has set out with the wings: "Brrr...Brrr...
extern Uint32LightRingTiles []The ring's picture at 4 bits a pixel, 32 by 16, eight rows of a tile to every two lines: each word is a row of a tile's eight pixels, a hex digit each, the leftmost in the lowest digit.
extern Uint32FieldEffectShortScript []
extern Uint32FieldEffectMediumScript []The flash about the Tomegathericon: held 45 ticks, then put away and freed.
extern Uint32FieldEffectLongScript []
extern Uint32ContigoDoubtingBoyScript []The two children's walk round the middle of the village: the same six-point loop, the girl setting out from the far side of it from the boy.
extern Uint32ContigoGirlOnTheShipScript []
extern Sint32ContigoPuzzledWorkerScript []The worker wondering which part goes where looks from one part of the wings to another, and wonders (scContigoShowWorkerPuzzled).
Uint16PaletteCycleBrightThe Teleport circle's shimmer (shared/teleport_shimmer.c): the colours it writes and the palette cycle that runs them round the circle.
Uint16PaletteCycleTimer
Uint16PaletteCycleDelay
extern ACTOR_PLACEContigoPlacements []
extern CUEContigoCues []
extern CUEContigoGeoglyphCues []
extern CUEContigoLuckyDiceCues []
extern Uint32ContigoJennaReunionScript []At the reunion, Jenna, Piers, Sheba and Kraden come in behind Felix and walk to their places, turning to face Isaac's party in the west.
extern Uint32ContigoPiersReunionScript []
extern Uint32ContigoShebaReunionScript []
extern Uint32ContigoKradenReunionScript []
extern Uint32ContigoJoinLeaderScript []The end of the reunion: each walks to the leader and goes into him, as the two parties become one.
SPARKLE_STATEContigoSparkleState
extern Uint32ContigoLeaderVisitsScript []In Hamma's new home the leader steps up to face her from the west.
SCENE_ENTRANCESceneEntrances []Besides the party's return to the pier after the ship is stolen, four unused spots about the mast: below the huge block, on the dock by its crate, on the deck, and at the top of the sail's east pole.
Uint32SceneExits []The room has no exits of its own.

Description

Contigo, the village of the Jupiter clan north of Atteka Inlet, beside the crater below Jupiter Lighthouse, and the rooms of its overlay: the houses, shops, inn and Sanctum, the three game tents, and the Anemos geoglyph east of the village, where the villagers build the Wings of Anemos in front of the Anemos Sanctum.

On Felix's first visit the village is busy with the wings. Scoop in the open gap of the big weed patch east of the village gate finds the Djinni Salt, and Cyclone on the clump of weeds beside the house at the top of the hill uncovers a Bramble Seed. The tent left of the inn holds Lucky Wheels, and the two tents north of the Teleport circle Super Lucky Dice (west) and Lucky Dice (east). Once Jupiter Lighthouse's beacon is lit, the villagers are away transporting the wings and four doors are locked; Isaac's party waits in the house at the top of the hill, and walking in starts the reunion (scContigoTheReunion). That house becomes Hamma's new home, and on the party's first visit after the ship has its wings she talks with Ivan (scContigoReturnToNewHome). In a linked game, Force on the tree stump behind the inn frees the Djinni Shine. Late in the game, Reveal in front of the Sanctum opens its middle door, and Teleport on the circle in the middle of the village leads into the Anemos Inner Sanctum.

Macros in detail

FLAG_SHINE_FREED

#define FLAG_SHINE_FREED 0x9e7

Force has freed Shine from the tree stump it was stuck in.

Referenced by ContigoVillageCues, scContigoForceFreesDjinni() and scContigoInitVillage().

Definition at line 33 of file contigo.c.

FLAG_SHINE_CAUGHT

#define FLAG_SHINE_CAUGHT 0x9e6

Set as Shine, freed, joins the party; until then it waits where it landed.

Referenced by scContigoFreedDjinniJoinsParty() and scContigoInitVillage().

Definition at line 35 of file contigo.c.

FLAG_HAMMA_WELCOMED_PARTY

#define FLAG_HAMMA_WELCOMED_PARTY 0x9d1

Set once Hamma has welcomed the party to her new home, after it set out with the wings, and told Ivan why she kept from him that she is his sister (scContigoReturnToNewHome).

Referenced by ContigoShopsReunionCues and scContigoReturnToNewHome().

Definition at line 39 of file contigo.c.

FLAG_WHOLE_VILLAGE_IN_VIEW

#define FLAG_WHOLE_VILLAGE_IN_VIEW FLAG_SCENE_TEMP(0x00)

The village's temp flag: the camera follows the leader east past the village gate as far as the weed patch, rather than stopping at the gate (scContigoWidenCameraBounds).

Referenced by scContigoInitVillage(), scContigoNarrowCameraBounds() and scContigoWidenCameraBounds().

Definition at line 44 of file contigo.c.

REUNION_HAMMA_PORTRAIT_Y

#define REUNION_HAMMA_PORTRAIT_Y JAPANESE_OR(12, 10)

The tile row of Hamma's portrait as she and Isaac speak at once in the reunion (scContigoTheReunion): two rows higher from the first patch on.

Referenced by scContigoTheReunion().

Definition at line 109 of file contigo.c.

COIN_WON_MESSAGE

#define COIN_WON_MESSAGE

What the dice and wheels attendants say as the party comes back from a game (scContigoInitLuckyDice); the Spanish text numbers these lines differently.

Referenced by scContigoReportCoinChange().

Definition at line 113 of file contigo.c.

COIN_LOST_MESSAGE

#define COIN_LOST_MESSAGE

Referenced by scContigoReportCoinChange().

Definition at line 116 of file contigo.c.

READ_SIGN_MESSAGE

#define READ_SIGN_MESSAGE

Referenced by scContigoInitLuckyDice().

Definition at line 119 of file contigo.c.

CONGRATULATIONS_MESSAGE

#define CONGRATULATIONS_MESSAGE

Referenced by scContigoInitLuckyDice().

Definition at line 122 of file contigo.c.

FIRST_PRIZE_MESSAGE

#define FIRST_PRIZE_MESSAGE

Referenced by scContigoInitLuckyDice().

Definition at line 125 of file contigo.c.

NEXT_PRIZE_MESSAGE

#define NEXT_PRIZE_MESSAGE

Referenced by scContigoInitLuckyDice().

Definition at line 128 of file contigo.c.

COME_AGAIN_MESSAGE

#define COME_AGAIN_MESSAGE ((Sint32)MsgContigoComeAgain)

Referenced by scContigoInitLuckyDice().

Definition at line 131 of file contigo.c.

FLAG_LEFT_FOR_A_GAME

#define FLAG_LEFT_FOR_A_GAME 0x9e5

Set as the party leaves the dice hall for one of its games, so that the hall greets it on its way back by the game's entrance.

Referenced by scContigoInitLuckyDice(), scContigoOfferLuckyDice(), scContigoOfferLuckyWheels() and scContigoOfferSuperLuckyDice().

Definition at line 135 of file contigo.c.

EFFECT_SET_MODE

#define EFFECT_SET_MODE fdActorSelectAnimation

Referenced by EFFECT_SPAWN.

Definition at line 422 of file contigo.c.

EFFECT_SET_SCRIPT

#define EFFECT_SET_SCRIPT fdActorStartScript

Referenced by EFFECT_SPAWN.

Definition at line 423 of file contigo.c.

TELEPORT_CIRCLE_FIRST_ENTRY

#define TELEPORT_CIRCLE_FIRST_ENTRY 89

Definition at line 3254 of file contigo.c.

Enumerations in detail

CONTIGO_METATILE_BEHAVIOR

enum CONTIGO_METATILE_BEHAVIOR

The map metatiles the village's, the geoglyph's and the houses' cue rows answer. A door's metatile takes the number of the exit it leaves by, so those rows use the exit's own name.

EnumeratorValueDescription
METATILE_BEHAVIOR_GEOGLYPH_WEST_EDGE12The geoglyph's west edge, where the path from the village's east edge comes in.
METATILE_BEHAVIOR_SANCTUM_WEST_DOOR13The doors at the head of the Sanctum's west, middle and east steps.
METATILE_BEHAVIOR_SANCTUM_MIDDLE_DOOR14
METATILE_BEHAVIOR_SANCTUM_EAST_DOOR15
METATILE_BEHAVIOR_LOCKED_DOOR19A door shut while the villagers are away with the wings (scContigoLockDoors).
METATILE_BEHAVIOR_VIEW_WEST_OF_GATE20Across the three ways
METATILE_BEHAVIOR_VIEW_EAST_OF_GATE21from the middle of the village down to its south part: the north line keeps the view west of the gate, the south one lets it follow the leader east.
METATILE_BEHAVIOR_INSIDE_HAMMAS_DOOR20Just inside the door of Hamma's new home.
METATILE_BEHAVIOR_CARVED_WALL22The Sanctum's carved wall beside the translation sign.
METATILE_BEHAVIOR_LUCKY_WHEELS_SIGN24The signs outside the three game tents.
METATILE_BEHAVIOR_SUPER_LUCKY_DICE_SIGN25
METATILE_BEHAVIOR_LUCKY_DICE_SIGN26
METATILE_BEHAVIOR_TELEPORT_CIRCLE30
METATILE_BEHAVIOR_WEED_PATCH_GAP32The open gap in the middle of the weed patch, where Salt hides.
METATILE_BEHAVIOR_WEEDS_WEST_OF_ITEM_SHOP39The clumps of weeds about the village, and the five rows of the big patch east of the gate, from north to south.
METATILE_BEHAVIOR_WEEDS_BEHIND_INN
METATILE_BEHAVIOR_WEEDS_OVER_BRAMBLE_SEED
METATILE_BEHAVIOR_WEEDS_WEST_OF_WEAPON_SHOP
METATILE_BEHAVIOR_WEEDS_BY_GATE
METATILE_BEHAVIOR_WEEDS_BELOW_LUCKY_WHEELS
METATILE_BEHAVIOR_WEEDS_ON_CLIFF_WEST
METATILE_BEHAVIOR_WEEDS_ON_CLIFF_EAST
METATILE_BEHAVIOR_WEED_PATCH_TOP_ROW
METATILE_BEHAVIOR_WEED_PATCH_SECOND_ROW
METATILE_BEHAVIOR_WEED_PATCH_MIDDLE_ROW
METATILE_BEHAVIOR_WEED_PATCH_FOURTH_ROW
METATILE_BEHAVIOR_WEED_PATCH_BOTTOM_ROW
METATILE_BEHAVIOR_BEAN_SOUP200The pots and ovens in the houses: the bean soup, the corn bread and the cookies.
METATILE_BEHAVIOR_CORN_BREAD
METATILE_BEHAVIOR_COOKIES

Definition at line 49 of file contigo.c.

CONTIGO_DICE_HALL_ENTRANCE

enum CONTIGO_DICE_HALL_ENTRANCE

The dice hall's ways back from its games.

EnumeratorValueDescription
ENTRANCE_FROM_SUPER_LUCKY_DICE18
ENTRANCE_FROM_LUCKY_DICE
ENTRANCE_FROM_LUCKY_WHEELS

Definition at line 138 of file contigo.c.

CONTIGO_VILLAGE_ACTOR_ID

enum CONTIGO_VILLAGE_ACTOR_ID

The village's people and Djinn (ContigoVillagePlacements).

EnumeratorValueDescription
ACTOR_YOUNG_MAN_ON_THE_WIND_LEGENDACTOR_FIRST_PLACED"The Anemos blood in our veins often brings about strange..."
ACTOR_WOMAN_FORESEEING_THE_BEACON"The beacon within Jupiter Lighthouse will soon be lit. I know this because of a strange premonition I had three years ago."
ACTOR_MAN_ON_THE_FLYING_SHIP"It must be so exciting to travel around the world in a flying ship."
ACTOR_WOMAN_ON_THE_ANEMOS"The people of Anemos possessed power over the wind."
ACTOR_OLD_MAN_ON_THE_RISEN_CITY"If a ship can rise up from the sea, why can't a city rise up from the ground?"
ACTOR_OLD_WOMAN_ON_THE_GEOGLYPHS"The Anemos geoglyphs show a boat with wings..."
ACTOR_BOY_DOUBTING_THE_LEGENDSThe two children walking round the
ACTOR_GIRL_ON_THE_SHIPmiddle of the village: the boy, "Cities flying up into the sky? I don't buy that for a second!" (scContigoTalkToDoubtingBoy), and the girl, "It wasn't what I expected, but seeing the ship take off was still amazing." (scContigoTalkAboutTheShip)
ACTOR_SALTThe Djinn Salt (Venus) and Shine
ACTOR_SHINE(Mars).

Definition at line 146 of file contigo.c.

CONTIGO_SHOPS_ACTOR_ID

enum CONTIGO_SHOPS_ACTOR_ID

The shops and inn before the reunion (ContigoShopsPlacementsBeforeReunion).

EnumeratorValueDescription
ACTOR_MAN_ON_IVANS_RETURNACTOR_FIRST_PLACED"I guess the lighthouse was lit because Ivan and Hamma finally returned to Contigo."
ACTOR_WOMAN_ON_IVANS_MOTHER"Ivan doesn't remember his mother..."
ACTOR_BOY_WHO_WOULD_FIGHT_IVAN"From the look on Ivan's..."; his thought: "Someday I'm gonna fight Ivan..."
ACTOR_OLD_MAN_ON_HESPERIA"Long ago, the people of Hesperia attacked Atteka."
ACTOR_OLD_WOMAN_FEELING_THE_COLD"Winter just ended, but it keeps getting colder. What's going on?"
ACTOR_ITEM_MERCHANTThe woman behind the item shop's counter (scContigoTalkToItemMerchant).
ACTOR_YOUNG_MAN_ON_THE_SIBLINGS"Soon, the siblings with the power of the Anemos will return."
ACTOR_WOMAN_ON_THE_ANEMOS_POWER"The power of the Anemos is all but gone in Contigo."
ACTOR_BABYS_BROTHERThe baby's brother: "I don't have any powers like the Anemos did, but my sister, Ahri, is different."
ACTOR_BABYThe baby whose furrowed brow brings the wind (scContigoBabyThinks).
ACTOR_WEAPON_MERCHANTThe two men behind the counter of swords and shields: the weapon merchant, and the armor merchant, "Mining materials in the ruins is dangerous work, so my armor is selling well."
ACTOR_ARMOR_MERCHANT
ACTOR_INNKEEPER
ACTOR_INN_WORKER"All the work on the wings means that our inn is always full!"
ACTOR_WOMAN_MAKING_THE_BEDS"Gotta make all the beds before everyone returns from Anemos Sanctum..."
ACTOR_COOK"I must be the greatest chef in the world!"
ACTOR_WORN_OUT_WORKERThe workers on the wings, resting at the inn: "I worked myself half to death yesterday."
ACTOR_WORKER_ON_THE_PROPHECIES"The prophecies of the Anemos tell that someday soon..."
ACTOR_OLD_MAN_TOO_OLD_TO_HELP"I'm afraid I'm too old to help in the construction..."
ACTOR_OLD_WOMAN_AWAITING_THE_MIRACLE"When is that miracle of the Anemos gonna hurry up..."
ACTOR_HEALERThe robed man behind the Sanctum's counter (scContigoTalkToHealer).

Definition at line 179 of file contigo.c.

CONTIGO_REUNION_ACTOR_ID

enum CONTIGO_REUNION_ACTOR_ID

Hamma and Kraden at the reunion and after it (ContigoShopsPlacements, ContigoShopsPlacementsReunion).

EnumeratorValueDescription
ACTOR_HAMMAACTOR_FIRST_PLACED
ACTOR_KRADEN

Definition at line 236 of file contigo.c.

CONTIGO_LUCKY_DICE_ACTOR_ID

enum CONTIGO_LUCKY_DICE_ACTOR_ID

The dice and wheels hall (ContigoLuckyDicePlacements).

EnumeratorValueDescription
ACTOR_SUPER_LUCKY_DICE_ATTENDANTACTOR_FIRST_PLACEDA young man with fair hair (SPRITE_YOUNG_MAN_WITH_FAIR_HAIR), who runs Super Lucky Dice (scContigoOfferSuperLuckyDice).
ACTOR_SUPER_LUCKY_DICE_RULES_ATTENDANTBeside him, in his sprite, pointing the party to the rules: "If you want to learn about the rules to Super Lucky Dice, just check out the sign."
ACTOR_MAN_WARY_OF_UNLUCKY_PLAYERSThe players: "This kid's got unlucky written all over his face" (his thought); "If you lose the hi-lo game, you don't win anything..."; "I almost always get at least one pair..."
ACTOR_OLD_MAN_ON_THE_HI_LO_GAME
ACTOR_WOMAN_WHO_LOSES_AT_HI_LO
ACTOR_SUPER_LUCKY_DICE_RULES_SIGNThe sign of Super Lucky Dice's rules (scContigoReadSuperLuckyDiceRules).
ACTOR_LUCKY_DICE_ATTENDANTA young man with fair hair, in other colours, who runs Lucky Dice (scContigoOfferLuckyDice).
ACTOR_LUCKY_DICE_RULES_ATTENDANTBeside him, in his sprite, pointing the party to the rules: "Read the sign if ya don't know the rules."
ACTOR_LUCKY_DICE_RULES_SIGNLucky Dice's two signs: how to play
ACTOR_LUCKY_DICE_PAIRS_SIGN(scContigoReadLuckyDiceRules), and what pairs, triples and four of a kind win (scContigoReadLuckyDicePairs).
ACTOR_LUCKY_WHEELS_ATTENDANTA young woman in green (SPRITE_YOUNG_WOMAN_IN_GREEN), who runs Lucky Wheels (scContigoTalkToWheelsAttendant).
ACTOR_LUCKY_WHEELS_RULES_SIGNLucky Wheels' signs: its rules
ACTOR_LUCKY_WHEELS_PRIZE_SIGN(scContigoReadLuckyWheelsRules), and its prizes (scContigoReadLuckyWheelsPrizes).

Definition at line 243 of file contigo.c.

CONTIGO_GEOGLYPH_ACTOR_ID

enum CONTIGO_GEOGLYPH_ACTOR_ID

The geoglyph, where the Wings of Anemos are built (ContigoGeoglyphPlacements).

EnumeratorValueDescription
ACTOR_VISITOR_FROM_AFARACTOR_FIRST_PLACED"I've come a long way to see the flying boat."
ACTOR_WOMAN_ON_THE_WINGS"The wings are almost done."
ACTOR_WING_WORKER_AThe four workers building the wings: "Which part goes where? Does this metal feather connect to that wooden post?"
ACTOR_WING_WORKER_B
ACTOR_WING_WORKER_C
ACTOR_WING_WORKER_D
ACTOR_MAN_ON_THE_GEOGLYPHThe four men in long robes by the Sanctum's wall: "Have you taken a good look at the Anemos geoglyph?"; "I know that devoted pilgrims will appreciate having this translation."; "I want to get a good look at the inside of the sanctum, but I can't get this door open."; "The merchant Hammet took the gold in this room with him when he left Contigo."
ACTOR_MAN_WHO_TRANSLATED_THE_WALL
ACTOR_MAN_LOCKED_OUT_OF_THE_SANCTUM
ACTOR_MAN_ON_HAMMET
ACTOR_SIGNThe sign with a translation of the characters carved into the wall.
ACTOR_WING_FRAME_AThe wings' parts lying about: three wooden frames, five metal feathers and seven loose pieces.
ACTOR_WING_FRAME_B
ACTOR_WING_FRAME_C
ACTOR_METAL_FEATHER_A
ACTOR_METAL_FEATHER_B
ACTOR_METAL_FEATHER_C
ACTOR_METAL_FEATHER_D
ACTOR_METAL_FEATHER_E
ACTOR_LOOSE_PART_A
ACTOR_LOOSE_PART_B
ACTOR_LOOSE_PART_C
ACTOR_LOOSE_PART_D
ACTOR_LOOSE_PART_E
ACTOR_LOOSE_PART_F
ACTOR_LOOSE_PART_G

Definition at line 286 of file contigo.c.

anonymous enum

enum { ACTOR_CORN, ACTOR_BRAMBLE_SEED }

The village's treasure actors after the Power Bread's (SceneItems): the Corn, and the Bramble Seed under the weeds north of the Teleport circle.

EnumeratorValueDescription
ACTOR_CORNFIELD_TREASURE_ACTOR + 1
ACTOR_BRAMBLE_SEEDFIELD_TREASURE_ACTOR + 2

Definition at line 345 of file contigo.c.

anonymous enum

enum { WHEELS_PRIZE_ICONS, WHEELS_ICON_MOON, WHEELS_PRIZES_PER_ICON }

The Lucky Wheels' icons that win prizes, shirts, boots, rings, then the stars' and hearts' items, three prizes to each (ContigoWheelsPrizes); the Moon after them is wild, any of the five at random.

EnumeratorValueDescription
WHEELS_PRIZE_ICONS5
WHEELS_ICON_MOONWHEELS_PRIZE_ICONS
WHEELS_PRIZES_PER_ICON3

Definition at line 371 of file contigo.c.

anonymous enum

enum { CHILD_GIRL, CHILD_BOY, CHILD_WALKING, CHILD_TALKED_TO }

The two children walking round the middle of the village keep, in their scene counter, which of them each is, so that each looks out for the other, and in their scene byte whether one is being talked to.

EnumeratorValueDescription
CHILD_GIRL0
CHILD_BOY1
CHILD_WALKING0
CHILD_TALKED_TO1

Definition at line 453 of file contigo.c.

anonymous enum

enum { SHOP_CONTIGO_WEAPONS, SHOP_CONTIGO_ARMOR, SHOP_CONTIGO_ITEMS }

Contigo's shops, as mnShopRun numbers them.

EnumeratorValueDescription
SHOP_CONTIGO_WEAPONS26
SHOP_CONTIGO_ARMOR27
SHOP_CONTIGO_ITEMS28

Definition at line 809 of file contigo.c.

anonymous enum

enum { INN_ID_CONTIGO }

Contigo's inn, as mnInnCheckIn numbers the inns.

EnumeratorValueDescription
INN_ID_CONTIGO12

Definition at line 817 of file contigo.c.

CONTIGO_RAISED_CUE

enum CONTIGO_RAISED_CUE

The cue scContigoScoopForSalt raises once Salt has popped up, which runs scContigoSaltJoinsParty.

EnumeratorValueDescription
RAISED_SALT_FOUND200

Definition at line 1396 of file contigo.c.

anonymous enum

enum { LUCKY_DICE_COINS_PER_LEVEL, LUCKY_DICE_MEDIUM_WIN, LUCKY_DICE_LARGE_WIN }

The dice games cost 10 coins for each level of the party's average level; a win of 5,000 coins or more, or of 20,000, is greeted with a bigger jingle.

EnumeratorValueDescription
LUCKY_DICE_COINS_PER_LEVEL10
LUCKY_DICE_MEDIUM_WIN5000
LUCKY_DICE_LARGE_WIN20000

Definition at line 1691 of file contigo.c.

anonymous enum

enum { SPARKLE_RISING, SPARKLE_ENDING }

The sparkle's scene counter: rings still starting, or ending once both pairs have risen.

EnumeratorValueDescription
SPARKLE_RISING0
SPARKLE_ENDING1

Definition at line 3108 of file contigo.c.

Functions in detail

scContigoOfferLuckyWheels

void scContigoOfferLuckyWheels(Sint32 returning)

The Lucky Wheels attendant asks whether Felix will use his game tickets, warns when the party has little room for prizes, and sends it to the slot machine; returning is nonzero as the party comes back from a game, when she asks only whether to keep playing.

References fdActorTableSnapshot(), fdMessageShowAtActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptLeaveFor(), fdScriptSetAfterBattleDestination(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), gmPartyInventoryCountFreeSlots(), gmPartyInventoryCountItem(), MainRoutineStateWork, mnMessageArgumentPush(), Sint32, syGameFlagSet() and sySynch().

Referenced by scContigoInitLuckyDice() and scContigoTalkToWheelsAttendant().

Definition at lines 333 and 1574 of file contigo.c.

scContigoOpenSanctumDoor

void scContigoOpenSanctumDoor(Sint32 srcX, Sint32 srcY, Sint32 doorX, Sint32 doorY)

A thump, and the door at the head of the Sanctum's steps shows open; Felix walks slowly in through it and the screen fades out.

References ContigoEnterSanctumDoorScript, fdActorSetMovementTypeById(), fdMapGridCopyMetatileTilesIndicesRect(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, Sint32, sySoundPlay() and sySynch().

Referenced by scContigoEnterSanctumEastDoor(), scContigoEnterSanctumMiddleDoor() and scContigoEnterSanctumWestDoor().

Definition at lines 334 and 1817 of file contigo.c.

scContigoInitVillage

void scContigoInitVillage(void)

Sets up the village: the two children walking about its middle stop when faced (scContigoPauseWhenFaced); once Jupiter Lighthouse's beacon is lit, until the ship has its wings, the girl and the old woman are gone and four doors are locked; Shine waits where it landed until caught. Arriving by the gate, or out of the two houses south of the Teleport circle or the Lucky Wheels tent, the view follows Felix east past the gate to the weed patch; then the Teleport circle's colours are set.

References fdActorGetById(), fdActorSetSpriteColor(), fdActorSetSpriteFlags(), fdActorStop(), fdCameraFollowActor(), fdMapGridCenterOnFollowedPoint(), fdSetCameraBounds(), MainRoutineStateWork, scContigoKeepPriorityWithLeader(), scContigoLockDoors(), scContigoPauseWhenFaced(), scPaletteSetColorsFade(), syGameFlagGet(), syGameFlagSet(), sySetEvent(), sySynch(), TeleportCircleColors, TeleportCirclePaletteSlots, TeleportCircleShimmerColors and TeleportCircleShimmerSlots.

Referenced by scInit().

Definition at lines 380 and 2831 of file contigo.c.

scContigoInitGeoglyph

void scContigoInitGeoglyph(void)

Sets up the geoglyph: until Jupiter Lighthouse's beacon is lit the wings' parts lie on it among the workers; after, they and the workers are gone, and the men in long robes too until the ship has its wings.

References fdActorGetById(), fdMapGridCopyMetatileAttributes(), scContigoSetUpWingParts(), scContigoShrinkActor(), syGameFlagGet() and sySynch().

Referenced by scInit().

Definition at lines 381 and 2895 of file contigo.c.

scContigoInitShops

void scContigoInitShops(void)

Sets up the houses: walking into the house at the top of the hill once the beacon is lit starts the reunion; in the others the baby lies in its cradle, the old man on Hesperia shivers once the ship has its wings, and the workers resting at the inn are gone after the reunion.

References ContigoShiverScript, fdActorGetById(), fdActorSetAnimationById(), fdActorSetMovementTypeById(), fdActorSetSpriteFlags(), MainRoutineStateWork, scContigoTheReunion(), syGameFlagClear() and syGameFlagGet().

Referenced by scInit().

Definition at lines 382 and 2946 of file contigo.c.

scContigoInitLuckyDice

void scContigoInitLuckyDice(void)

Sets up the dice hall: its signs drawn small and its attendants' colours, and on the party's return from a game the coins won or lost, or the prizes.

References fdActorFaceDirectionAndWait(), fdActorGetById(), fdActorSetSpriteColor(), fdItemDisplayShowItem(), fdPartyInventoryGiveItem(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, mnMessageArgumentPush(), scContigoOfferLuckyWheels(), scContigoReportCoinChange(), scContigoSelectLuckyWheelsPrize(), scContigoShrinkActor(), Sint32 and syGameFlagClear().

Referenced by scInit().

Definition at lines 383 and 3015 of file contigo.c.

scContigoSaltJoinsParty

void scContigoSaltJoinsParty(void)

Salt, popped up out of the gap in the weed patch east of the village gate, joins the party: "Felix found the Venus Djinni Salt!"

References fdDjinnJoinParty().

Referenced by ContigoVillageCues.

Definition at line 431 of file contigo.c.

scContigoFreedDjinniJoinsParty

void scContigoFreedDjinniJoinsParty(void)

Talking to Shine where it landed, beside the tree stump behind the inn, once Force has freed it: the Mars Djinni joins the party.

References fdDjinnJoinParty() and syGameFlagSet().

Referenced by ContigoVillageCues.

Definition at line 439 of file contigo.c.

scContigoPauseWhenFaced

Sint32 scContigoPauseWhenFaced(ACTOR *self)

The update of the two children walking round the middle of the village: each stands while it is talked to, while Mind Read shows its thoughts, or while it faces the other child or the leader close by, and walks on otherwise or once the leader is right by it.

References fdActorGetById(), fdActorGetSpritePriority(), fdActorSelectAnimation(), fdActorSetSpritePriorityDirect(), MainRoutineStateWork, scActorIsFacingNear(), scPosDistance() and Sint32.

Referenced by scContigoInitVillage().

Definition at line 465 of file contigo.c.

scContigoShowWorkerPuzzled

Sint32 scContigoShowWorkerPuzzled(void)

A question mark over the worker wondering which part goes where, as he looks from one part of the wings to another (ContigoPuzzledWorkerScript).

References scFieldActorShowEmote() and Sint32.

Referenced by ContigoPuzzledWorkerScript.

Definition at line 512 of file contigo.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SceneEntrances.

Definition at line 519 of file contigo.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

Definition at line 524 of file contigo.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 529 of file contigo.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References ContigoGeoglyphPlacements, ContigoLuckyDicePlacements, ContigoPlacements, ContigoShopsPlacements, ContigoShopsPlacementsBeforeReunion, ContigoShopsPlacementsReunion, ContigoVillagePlacements, MainRoutineStateWork and syGameFlagGet().

Definition at line 536 of file contigo.c.

scGetCues

const CUE *scGetCues(void)

References ContigoCues, ContigoGeoglyphCues, ContigoLuckyDiceCues, ContigoShopsCues, ContigoShopsReunionCues, ContigoVillageCues and MainRoutineStateWork.

Definition at line 565 of file contigo.c.

scContigoExamineWall

void scContigoExamineWall(void)

Felix examines the Sanctum's front wall between its west and middle steps, behind the translation sign (metatiles (45, 18) and (46, 18)): "There are characters carved into it", which he cannot make sense of.

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), mnFieldMessageShow() and Sint32.

Referenced by ContigoGeoglyphCues.

Definition at line 587 of file contigo.c.

scContigoReadSign

void scContigoReadSign(void)

Felix reads the small sign in front of the Sanctum's carved wall: "The characters from the wall are translated" on it.

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), mnFieldMessageShow() and Sint32.

Referenced by ContigoGeoglyphCues.

Definition at line 599 of file contigo.c.

scContigoReadLuckyWheelsSign

void scContigoReadLuckyWheelsSign(void)

Felix reads the sign outside the Lucky Wheels tent, left of the inn (metatile (4, 55)): "Turn the slot and get a prize! The lottery slots are over here."

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), mnFieldMessageShow() and Sint32.

Referenced by ContigoVillageCues.

Definition at line 611 of file contigo.c.

scContigoReadSuperLuckyDiceSign

void scContigoReadSuperLuckyDiceSign(void)

Felix reads the sign west of the two tents north of the Teleport circle (metatile (11, 47)), which points to Super Lucky Dice in the west tent: "Drop some cash and double up! The hi-lo dice are over here!"

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), mnFieldMessageShow() and Sint32.

Referenced by ContigoVillageCues.

Definition at line 623 of file contigo.c.

scContigoReadLuckyDiceSign

void scContigoReadLuckyDiceSign(void)

Felix reads the sign east of the two tents north of the Teleport circle (metatile (19, 47)), which points to Lucky Dice in the east tent: "You never know what the dice will do next! Come and give our dice a toss!"

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), mnFieldMessageShow() and Sint32.

Referenced by ContigoVillageCues.

Definition at line 636 of file contigo.c.

scContigoAskAboutWindLegend

void scContigoAskAboutWindLegend(void)

Until Jupiter Lighthouse is lit, the young man a few steps inside the village gate asks Felix whether he knows the legend of the people who could control the wind and air, and answers his yes or no.

References fdScriptAskYesNoAndShowResponse(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptStart() and Sint32.

Referenced by ContigoVillageCues.

Definition at line 651 of file contigo.c.

scContigoWhirlLeaf

void scContigoWhirlLeaf(ACTOR *effect)

The update of a leaf in the baby's whirlwind: it circles on a random radius, now and then pausing to spin faster, and is released after 101 ticks.

References fdActorRelease(), Sint32, syCos(), syRandom() and sySin().

Referenced by scContigoRaiseLeaves().

Definition at line 663 of file contigo.c.

scContigoRaiseLeaves

void scContigoRaiseLeaves(void)

An event that spawns a leaf in the baby's whirlwind every eighth tick, flung up to fall back as it circles.

References fdActorSetSpriteFlags(), fdActorSpawn(), scContigoWhirlLeaf(), Sint32, syRandom() and TickCount.

Referenced by scContigoBabyThinks().

Definition at line 694 of file contigo.c.

scContigoBabyThinks

void scContigoBabyThinks(void)

Talking to the baby in its cradle, in the house north of the weapon shop: "The baby's forehead is furrowed, like it's thinking." The room turns dark blue, a whirlwind grows over the cradle and leaves whirl up in it, then the light comes back, the baby babbles "Babu bawaba bibaw.", and its brother grumbles that the shabby old house is drafty.

References fdActorFaceDirection(), fdActorFaceDirectionAndRefreshById(), fdActorFaceDirectionAndWait(), fdActorGetById(), fdActorRelease(), fdActorRunRepeatedMotion(), fdActorSelectAnimation(), fdActorSetAnimationAndWait(), fdActorSetAnimationById(), fdActorSetSpriteFlags(), fdBattleEffectEndArcEffect(), fdBattleEffectSetObjectUpdateMode(), fdBattleEffectStartArcEffect(), fdBattleEffectWaitForArcGroups(), fdPaletteFadeSetSource(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), fdScriptWait(), mnFieldMessageShow(), scContigoRaiseLeaves(), scFieldActorShowEmote(), Sint32, syCloseEvent(), syGameFlagGet(), syImportActorCreate(), sySetEvent() and sySynch().

Referenced by ContigoShopsCues.

Definition at line 720 of file contigo.c.

scContigoTalkToItemMerchant

void scContigoTalkToItemMerchant(void)

Talking to the item merchant across her counter, in the west of the two houses south of the Teleport circle, opens the item shop; from any other side she talks of the wings.

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), mnShopRun(), scLeaderIsFacingNorth(), Sint32 and syGameFlagGet().

Referenced by ContigoShopsCues.

Definition at line 825 of file contigo.c.

scContigoTalkToWeaponMerchant

void scContigoTalkToWeaponMerchant(void)

Talking to the weapon merchant, the west of the two men behind the counter in the shop east of the Teleport circle, across it opens his shop; from any other side he talks of Atteka's traditions.

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), mnShopRun(), scLeaderIsFacingNorth(), Sint32 and syGameFlagGet().

Referenced by ContigoShopsCues.

Definition at line 851 of file contigo.c.

scContigoTalkToArmorMerchant

void scContigoTalkToArmorMerchant(void)

Talking to the armor merchant, the east of the two men behind the counter in the shop east of the Teleport circle, across it opens his shop; from any other side he talks of the mining in the ruins.

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), mnShopRun(), scLeaderIsFacingNorth(), Sint32 and syGameFlagGet().

Referenced by ContigoShopsCues.

Definition at line 876 of file contigo.c.

scContigoTalkToInnkeeper

void scContigoTalkToInnkeeper(void)

Talking to the innkeeper across the counter of the inn, right of the Lucky Wheels tent, offers a night's rest; from any other side the innkeeper talks of the visitors and the wings.

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), mnInnCheckIn(), scLeaderIsFacingNorth(), Sint32 and syGameFlagGet().

Referenced by ContigoShopsCues.

Definition at line 902 of file contigo.c.

scContigoTalkToHealer

void scContigoTalkToHealer(void)

Talking to the healer across his counter, at the head of the red carpet in the Sanctum north-east of the Teleport circle, offers the Sanctum's healing; from any other side he talks of the miracle of the wings.

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), mnSanctumRun(), scLeaderIsFacingNorth(), Sint32 and syGameFlagGet().

Referenced by ContigoShopsCues.

Definition at line 932 of file contigo.c.

scContigoAskAboutSuperDice

void scContigoAskAboutSuperDice(void)

In the Super Lucky Dice tent, one of the players asks Felix whether he has ever played Superdice before, and answers his yes or no.

References fdScriptAskYesNoAndShowResponse(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptStart() and Sint32.

Referenced by ContigoLuckyDiceCues.

Definition at line 961 of file contigo.c.

scContigoReadSuperLuckyDiceRules

void scContigoReadSuperLuckyDiceRules(void)

Felix reads the rules sign in the Super Lucky Dice tent: four dice thrown at once, what matching pairs and fours win, and the hi-lo game after a win.

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), mnFieldMessageShow() and Sint32.

Referenced by ContigoLuckyDiceCues.

Definition at line 973 of file contigo.c.

scContigoReadLuckyDiceRules

void scContigoReadLuckyDiceRules(void)

Felix reads the first of the two signs in the Lucky Dice tent: throw the dice on the table and try to get the same numbers.

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), mnFieldMessageShow() and Sint32.

Referenced by ContigoLuckyDiceCues.

Definition at line 1006 of file contigo.c.

scContigoReadLuckyDicePairs

void scContigoReadLuckyDicePairs(void)

Felix reads the second sign in the Lucky Dice tent: what pairs, triples and four of a kind win.

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), mnFieldMessageShow() and Sint32.

Referenced by ContigoLuckyDiceCues.

Definition at line 1026 of file contigo.c.

scContigoTalkToWheelsAttendant

void scContigoTalkToWheelsAttendant(void)

Talking to the young woman by the slot machine in the Lucky Wheels tent offers a game for game tickets (scContigoOfferLuckyWheels).

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart() and scContigoOfferLuckyWheels().

Referenced by ContigoLuckyDiceCues.

Definition at line 1050 of file contigo.c.

scContigoReadLuckyWheelsRules

void scContigoReadLuckyWheelsRules(void)

Felix reads the rules sign in the Lucky Wheels tent: five pulls of the lever, stars to hold a wheel, and more lines for more tickets.

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), mnFieldMessageShow() and Sint32.

Referenced by ContigoLuckyDiceCues.

Definition at line 1060 of file contigo.c.

scContigoReadLuckyWheelsPrizes

void scContigoReadLuckyWheelsPrizes(void)

Felix reads the prizes sign in the Lucky Wheels tent: shirts, rings and boots win their kind, stars and hearts win items, and the Moon is wild.

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), mnFieldMessageShow() and Sint32.

Referenced by ContigoLuckyDiceCues.

Definition at line 1085 of file contigo.c.

scContigoAskAboutGeoglyph

void scContigoAskAboutGeoglyph(void)

On Felix's first visit, the man in a long robe between the Sanctum's middle and east steps asks whether he has taken a good look at the Anemos geoglyph, and answers his yes or no.

References fdScriptAskYesNoAndShowResponse(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptStart() and Sint32.

Referenced by ContigoGeoglyphCues.

Definition at line 1111 of file contigo.c.

scContigoTalkToDoubtingBoy

void scContigoTalkToDoubtingBoy(void)

Talking to the boy walking about the middle of the village with a girl: he talks of the geoglyphs and of the crater where the city of the Anemos is said to have stood, and Mind Read hears that he will not believe it flew. He turns to Felix to talk, but not for Mind Read, and turns back after.

References fdActorFaceActorById(), fdActorGetById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MainRoutineStateWork, Sint32 and syGameFlagGet().

Referenced by ContigoVillageCues.

Definition at line 1125 of file contigo.c.

scContigoTalkAboutTheShip

void scContigoTalkAboutTheShip(void)

Talking to the girl walking about the middle of the village with the boy: she talks of the wings the village built and, once they are gone, of seeing the ship take off; Mind Read hears her thoughts on the same. She turns to Felix to talk, but not for Mind Read, and turns back after.

References fdActorFaceActorById(), fdActorGetById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MainRoutineStateWork, Sint32 and syGameFlagGet().

Referenced by ContigoVillageCues.

Definition at line 1177 of file contigo.c.

scContigoTeleportOut

void scContigoTeleportOut(void)

Teleport cast on the carved stone circle in the middle of the village (metatiles (16, 50) and (17, 50)): the village turns grey, the circle shimmers and sparks of coloured light rise, and the party arrives on a circle like it in the Anemos Inner Sanctum.

References fdScriptSetDestination(), fdScriptWait(), fdTeleportPlaySparks(), MainRoutineStateWork, scTeleportStartShimmer() and scTeleportStopShimmer().

Referenced by ContigoVillageCues.

Definition at line 1222 of file contigo.c.

scContigoScatterWeedsWestOfItemShop

void scContigoScatterWeedsWestOfItemShop(void)

Cyclone scatters the clump of weeds just west of the item shop, the west of the two houses south of the Teleport circle (metatile (8, 56)), leaving bare ground. Each clump's script copies bare ground from a metatile nearby over the clump's metatiles that Cyclone's whirl touched. Where the ground is raised, as here, a clump is drawn some rows north of the metatile it answers on.

References scFieldTileCopiesCopyTouchedMetatiles().

Referenced by ContigoVillageCues.

Definition at line 1240 of file contigo.c.

scContigoScatterWeedsBehindInn

void scContigoScatterWeedsBehindInn(void)

Cyclone scatters the clump of weeds behind the inn, beside the tree stump where Shine is stuck (metatiles (2, 45) and (3, 45)), leaving bare ground.

References scFieldTileCopiesCopyTouchedMetatiles().

Referenced by ContigoVillageCues.

Definition at line 1247 of file contigo.c.

scContigoCopyTouchedMetatiles

static __inline__ void scContigoCopyTouchedMetatiles(Sint32 srcX, Sint32 srcZ, Sint32 width, Sint32 height, Sint32 windowX, Sint32 windowZ, Sint32 layer)

The scene's own name for fdTileCopiesCopyTouchedMetatiles, which the Bramble Seed's clump calls.

References fdTileCopiesCopyTouchedMetatiles() and Sint32.

Referenced by scContigoScatterWeedsOverBrambleSeed().

Definition at line 1254 of file contigo.c.

scContigoScatterWeedsOverBrambleSeed

void scContigoScatterWeedsOverBrambleSeed(void)

Cyclone scatters the clump of weeds beside the east wall of the house at the top of the hill (metatile (17, 41)), and unless it was taken the Bramble Seed lies uncovered there. If Felix stands on that very spot, he hops a step north off it.

References fdActorGetById(), fdActorSetDestinationOffset(), fdActorWaitForMoveById(), fdEffectSetAttached(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, scContigoCopyTouchedMetatiles() and syGameFlagGet().

Referenced by ContigoVillageCues.

Definition at line 1270 of file contigo.c.

scContigoScatterWeedsWestOfWeaponShop

void scContigoScatterWeedsWestOfWeaponShop(void)

Cyclone scatters the clump of weeds against the west wall of the weapon and armor shop, east of the Teleport circle (metatiles (23, 49) and (23, 50)), leaving bare ground.

References scFieldTileCopiesCopyTouchedMetatiles().

Referenced by ContigoVillageCues.

Definition at line 1298 of file contigo.c.

scContigoScatterWeedsByGate

void scContigoScatterWeedsByGate(void)

Cyclone scatters the weeds just east of the village gate's east post (metatiles (29, 59) and (30, 58) to (30, 60)), leaving bare ground.

References scFieldTileCopiesCopyTouchedMetatiles().

Referenced by ContigoVillageCues.

Definition at line 1306 of file contigo.c.

scContigoScatterWeedsBelowLuckyWheels

void scContigoScatterWeedsBelowLuckyWheels(void)

Cyclone scatters the clump of weeds below the Lucky Wheels tent, at the edge of the slope (metatile (3, 58)), leaving bare ground.

References scFieldTileCopiesCopyTouchedMetatiles().

Referenced by ContigoVillageCues.

Definition at line 1313 of file contigo.c.

scContigoScatterWeedsOnCliffWest

void scContigoScatterWeedsOnCliffWest(void)

Cyclone scatters the western of the two clumps of weeds on top of the cliff south of the item shop (metatiles (7, 60) and (8, 60)), leaving bare ground.

References scFieldTileCopiesCopyTouchedMetatiles().

Referenced by ContigoVillageCues.

Definition at line 1320 of file contigo.c.

scContigoScatterWeedsOnCliffEast

void scContigoScatterWeedsOnCliffEast(void)

Cyclone scatters the eastern of the two clumps of weeds on top of the cliff south of the item shop (metatiles (10, 61) and (11, 61)), leaving bare ground.

References scFieldTileCopiesCopyTouchedMetatiles().

Referenced by ContigoVillageCues.

Definition at line 1328 of file contigo.c.

scContigoScatterWeedPatchTopRow

void scContigoScatterWeedPatchTopRow(void)

Cyclone scatters the top row of the big weed patch east of the village gate (metatiles (40, 57) to (42, 57)), leaving bare ground. The patch's five rows each have a script, and they and the weeds by the gate take their bare ground from a metatile between the gate and the patch.

References scFieldTileCopiesCopyTouchedMetatiles().

Referenced by ContigoVillageCues.

Definition at line 1337 of file contigo.c.

scContigoScatterWeedPatchSecondRow

void scContigoScatterWeedPatchSecondRow(void)

Cyclone scatters the second row from the top of the big weed patch east of the village gate (metatiles (39, 58) to (43, 58)), leaving bare ground.

References scFieldTileCopiesCopyTouchedMetatiles().

Referenced by ContigoVillageCues.

Definition at line 1344 of file contigo.c.

scContigoScatterWeedPatchMiddleRow

void scContigoScatterWeedPatchMiddleRow(void)

Cyclone scatters the middle row of the big weed patch east of the village gate, either side of the open gap where Salt hides (metatiles (39, 59), (40, 59), (42, 59) and (43, 59)), leaving bare ground.

References scFieldTileCopiesCopyTouchedMetatiles().

Referenced by ContigoVillageCues.

Definition at line 1352 of file contigo.c.

scContigoScatterWeedPatchFourthRow

void scContigoScatterWeedPatchFourthRow(void)

Cyclone scatters the second row from the bottom of the big weed patch east of the village gate (metatiles (39, 60) to (43, 60)), leaving bare ground.

References scFieldTileCopiesCopyTouchedMetatiles().

Referenced by ContigoVillageCues.

Definition at line 1359 of file contigo.c.

scContigoScatterWeedPatchBottomRow

void scContigoScatterWeedPatchBottomRow(void)

Cyclone scatters the bottom row of the big weed patch east of the village gate (metatiles (40, 61) to (42, 61)), leaving bare ground.

References scFieldTileCopiesCopyTouchedMetatiles().

Referenced by ContigoVillageCues.

Definition at line 1367 of file contigo.c.

scContigoWidenCameraBounds

void scContigoWidenCameraBounds(void)

Nothing visible happens when Felix walks south from the middle of the village into its south part, on one of the three ways in: west of the item shop, between it and the house beside it, or east of that house (metatiles (5, 55) to (8, 55), (14, 55) and (18, 57) to (20, 57)). From then on the view follows him east past the village gate to the big weed patch, where it stopped just past the gate before. FLAG_WHOLE_VILLAGE_IN_VIEW marks the wider view.

References fdSetCameraBounds() and syGameFlagSet().

Referenced by ContigoVillageCues.

Definition at line 1378 of file contigo.c.

scContigoNarrowCameraBounds

void scContigoNarrowCameraBounds(void)

Nothing visible happens when Felix walks back north from the village's south part into its middle, on one of the three ways (metatiles (4, 54) to (8, 54), (14, 54) and (18, 56) to (20, 56)); the view stops at the village gate again, and FLAG_WHOLE_VILLAGE_IN_VIEW is cleared.

References fdSetCameraBounds() and syGameFlagClear().

Referenced by ContigoVillageCues.

Definition at line 1388 of file contigo.c.

scContigoScoopForSalt

void scContigoScoopForSalt(void)

Scoop cast in the open gap in the middle of the big weed patch east of the village gate (metatile (41, 59)): until the party has Salt, the Venus Djinni pops up there, turns to Felix and joins the party.

References fdActorFaceActorById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, syGameFlagGet() and sySynch().

Referenced by ContigoVillageCues.

Definition at line 1404 of file contigo.c.

scContigoRevealMiddleDoor

void scContigoRevealMiddleDoor(void)

Felix casts Reveal anywhere at the geoglyph or the Sanctum's front: the carved wall at the head of the Sanctum's main steps shows as a dark open doorway, its middle door, and while Reveal lasts walking north into it (metatiles (48, 19) and (49, 19)) leads inside, on the way to the Dragon Skin's chest. The open door is the picture the unused scContigoEnterSanctumMiddleDoor would open it with; the doorway's exit metatiles are kept out of reach at the top of the map, (48, 1), and copied into place.

References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo() and fdMapGridCopyMetatileTilesIndicesRect().

Referenced by ContigoGeoglyphCues.

Definition at line 1428 of file contigo.c.

scContigoHideMiddleDoor

void scContigoHideMiddleDoor(void)

As Reveal fades in front of the Sanctum, its middle door shows shut again and walking into it leads nowhere.

References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo() and fdMapGridCopyMetatileTilesIndicesRect().

Referenced by ContigoGeoglyphCues.

Definition at line 1437 of file contigo.c.

scContigoForceFreesDjinni

void scContigoForceFreesDjinni(void)

Force cast on the tree stump behind the inn, where Shine is stuck: the ground shakes with a thump, a ring of dust bursts out of the stump, and Shine leaps out and lands just north-west of it, Felix hopping aside if it lands on him. Force comes only with the Orb of Force, carried over from The Broken Seal in a linked game.

References fdActorGetById(), fdActorJump(), fdActorMoveToAndWait(), fdActorSetSpriteColor(), fdActorSetSpriteFlags(), fdActorTurnToFaceEachOther(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, scFieldEffectSpawn(), Sint32, syCos(), syGameFlagSet(), sySin(), sySoundPlay() and sySynch().

Referenced by ContigoVillageCues.

Definition at line 1449 of file contigo.c.

scContigoLockDoors

void scContigoLockDoors(void)

Once Jupiter Lighthouse's beacon is lit, while the villagers are away transporting the wings: the doors of the item shop, the house beside it, the weapon and armor shop and the baby's house north of it show shut, and trying one says it is locked (scShowEntranceLocked).

References fdMapCopyMetatileAttributeRect(), fdMapGridCopyMetatilesTo() and fdMapGridCopyMetatileTilesIndicesRect().

Referenced by scContigoInitVillage().

Definition at line 1507 of file contigo.c.

scContigoPlaceWingPart

void scContigoPlaceWingPart(Sint32 id)

Lays a frame or feather of the wings flat on the ground, drawn behind.

References fdActorGetById(), fdActorSetSpritePriority() and Sint32.

Referenced by scContigoSetUpWingParts().

Definition at line 1520 of file contigo.c.

scContigoSetUpWingParts

void scContigoSetUpWingParts(void)

Lays out the wings' parts by the geoglyph: each frame and feather shows its own piece and lies flat, and the loose parts block the way.

References fdActorGetById(), fdActorSetAnimationById(), fdActorSetSpriteFlags() and scContigoPlaceWingPart().

Referenced by scContigoInitGeoglyph().

Definition at line 1533 of file contigo.c.

scContigoSelectLuckyWheelsPrize

Sint32 scContigoSelectLuckyWheelsPrize(Sint32 icon)

The prize for an icon matched on the Lucky Wheels: one of the icon's three, never the one it gave last; the Moon picks an icon at random, and a negative icon gives nothing.

References ContigoWheelsPrizes, MainRoutineStateWork and Sint32.

Referenced by scContigoInitLuckyDice().

Definition at line 1667 of file contigo.c.

scContigoOfferLuckyDice

void scContigoOfferLuckyDice(void)

Talking to the young man running the Lucky Dice tent offers a game, at 10 coins for each level of the party's average level: "Hey, buddy, wanna try yer luck at the dice?"

References fdActorTableSnapshot(), fdMessageShowAtActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptLeaveFor(), fdScriptSetAfterBattleDestination(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), gmPartyGetAverageLevel(), MainRoutineStateWork, mnMessageArgumentPush(), Sint32, syGameFlagSet() and sySynch().

Referenced by ContigoLuckyDiceCues.

Definition at line 1701 of file contigo.c.

scContigoOfferSuperLuckyDice

void scContigoOfferSuperLuckyDice(void)

Talking to the young man running the Super Lucky Dice tent offers a game at the same price as Lucky Dice, which his offer does not say: "Welcome, welcome, step right up! Care for a round of Super Lucky Dice?"

References fdActorTableSnapshot(), fdMessageShowAtActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptLeaveFor(), fdScriptSetAfterBattleDestination(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), gmPartyGetAverageLevel(), MainRoutineStateWork, Sint32, syGameFlagSet() and sySynch().

Referenced by ContigoLuckyDiceCues.

Definition at line 1753 of file contigo.c.

scContigoShrinkActor

void scContigoShrinkActor(Sint32 id)

Draws an actor at seven tenths of its size, as the geoglyph's and the dice hall's signs are drawn.

References fdActorGetById() and Sint32.

Referenced by scContigoInitGeoglyph() and scContigoInitLuckyDice().

Definition at line 1806 of file contigo.c.

scContigoEnterSanctumWestDoor

void scContigoEnterSanctumWestDoor(void)

Felix walks up the Sanctum's west steps into its door (metatiles (42, 20) and (43, 20)): it opens with a thump, he walks in, and he arrives in a small stone room of the Sanctum with dragon statues.

References scContigoOpenSanctumDoor() and syImportScriptSetExitRequest().

Referenced by ContigoGeoglyphCues.

Definition at line 1847 of file contigo.c.

scContigoEnterSanctumMiddleDoor

void scContigoEnterSanctumMiddleDoor(void)

Unused: the same for the Sanctum's middle door, which Reveal opens as a plain exit instead (scContigoRevealMiddleDoor).

References scContigoOpenSanctumDoor() and syImportScriptSetExitRequest().

Definition at line 1856 of file contigo.c.

scContigoEnterSanctumEastDoor

void scContigoEnterSanctumEastDoor(void)

Felix walks up the Sanctum's east steps into its door (metatiles (54, 20) and (55, 20)): it opens with a thump, he walks in, and he arrives in a small stone room of the Sanctum with dragon statues.

References scContigoOpenSanctumDoor() and syImportScriptSetExitRequest().

Referenced by ContigoGeoglyphCues.

Definition at line 1866 of file contigo.c.

scContigoStartSparkle

void scContigoStartSparkle(ACTOR *actor, SPARKLE_STATE *state)

Sets up the sparkle: loads its picture and its four 16 by 16 sprites, and hands the object to its update, scContigoRaiseSparkle.

References fdActorGetSpritePriority(), fdEffectSpriteInit(), LightRingTiles, scContigoRaiseSparkle(), Sint32, syVRAMCacheFindFreeEntry(), syVRAMCacheLoad() and VramCacheEntries.

Referenced by scContigoTheReunion().

Definition at lines 1879 and 3193 of file contigo.c.

scContigoStopSparkle

void scContigoStopSparkle(ACTOR *actor)

Ends the sparkle: its update finishes once both pairs have risen.

Referenced by scContigoTheReunion().

Definition at lines 1880 and 3226 of file contigo.c.

scContigoTheReunion

void scContigoTheReunion(void)

Walking into the house at the top of the hill once Jupiter Lighthouse's beacon is lit: Isaac, Garet, Mia and Ivan are waiting, and the reunion begins (scContigoInitShops). The two parties make peace, Kraden tells why Felix has been lighting the beacons, and Hamma comes to send them all to Mars Lighthouse as one party.

References ContigoJennaReunionScript, ContigoJoinLeaderScript, ContigoKradenReunionScript, ContigoPiersReunionScript, ContigoShebaReunionScript, ContigoSparkleState, fdActorFaceDirection(), fdActorFaceDirectionAndRefreshById(), fdActorFaceDirectionAndWait(), fdActorFaceDirectionById(), fdActorGetById(), fdActorJump(), fdActorPlaceOnActor(), fdActorSetAnimationAndWait(), fdActorSetAnimationById(), fdActorSetAttachedEffect(), fdActorSetHorizontalPosAndAngleWithTerrain(), fdActorSetMovementTypeAndWaitById(), fdActorSetMovementTypeById(), fdActorSetSpriteColor(), fdActorStop(), fdActorWaitForAnimationChange(), fdActorWalkToAndWait(), fdActorWalkToAndWaitById(), fdActorWatchAndSetScript(), fdCameraWaitForArrival(), fdMessageShowAtActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageAndWait(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmPartyAddIsaacsParty(), gmPlayMusic(), MainRoutineStateWork, scContigoStartSparkle(), scContigoStopSparkle(), scFieldActorShowEmote(), scFieldScriptShowTwoMessagesAndWait(), Sint32, syGameFlagSet(), sySoundPlay() and sySynch().

Referenced by scContigoInitShops().

Definition at line 1887 of file contigo.c.

scContigoReturnToNewHome

void scContigoReturnToNewHome(void)

The party's first steps into the house at the top of the hill after the ship has its wings (metatiles (7, 25) to (12, 25), just inside the door): Hamma welcomes it to her new home, tells Ivan why she kept from him that she is his sister, and warns that the world is falling into ruin unless Mars Lighthouse is lit.

References ContigoLeaderVisitsScript, ContigoRejoinLeaderScript, fdActorFaceDirection(), fdActorFaceDirectionAndRefreshById(), fdActorFaceDirectionAndWait(), fdActorFaceDirectionById(), fdActorJump(), fdActorPlaceOnActor(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdActorSetAnimationById(), fdActorSetAttachedEffect(), fdActorSetMovementTypeAndWaitById(), fdActorSetMovementTypeById(), fdActorWalkToAndWait(), fdActorWalkToAndWaitById(), fdEffectSetAttached(), fdMessageShowAtActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageAndWait(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, scFieldActorShowEmote(), Sint32, syGameFlagGet(), syGameFlagSet() and sySynch().

Referenced by ContigoShopsReunionCues.

Definition at line 2472 of file contigo.c.

scInit

Sint32 scInit(void)

References MainRoutineStateWork, scContigoInitGeoglyph(), scContigoInitLuckyDice(), scContigoInitShops(), scContigoInitVillage() and Sint32.

Definition at line 2792 of file contigo.c.

scPrepareMap

Sint32 scPrepareMap(void)

References Sint32.

Definition at line 2807 of file contigo.c.

scContigoKeepPriorityWithLeader

void scContigoKeepPriorityWithLeader(void)

An event that draws the Corn at the leader's sprite priority.

References fdActorGetById(), fdActorSetSpritePriority() and MainRoutineStateWork.

Referenced by scContigoInitVillage().

Definition at line 2813 of file contigo.c.

scContigoReportCoinChange

static inline void scContigoReportCoinChange(void)

Back from a dice game, the attendant reports the coins the party won, with a jingle for the size of the win, or lost.

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, mnMessageArgumentPush(), mnSoundWaitForJingle(), Sint32 and sySoundPlay().

Referenced by scContigoInitLuckyDice().

Definition at line 2979 of file contigo.c.

scContigoRaiseSparkle

void scContigoRaiseSparkle(ACTOR *actor)

The sparkle's update, played over Hamma as she speaks of Mars Lighthouse in the reunion: two pairs of white half-rings rise around her, a pair starting every 16 ticks, until both have climbed RING_CLIMB pixels.

References fdActorGetSpriteDepth(), fdActorSetSpriteColorMode(), fdCameraWorldToScreen(), fdEffectSpriteDraw(), Sint32, sySin(), sySoundPlay() and syVRAMCacheFreeEntry().

Referenced by scContigoStartSparkle().

Definition at line 3117 of file contigo.c.

Variables in detail

FieldEffectDurationScripts

extern const Sint32 *FieldEffectDurationScripts[]

const Sint32 *FieldEffectDurationScripts[]

References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.

Referenced by fdEffectSpawnResident(), scFieldEffectSpawn() and scFieldEffectSpawnLocal().

Definition at lines 351 and 3257 of file contigo.c.

ContigoVillagePlacements

extern ACTOR_PLACE ContigoVillagePlacements[]

ACTOR_PLACE ContigoVillagePlacements[]

References ContigoDoubtingBoyScript, ContigoGirlOnTheShipScript and Sint32.

Referenced by scGetActorPlacements().

Definition at lines 352 and 3490 of file contigo.c.

ContigoGeoglyphPlacements

extern ACTOR_PLACE ContigoGeoglyphPlacements[]

ACTOR_PLACE ContigoGeoglyphPlacements[]

References ContigoPuzzledWorkerScript and Sint32.

Referenced by scGetActorPlacements().

Definition at lines 353 and 3514 of file contigo.c.

ContigoShopsPlacementsBeforeReunion

extern ACTOR_PLACE ContigoShopsPlacementsBeforeReunion[]

ACTOR_PLACE ContigoShopsPlacementsBeforeReunion[]

Referenced by scGetActorPlacements().

Definition at lines 354 and 3574 of file contigo.c.

ContigoShopsPlacementsReunion

extern ACTOR_PLACE ContigoShopsPlacementsReunion[]

ACTOR_PLACE ContigoShopsPlacementsReunion[]

Referenced by scGetActorPlacements().

Definition at lines 355 and 3620 of file contigo.c.

ContigoShopsPlacements

extern ACTOR_PLACE ContigoShopsPlacements[]

ACTOR_PLACE ContigoShopsPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 356 and 3642 of file contigo.c.

ContigoLuckyDicePlacements

extern ACTOR_PLACE ContigoLuckyDicePlacements[]

ACTOR_PLACE ContigoLuckyDicePlacements[]

Referenced by scGetActorPlacements().

Definition at lines 357 and 3654 of file contigo.c.

ContigoVillageCues

extern CUE ContigoVillageCues[]

CUE ContigoVillageCues[]

References scContigoAskAboutWindLegend(), scContigoForceFreesDjinni(), scContigoFreedDjinniJoinsParty(), scContigoNarrowCameraBounds(), scContigoReadLuckyDiceSign(), scContigoReadLuckyWheelsSign(), scContigoReadSuperLuckyDiceSign(), scContigoSaltJoinsParty(), scContigoScatterWeedPatchBottomRow(), scContigoScatterWeedPatchFourthRow(), scContigoScatterWeedPatchMiddleRow(), scContigoScatterWeedPatchSecondRow(), scContigoScatterWeedPatchTopRow(), scContigoScatterWeedsBehindInn(), scContigoScatterWeedsBelowLuckyWheels(), scContigoScatterWeedsByGate(), scContigoScatterWeedsOnCliffEast(), scContigoScatterWeedsOnCliffWest(), scContigoScatterWeedsOverBrambleSeed(), scContigoScatterWeedsWestOfItemShop(), scContigoScatterWeedsWestOfWeaponShop(), scContigoScoopForSalt(), scContigoTalkAboutTheShip(), scContigoTalkToDoubtingBoy(), scContigoTeleportOut(), scContigoWidenCameraBounds() and scShowEntranceLocked().

Referenced by scGetCues().

Definition at lines 358 and 3688 of file contigo.c.

ContigoShopsCues

extern CUE ContigoShopsCues[]

CUE ContigoShopsCues[]

References scContigoBabyThinks(), scContigoTalkToArmorMerchant(), scContigoTalkToHealer(), scContigoTalkToInnkeeper(), scContigoTalkToItemMerchant() and scContigoTalkToWeaponMerchant().

Referenced by scGetCues().

Definition at lines 359 and 3918 of file contigo.c.

ContigoShopsReunionCues

extern CUE ContigoShopsReunionCues[]

CUE ContigoShopsReunionCues[]

References scContigoReturnToNewHome().

Referenced by scGetCues().

Definition at lines 360 and 4077 of file contigo.c.

ContigoWheelsPrizes

extern Uint32 ContigoWheelsPrizes[]

Uint32 ContigoWheelsPrizes[]

The Lucky Wheels' prizes, three to each icon that wins them (scContigoSelectLuckyWheelsPrize).

Referenced by scContigoSelectLuckyWheelsPrize().

Definition at lines 366 and 3237 of file contigo.c.

ContigoEnterSanctumDoorScript

extern Sint32 ContigoEnterSanctumDoorScript[]

Sint32 ContigoEnterSanctumDoorScript[]

Felix walking slowly north into an opened Sanctum door, half a pixel a tick.

References Sint32.

Referenced by scContigoOpenSanctumDoor().

Definition at lines 378 and 3246 of file contigo.c.

ContigoRejoinLeaderScript

extern Uint32 ContigoRejoinLeaderScript[]

Uint32 ContigoRejoinLeaderScript[]

The end of the visit to Hamma's new home: Ivan, Isaac and Kraden walk to the leader and go into him.

Referenced by scContigoReturnToNewHome().

Definition at lines 379 and 3404 of file contigo.c.

ContigoShiverScript

extern Sint32 ContigoShiverScript[]

Sint32 ContigoShiverScript[]

The old man on Hesperia shivering once the party has set out with the wings: "Brrr...Brrr... It's been really cold since the lighthouse beacon was lit!"

References Sint32.

Referenced by scContigoInitShops().

Definition at lines 388 and 3370 of file contigo.c.

ContigoDoubtingBoyScript

extern Uint32 ContigoDoubtingBoyScript[]

Uint32 ContigoDoubtingBoyScript[]

The two children's walk round the middle of the village: the same six-point loop, the girl setting out from the far side of it from the boy.

Referenced by ContigoVillagePlacements.

Definition at lines 393 and 3265 of file contigo.c.

ContigoGirlOnTheShipScript

extern Uint32 ContigoGirlOnTheShipScript[]

Uint32 ContigoGirlOnTheShipScript[]

Referenced by ContigoVillagePlacements.

Definition at lines 394 and 3284 of file contigo.c.

ContigoPuzzledWorkerScript

extern Sint32 ContigoPuzzledWorkerScript[]

Sint32 ContigoPuzzledWorkerScript[]

The worker wondering which part goes where looks from one part of the wings to another, and wonders (scContigoShowWorkerPuzzled).

References scContigoShowWorkerPuzzled() and Sint32.

Referenced by ContigoGeoglyphPlacements.

Definition at lines 395 and 3417 of file contigo.c.

PaletteCycleBright

Uint16 PaletteCycleBright

The Teleport circle's shimmer (shared/teleport_shimmer.c): the colours it writes and the palette cycle that runs them round the circle.

Referenced by fdPaletteCycleFade(), scTeleportStartFastShimmer() and scTeleportStartShimmer().

Definition at line 399 of file contigo.c.

PaletteCycleTimer

Uint16 PaletteCycleTimer

Referenced by fdPaletteCycleFade(), scTeleportStartFastShimmer() and scTeleportStartShimmer().

Definition at line 401 of file contigo.c.

PaletteCycleDelay

Uint16 PaletteCycleDelay

Referenced by fdPaletteCycleFade(), scTeleportStartFastShimmer() and scTeleportStartShimmer().

Definition at line 402 of file contigo.c.

ContigoPlacements

extern ACTOR_PLACE ContigoPlacements[]

ACTOR_PLACE ContigoPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 534 and 3486 of file contigo.c.

ContigoCues

extern CUE ContigoCues[]

CUE ContigoCues[]

Referenced by scGetCues().

Definition at lines 561 and 3684 of file contigo.c.

ContigoGeoglyphCues

extern CUE ContigoGeoglyphCues[]

CUE ContigoGeoglyphCues[]

References scContigoAskAboutGeoglyph(), scContigoEnterSanctumEastDoor(), scContigoEnterSanctumWestDoor(), scContigoExamineWall(), scContigoHideMiddleDoor(), scContigoReadSign() and scContigoRevealMiddleDoor().

Referenced by scGetCues().

Definition at lines 562 and 3846 of file contigo.c.

ContigoLuckyDiceCues

extern CUE ContigoLuckyDiceCues[]

CUE ContigoLuckyDiceCues[]

References scContigoAskAboutSuperDice(), scContigoOfferLuckyDice(), scContigoOfferSuperLuckyDice(), scContigoReadLuckyDicePairs(), scContigoReadLuckyDiceRules(), scContigoReadLuckyWheelsPrizes(), scContigoReadLuckyWheelsRules(), scContigoReadSuperLuckyDiceRules() and scContigoTalkToWheelsAttendant().

Referenced by scGetCues().

Definition at lines 563 and 4093 of file contigo.c.

ContigoJennaReunionScript

extern Uint32 ContigoJennaReunionScript[]

Uint32 ContigoJennaReunionScript[]

At the reunion, Jenna, Piers, Sheba and Kraden come in behind Felix and walk to their places, turning to face Isaac's party in the west.

Referenced by scContigoTheReunion().

Definition at lines 1873 and 3305 of file contigo.c.

ContigoPiersReunionScript

extern Uint32 ContigoPiersReunionScript[]

Uint32 ContigoPiersReunionScript[]

Referenced by scContigoTheReunion().

Definition at lines 1874 and 3318 of file contigo.c.

ContigoShebaReunionScript

extern Uint32 ContigoShebaReunionScript[]

Uint32 ContigoShebaReunionScript[]

Referenced by scContigoTheReunion().

Definition at lines 1875 and 3329 of file contigo.c.

ContigoKradenReunionScript

extern Uint32 ContigoKradenReunionScript[]

Uint32 ContigoKradenReunionScript[]

Referenced by scContigoTheReunion().

Definition at lines 1876 and 3340 of file contigo.c.

ContigoJoinLeaderScript

extern Uint32 ContigoJoinLeaderScript[]

Uint32 ContigoJoinLeaderScript[]

The end of the reunion: each walks to the leader and goes into him, as the two parties become one.

Referenced by scContigoTheReunion().

Definition at lines 1877 and 3353 of file contigo.c.

ContigoSparkleState

SPARKLE_STATE ContigoSparkleState

Referenced by scContigoTheReunion().

Definition at line 1878 of file contigo.c.

ContigoLeaderVisitsScript

extern Uint32 ContigoLeaderVisitsScript[]

Uint32 ContigoLeaderVisitsScript[]

In Hamma's new home the leader steps up to face her from the west.

Referenced by scContigoReturnToNewHome().

Definition at lines 2465 and 3389 of file contigo.c.

SceneEntrances

SCENE_ENTRANCE SceneEntrances[]

Referenced by scGetEntrances().

Definition at line 3431 of file contigo.c.

SceneExits

Uint32 SceneExits[]

Referenced by scGetExits().

Definition at line 3436 of file contigo.c.

On this page

MacrosEnumerationsFunctionsVariablesDescriptionMacros in detailFLAG_SHINE_FREEDFLAG_SHINE_CAUGHTFLAG_HAMMA_WELCOMED_PARTYFLAG_WHOLE_VILLAGE_IN_VIEWREUNION_HAMMA_PORTRAIT_YCOIN_WON_MESSAGECOIN_LOST_MESSAGEREAD_SIGN_MESSAGECONGRATULATIONS_MESSAGEFIRST_PRIZE_MESSAGENEXT_PRIZE_MESSAGECOME_AGAIN_MESSAGEFLAG_LEFT_FOR_A_GAMEEFFECT_SET_MODEEFFECT_SET_SCRIPTTELEPORT_CIRCLE_FIRST_ENTRYEnumerations in detailCONTIGO_METATILE_BEHAVIORCONTIGO_DICE_HALL_ENTRANCECONTIGO_VILLAGE_ACTOR_IDCONTIGO_SHOPS_ACTOR_IDCONTIGO_REUNION_ACTOR_IDCONTIGO_LUCKY_DICE_ACTOR_IDCONTIGO_GEOGLYPH_ACTOR_IDanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumCONTIGO_RAISED_CUEanonymous enumanonymous enumFunctions in detailscContigoOfferLuckyWheelsscContigoOpenSanctumDoorscContigoInitVillagescContigoInitGeoglyphscContigoInitShopsscContigoInitLuckyDicescContigoSaltJoinsPartyscContigoFreedDjinniJoinsPartyscContigoPauseWhenFacedscContigoShowWorkerPuzzledscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscGetCuesscContigoExamineWallscContigoReadSignscContigoReadLuckyWheelsSignscContigoReadSuperLuckyDiceSignscContigoReadLuckyDiceSignscContigoAskAboutWindLegendscContigoWhirlLeafscContigoRaiseLeavesscContigoBabyThinksscContigoTalkToItemMerchantscContigoTalkToWeaponMerchantscContigoTalkToArmorMerchantscContigoTalkToInnkeeperscContigoTalkToHealerscContigoAskAboutSuperDicescContigoReadSuperLuckyDiceRulesscContigoReadLuckyDiceRulesscContigoReadLuckyDicePairsscContigoTalkToWheelsAttendantscContigoReadLuckyWheelsRulesscContigoReadLuckyWheelsPrizesscContigoAskAboutGeoglyphscContigoTalkToDoubtingBoyscContigoTalkAboutTheShipscContigoTeleportOutscContigoScatterWeedsWestOfItemShopscContigoScatterWeedsBehindInnscContigoCopyTouchedMetatilesscContigoScatterWeedsOverBrambleSeedscContigoScatterWeedsWestOfWeaponShopscContigoScatterWeedsByGatescContigoScatterWeedsBelowLuckyWheelsscContigoScatterWeedsOnCliffWestscContigoScatterWeedsOnCliffEastscContigoScatterWeedPatchTopRowscContigoScatterWeedPatchSecondRowscContigoScatterWeedPatchMiddleRowscContigoScatterWeedPatchFourthRowscContigoScatterWeedPatchBottomRowscContigoWidenCameraBoundsscContigoNarrowCameraBoundsscContigoScoopForSaltscContigoRevealMiddleDoorscContigoHideMiddleDoorscContigoForceFreesDjinniscContigoLockDoorsscContigoPlaceWingPartscContigoSetUpWingPartsscContigoSelectLuckyWheelsPrizescContigoOfferLuckyDicescContigoOfferSuperLuckyDicescContigoShrinkActorscContigoEnterSanctumWestDoorscContigoEnterSanctumMiddleDoorscContigoEnterSanctumEastDoorscContigoStartSparklescContigoStopSparklescContigoTheReunionscContigoReturnToNewHomescInitscPrepareMapscContigoKeepPriorityWithLeaderscContigoReportCoinChangescContigoRaiseSparkleVariables in detailFieldEffectDurationScriptsContigoVillagePlacementsContigoGeoglyphPlacementsContigoShopsPlacementsBeforeReunionContigoShopsPlacementsReunionContigoShopsPlacementsContigoLuckyDicePlacementsContigoVillageCuesContigoShopsCuesContigoShopsReunionCuesContigoWheelsPrizesContigoEnterSanctumDoorScriptContigoRejoinLeaderScriptContigoShiverScriptContigoDoubtingBoyScriptContigoGirlOnTheShipScriptContigoPuzzledWorkerScriptPaletteCycleBrightPaletteCycleTimerPaletteCycleDelayContigoPlacementsContigoCuesContigoGeoglyphCuesContigoLuckyDiceCuesContigoJennaReunionScriptContigoPiersReunionScriptContigoShebaReunionScriptContigoKradenReunionScriptContigoJoinLeaderScriptContigoSparkleStateContigoLeaderVisitsScriptSceneEntrancesSceneExits