Skip to Content
The Alchemy Project

include/field/speaker.h

Speaker bits, above the actor id in the low 12 bits of a message command's speaker, as fdMessageShowAtActor reads them, and each sprite's voice and Halted lines.

Included by script_commands_actor_commands.c and script.h.

Structures

NameDescription
structSPEAKER_DEFINITIONA row of SpeakerDefinitions: a sprite's voice and the lines it says while Halted.

Macros

NameDescription
#defineSPEAKER_PORTRAIT_LEFT 0x1000the portrait left of the speaker
#defineSPEAKER_PORTRAIT_RIGHT 0x2000the portrait right of the speaker
#defineSPEAKER_WINDOW_ABOVE 0x4000the message window above the speaker
#defineSPEAKER_WINDOW_BELOW 0x8000the message window never above it
#defineSPEAKER_FLAGS 0xf000the four bits above
#defineSPEAKER_ACTOR_MASK 0xfffthe actor id below them
#defineSPEAKER_VOICE_NONE 255SPEAKER_DEFINITION.value of a sprite that makes no sound as it speaks.
#defineSPEAKER_HALTED_LINES_NONE 255SPEAKER_DEFINITION.haltedLines of a sprite Halt never stops: the monsters that talk, and things such as chests, rocks, trees and signposts.

Variables

NameDescription
extern SPEAKER_DEFINITIONSpeakerDefinitions []Each sprite's voice and Halted lines, the default last.

Description

Speaker bits, above the actor id in the low 12 bits of a message command's speaker, as fdMessageShowAtActor reads them, and each sprite's voice and Halted lines.

Macros in detail

SPEAKER_PORTRAIT_LEFT

#define SPEAKER_PORTRAIT_LEFT 0x1000

the portrait left of the speaker

Referenced by fdMessageShowAtActor(), scAlhafraMadransArrive(), scAlhafraManorBriggsEscapes(), scChampaCliffCavesObabaMournsSalamander(), scContigoReturnToNewHome(), scContigoTheReunion(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraShipBriggsIsCaught(), scEasternAlhafraShipMayorArrives(), scGabombaStatueChamberWhereIsTheOrb(), scGabombaStatueSawEnergyFlow(), scIdejimaBreakAwayFromGondowan(), scIdejimaFindFelixAndSheba(), scIdejimaRideTheTidalWave(), scJupiterLighthouseBeaconIsLit(), scKandoreanTempleMeetPoi(), scKandoreanTempleTestTheStudents(), scKibomboPiersJoinsParty(), scLemurianShipDeckReachPiersShip(), scLemuriaRoomsMeetLunpa(), scMarsLighthouseAerieFaceDoomDragon(), scMarsLighthouseAerieFindWhoTheDragonWas(), scMarsLighthouseAerieUrgeOnToBeacon(), scMarsLighthouseAerieWatchGoldenSunRise(), scProxSayFarewell(), scSuhallaGatePointToMeetingSpot() and scVenusLighthouseEntranceSoldiersAmbushParty().

Definition at line 10 of file speaker.h.

SPEAKER_PORTRAIT_RIGHT

#define SPEAKER_PORTRAIT_RIGHT 0x2000

the portrait right of the speaker

Referenced by fdMessageShowAtActor(), scAlhafraMadransArrive(), scAlhafraManorBriggsEscapes(), scAlhafranCaveChauchaAndEoleoVisit(), scAncientLemuriaMeetTheLemurians(), scAttekaInletHammaShowsTheWings(), scChampaCliffCavesFightAvimander(), scChampaCliffCavesObabaForgesTrident(), scChampaCliffCavesObabaMournsSalamander(), scChampaMeetAlex(), scContigoTheReunion(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraWorkersTellMayor(), scGabombaStatueChamberGabombaNamesWitchDoctor(), scGabombaStatueSeeHowItWorks(), scGarohMahaTellsTheLegend(), scGarohWerewolfRunsPast(), scIdejimaBreakAwayFromGondowan(), scIdejimaCatchUpWithFelix(), scIdejimaRideTheTidalWave(), scIdejimaWonderWhereAlexHasGone(), scInit(), scJupiterLighthouseBeaconIsLit(), scKandoreanTempleTestTheStudents(), scKibomboAkafubuOffersCrystal(), scKibomboCeremonyEnds(), scKibomboDeadEndByTheStatue(), scKibomboPiersJoinsParty(), scLemurianShipDeckReachPiersShip(), scLemurianShipDeckSightMenardisShip(), scLemuriaPalaceMeetKingHydros(), scLemuriaRoomsPiersVisitsUncle(), scMarsLighthouseAerieFaceDoomDragon(), scMarsLighthouseAerieFindWhoTheDragonWas(), scMarsLighthouseAerieLightBeacon(), scMarsLighthouseAerieUrgeOnToBeacon(), scNorthernReachesFireMagmaBall(), scProxGiveThanksForBeacon(), scProxMeetPuelle(), scProxSayFarewell(), scShamanVillageChallengeMoapa(), scShamanVillageCheckTrialEntry(), scShamanVillageExplainTrialRules(), scShamanVillageRestartTrial(), scShamanVillageShebaClearsSand(), scShamanVillageShowShamansRod(), scShamanVillageSuggestQuitting(), scShamanVillageTalkToEastKnight(), scShamanVillageTalkToWestKnight(), scShrineOfTheSeaGodLashRope() and 4 more.

Definition at line 11 of file speaker.h.

SPEAKER_WINDOW_ABOVE

#define SPEAKER_WINDOW_ABOVE 0x4000

the message window above the speaker

Referenced by fdMessageShowAtActor(), scAlhafraManorDefendTheMayor(), scAttekaInletShipwrightsStopTheParty(), scContigoTheReunion(), scEasternAlhafraBriggsStealsShip(), scEasternAlhafraMayorFindsShipGone(), scGabombaStatueChamberAkafubuOffersToHelp(), scGabombaStatueChamberGabombaNamesWitchDoctor(), scGabombaStatueChamberWhereIsTheOrb(), scGabombaStatueSawEnergyFlow(), scGabombaStatueSeeHowItWorks(), scGarohMahaTellsTheLegend(), scIdejimaBreakAwayFromGondowan(), scIdejimaCatchUpWithFelix(), scIdejimaFindFelixAndSheba(), scIdejimaRideTheTidalWave(), scInit(), scKandoreanTempleMeetPoi(), scKandoreanTemplePoiWalksUp(), scKandoreanTempleTestTheStudents(), scKibomboAkafubuOffersCrystal(), scKibomboCeremonyStarts(), scKibomboDeadEndByTheStatue(), scKibomboGabombaNotPleased(), scKibomboGabombaRespondsToGift(), scKibomboGabombaStillNotPleased(), scKibomboPresentJewelToGabomba(), scKibomboWarriorsPanic(), scKibomboWitchDoctorFeelsPower(), scLemurianShipDeckTakeTheTiller(), scLemuriaRoomsLeavePiersToMourn(), scMarsLighthouseAerieFaceDoomDragon(), scMarsLighthouseAerieFindWhoTheDragonWas(), scMarsLighthouseAerieLightBeacon(), scMarsLighthouseAerieUrgeOnToBeacon(), scMarsLighthouseAerieWatchGoldenSunRise(), scMercuryLighthouseHearVoices(), scProxGiveThanksForBeacon(), scProxSayFarewell(), scProxSearchForParents(), scShamanVillageShebaClearsSand(), scShrineOfTheSeaGodLashRope() and scShrineOfTheSeaGodThrowRopeAgain().

Definition at line 12 of file speaker.h.

SPEAKER_WINDOW_BELOW

#define SPEAKER_WINDOW_BELOW 0x8000

the message window never above it

Referenced by fdMessageShowAtActor(), scAlhafraRoomsMeetAlex(), scAncientLemuriaMeetTheLemurians(), scChampaSailorsSpotFelix(), scContigoReturnToNewHome(), scContigoTheReunion(), scGabombaStatueSawEnergyFlow(), scGarohWerewolvesRevealThemselves(), scIdejimaBreakAwayFromGondowan(), scIdejimaFindFelixAndSheba(), scIsletsTradeWithCow(), scIzumoRoomsRecognizeTheHeroes(), scKandoreanTempleFindTheRopeOnTheFloor(), scKandoreanTempleReceiveLash(), scKandoreanTempleTestTheStudents(), scKibomboAkafubuOffersCrystal(), scKibomboDeadEndByTheStatue(), scKibomboPiersJoinsParty(), scKibomboPiersThanksParty(), scKibomboWarriorsPanic(), scLemurianShipDeckReachPiersShip(), scMarsLighthouseAerieFaceDoomDragon(), scMarsLighthouseAerieFindWhoTheDragonWas(), scMarsLighthouseAerieHoldBackFromParents(), scMarsLighthouseAerieHoldBackFromParentsAgain(), scMarsLighthouseAerieUrgeOnToBeacon(), scMarsLighthouseAerieWatchGoldenSunRise(), scMercuryLighthouseHearVoices(), scProxMeetPuelle(), scProxSayFarewell(), scShamanVillageMeetMoapa(), scShamanVillageShebaClearsSand() and scShrineOfTheSeaGodThrowRopeAgain().

Definition at line 13 of file speaker.h.

SPEAKER_FLAGS

#define SPEAKER_FLAGS 0xf000

the four bits above

Referenced by fdMessageShowAtActor().

Definition at line 14 of file speaker.h.

SPEAKER_ACTOR_MASK

#define SPEAKER_ACTOR_MASK 0xfff

the actor id below them

Referenced by fdActorGetSpriteById(), fdMessageShowAtActor(), fdMessageShowAtActorAndWait() and fdScriptShowSpeakerMessage().

Definition at line 15 of file speaker.h.

SPEAKER_VOICE_NONE

#define SPEAKER_VOICE_NONE 255

SPEAKER_DEFINITION.value of a sprite that makes no sound as it speaks.

Referenced by fdSpeakerGetVoice().

Definition at line 30 of file speaker.h.

SPEAKER_HALTED_LINES_NONE

#define SPEAKER_HALTED_LINES_NONE 255

SPEAKER_DEFINITION.haltedLines of a sprite Halt never stops: the monsters that talk, and things such as chests, rocks, trees and signposts.

Referenced by fdPsynergyFilterHaltTarget().

Definition at line 33 of file speaker.h.