diff options
author | Matthew Stewart | 2018-07-11 02:48:15 -0400 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-09 08:37:30 +0200 |
commit | 793a5b602006f7cfbf967de83647f67f161ce70a (patch) | |
tree | d089fe9989a0b75e1c321aab393c38ea3741ee14 | |
parent | 160bd9ad510d335649acc45e42ca923b0382277f (diff) | |
download | scummvm-rg350-793a5b602006f7cfbf967de83647f67f161ce70a.tar.gz scummvm-rg350-793a5b602006f7cfbf967de83647f67f161ce70a.tar.bz2 scummvm-rg350-793a5b602006f7cfbf967de83647f67f161ce70a.zip |
STARTREK: TRIAL5
-rw-r--r-- | engines/startrek/awaymission.h | 13 | ||||
-rw-r--r-- | engines/startrek/items.h | 18 | ||||
-rw-r--r-- | engines/startrek/room.cpp | 8 | ||||
-rw-r--r-- | engines/startrek/room.h | 84 | ||||
-rw-r--r-- | engines/startrek/rooms/trial0.cpp | 2 | ||||
-rw-r--r-- | engines/startrek/rooms/trial1.cpp | 2 | ||||
-rw-r--r-- | engines/startrek/rooms/trial2.cpp | 2 | ||||
-rw-r--r-- | engines/startrek/rooms/trial3.cpp | 5 | ||||
-rw-r--r-- | engines/startrek/rooms/trial4.cpp | 2 | ||||
-rw-r--r-- | engines/startrek/rooms/trial5.cpp | 717 | ||||
-rw-r--r-- | engines/startrek/text.h | 158 |
11 files changed, 992 insertions, 19 deletions
diff --git a/engines/startrek/awaymission.h b/engines/startrek/awaymission.h index 93d0fd2898..6f3125698c 100644 --- a/engines/startrek/awaymission.h +++ b/engines/startrek/awaymission.h @@ -288,12 +288,23 @@ struct AwayMission { // 23: Is dead int16 shotKlingonState; // 0x3d + bool neuralInterfaceActive; // 0x43 + int16 holeContents[3]; // 0x44 (Holes to put gems in for TRIAL5) + bool enteredGlobRoom; // 0x5c bool forceFieldDown; // 0x5d bool uhuraAnalyzedCode; // 0x5e - int16 field5f; // 0x5f + + // 0: Gave up in court, letting Quetzecoatl die + // 1: Beamed to enterprise after calling Uhura + // 2: Lost the court battle after beaming back to the courtroom + // 3: Quetzecoatl goes free and Vlict doesn't die + // 4: Quetzecoatl goes free and Vlict dies + int16 missionEndMethod; // 0x5f + bool gotPointsForGettingRod; // 0x61 bool gotPointsForCoatingRodWithIron; // 0x62 + bool gotPointsForActivatingInterface; // 0x63 bool gotPointsForScanningGlob; // 0x64 bool gotPointsForBeamingOut; diff --git a/engines/startrek/items.h b/engines/startrek/items.h index 2bf89f6c05..fdf18258a2 100644 --- a/engines/startrek/items.h +++ b/engines/startrek/items.h @@ -68,15 +68,15 @@ enum Items { OBJECT_IH2O, OBJECT_IWROD, OBJECT_IIROD, - OBJECT_IREDGEM_A, // FIXME: repeated items? (applies to all names with _A, _B, or _C) - OBJECT_IREDGEM_B, - OBJECT_IREDGEM_C, - OBJECT_IGRNGEM_A, - OBJECT_IGRNGEM_B, - OBJECT_IGRNGEM_C, - OBJECT_IBLUGEM_A, - OBJECT_IBLUGEM_B, - OBJECT_IBLUGEM_C, + OBJECT_IREDGEM1, + OBJECT_IREDGEM2, + OBJECT_IREDGEM3, + OBJECT_IGRNGEM1, + OBJECT_IGRNGEM2, + OBJECT_IGRNGEM3, + OBJECT_IBLUGEM1, + OBJECT_IBLUGEM2, + OBJECT_IBLUGEM3, OBJECT_ICONECT, OBJECT_IS8ROCKS, OBJECT_IIDCARD, diff --git a/engines/startrek/room.cpp b/engines/startrek/room.cpp index ebd3074e5f..4ec703f69d 100644 --- a/engines/startrek/room.cpp +++ b/engines/startrek/room.cpp @@ -480,7 +480,9 @@ void Room::spockScan(int direction, TextRef text, bool changeDirection) { loadActorAnim2(OBJECT_SPOCK, anim, -1, -1, 0); playSoundEffectIndex(SND_TRICORDER); - showText(TX_SPEAKER_SPOCK, text); + + if (text != -1) + showText(TX_SPEAKER_SPOCK, text); } void Room::mccoyScan(int direction, TextRef text, bool changeDirection) { @@ -493,7 +495,9 @@ void Room::mccoyScan(int direction, TextRef text, bool changeDirection) { loadActorAnim2(OBJECT_MCCOY, anim, -1, -1, 0); playSoundEffectIndex(SND_TRICORDER); - showText(TX_SPEAKER_MCCOY, text); + + if (text != -1) + showText(TX_SPEAKER_MCCOY, text); } } diff --git a/engines/startrek/room.h b/engines/startrek/room.h index ca47f44eea..1442e90162 100644 --- a/engines/startrek/room.h +++ b/engines/startrek/room.h @@ -1953,6 +1953,85 @@ public: // TRIAL5 void trial5Tick1(); + void trial5Tick60(); + void trial5VlictAppeared(); + void trial5WalkToInterface(); + void trial5ReachedInterface(); + void trial5GetGem(int16 item, int16 object); + void trial5ReachedGem(); + void trial5PickedUpGem(); + void trial5GetRedGem1(); + void trial5GetRedGem2(); + void trial5GetRedGem3(); + void trial5GetGreenGem1(); + void trial5GetGreenGem2(); + void trial5GetGreenGem3(); + void trial5GetBlueGem1(); + void trial5GetBlueGem2(); + void trial5GetBlueGem3(); + void trial5LookAtKirk(); + void trial5LookAtSpock(); + void trial5LookAtMccoy(); + void trial5LookAtRedshirt(); + void trial5LookAtBeam(); + void trial5LookAtInterface(); + void trial5UseSTricorderOnInterface(); + void trial5UseMTricorderOnInterface(); + void trial5LookAtRedGem1(); + void trial5LookAtRedGem2(); + void trial5LookAtRedGem3(); + void trial5LookAtGreenGem1(); + void trial5LookAtGreenGem2(); + void trial5LookAtGreenGem3(); + void trial5LookAtBlueGem1(); + void trial5LookAtBlueGem2(); + void trial5LookAtBlueGem3(); + void trial5LookAtHole(); + void trial5TalkToKirk(); + void trial5TalkToSpock(); + void trial5TalkToMccoy(); + void trial5TalkToRedshirt(); + void trial5UsePhaser(); + void trial5UseMTricorderAnywhere(); + void trial5UseSTricorderAnywhere(); + void trial5UseCommunicator(); + void trial5UseGemOnHole(int16 item, int16 object, int16 hole); + void trial5ReachedHoleToPutGem(); + void trial5ActivateLightOfWar(); + void trial5ActivateLightOfKnowledge(); + void trial5ActivateLightOfTravel(); + void trial5RestrictedCombination1(); + void trial5RestrictedCombination2(); + void trial5DestinationNoLongerExists(); + void trial5CrewmanBeamedOut(); + void trial5UseRedGem1OnHole1(); + void trial5UseRedGem2OnHole1(); + void trial5UseRedGem3OnHole1(); + void trial5UseGreenGem1OnHole1(); + void trial5UseGreenGem2OnHole1(); + void trial5UseGreenGem3OnHole1(); + void trial5UseBlueGem1OnHole1(); + void trial5UseBlueGem2OnHole1(); + void trial5UseBlueGem3OnHole1(); + void trial5UseRedGem1OnHole2(); + void trial5UseRedGem2OnHole2(); + void trial5UseRedGem3OnHole2(); + void trial5UseGreenGem1OnHole2(); + void trial5UseGreenGem2OnHole2(); + void trial5UseGreenGem3OnHole2(); + void trial5UseBlueGem1OnHole2(); + void trial5UseBlueGem2OnHole2(); + void trial5UseBlueGem3OnHole2(); + void trial5UseRedGem1OnHole3(); + void trial5UseRedGem2OnHole3(); + void trial5UseRedGem3OnHole3(); + void trial5UseGreenGem1OnHole3(); + void trial5UseGreenGem2OnHole3(); + void trial5UseGreenGem3OnHole3(); + void trial5UseBlueGem1OnHole3(); + void trial5UseBlueGem2OnHole3(); + void trial5UseBlueGem3OnHole3(); + void trial5UseMedkitAnywhere(); private: // Room-specific variables. This is memset'ed to 0 when the room is initialized. @@ -2095,6 +2174,11 @@ private: // trial2 byte globBeingShot; bool phaserOnKill; + + // trial5 + int16 itemToUse; // 0x1386 + int16 objectToUse; // 0x1388 + int16 hole; } trial; } _roomVar; diff --git a/engines/startrek/rooms/trial0.cpp b/engines/startrek/rooms/trial0.cpp index 6d042bd5ff..b1ee21179f 100644 --- a/engines/startrek/rooms/trial0.cpp +++ b/engines/startrek/rooms/trial0.cpp @@ -197,7 +197,7 @@ void Room::trial0ReachedRoomCenter() { playMidiMusicTracks(2, -1); showText(TX_SPEAKER_VLICT, TX_TRI0_049); showText(TX_SPEAKER_VLICT, TX_TRI0_044); - _vm->_awayMission.trial.field5f = 0; + _vm->_awayMission.trial.missionEndMethod = 0; // FIXME: Are these parameters in the right order? endMission(_vm->_awayMission.trial.missionScore, _vm->_awayMission.trial.field2b, 0); diff --git a/engines/startrek/rooms/trial1.cpp b/engines/startrek/rooms/trial1.cpp index e33c54d4ef..3fccb3b45f 100644 --- a/engines/startrek/rooms/trial1.cpp +++ b/engines/startrek/rooms/trial1.cpp @@ -437,7 +437,7 @@ void Room::trial1UseCommunicator() { int choice = showText(choices); if (choice == 0) { // "Beam us back to the enterprise" - _vm->_awayMission.trial.field5f = 1; + _vm->_awayMission.trial.missionEndMethod = 1; endMission(1, 1, 1); } else if (choice == 1) { // "Beam us to Vlict's position" showText(TX_SPEAKER_UHURA, TX_TRI1U080); diff --git a/engines/startrek/rooms/trial2.cpp b/engines/startrek/rooms/trial2.cpp index e428618abb..a23be951a3 100644 --- a/engines/startrek/rooms/trial2.cpp +++ b/engines/startrek/rooms/trial2.cpp @@ -413,7 +413,7 @@ void Room::trial2UseCommunicator() { int choice = showText(choices); if (choice == 0) { // "Beam us back to the enterprise" - _vm->_awayMission.trial.field5f = 1; + _vm->_awayMission.trial.missionEndMethod = 1; endMission(_vm->_awayMission.trial.missionScore, 1, 1); // FIXME: Inconsistent with TRIAL1 } else if (choice == 1) { // "Beam us to Vlict's position" showText(TX_SPEAKER_UHURA, TX_TRI1U080); // NOTE: Original didn't show text here diff --git a/engines/startrek/rooms/trial3.cpp b/engines/startrek/rooms/trial3.cpp index 2e382bccdf..a37bd625f2 100644 --- a/engines/startrek/rooms/trial3.cpp +++ b/engines/startrek/rooms/trial3.cpp @@ -381,7 +381,8 @@ void Room::trial3UseSTricorderOnExit() { void Room::trial3UseMTricorderOnKlingon() { if (_vm->_awayMission.trial.shotKlingonState == 22) { // Unconscious mccoyScan(DIR_S, TX_TRI3_011); - showText(TX_SPEAKER_BENNIE, TX_TRI3_028); + if (!_vm->_awayMission.redshirtDead) // BUGFIX: Check if redshirt is dead + showText(TX_SPEAKER_BENNIE, TX_TRI3_028); } } @@ -397,7 +398,7 @@ void Room::trial3UseCommunicator() { int choice = showText(choices); if (choice == 0) { // "Beam us back to the enterprise" - _vm->_awayMission.trial.field5f = 1; + _vm->_awayMission.trial.missionEndMethod = 1; endMission(_vm->_awayMission.trial.missionScore, _vm->_awayMission.trial.field2b, 1); // FIXME: inconsistent } else if (choice == 1) { // "Beam us to Vlict's position" trial3BeamToVlict(); diff --git a/engines/startrek/rooms/trial4.cpp b/engines/startrek/rooms/trial4.cpp index 1a55e9206b..29e4fcf92e 100644 --- a/engines/startrek/rooms/trial4.cpp +++ b/engines/startrek/rooms/trial4.cpp @@ -180,7 +180,7 @@ void Room::trial4Tick60() { } showText(TX_SPEAKER_KIRK, TX_TRI4_012); - _vm->_awayMission.trial.field5f = 2; + _vm->_awayMission.trial.missionEndMethod = 2; endMission(_vm->_awayMission.trial.missionScore, _vm->_awayMission.trial.field2b, 2); } diff --git a/engines/startrek/rooms/trial5.cpp b/engines/startrek/rooms/trial5.cpp index c2f7298d9e..a71d413545 100644 --- a/engines/startrek/rooms/trial5.cpp +++ b/engines/startrek/rooms/trial5.cpp @@ -22,16 +22,731 @@ #include "startrek/room.h" +#define OBJECT_8 8 +#define OBJECT_BEAM 9 +#define OBJECT_10 10 +#define OBJECT_11 11 +#define OBJECT_12 12 +#define OBJECT_13 13 +#define OBJECT_REDGEM1 14 +#define OBJECT_REDGEM2 15 +#define OBJECT_REDGEM3 16 +#define OBJECT_GRNGEM1 17 +#define OBJECT_GRNGEM2 18 +#define OBJECT_GRNGEM3 19 +#define OBJECT_BLUGEM1 20 +#define OBJECT_BLUGEM2 21 +#define OBJECT_BLUGEM3 22 +#define OBJECT_VLICT 23 + +#define HOTSPOT_HOLE1 0x21 +#define HOTSPOT_HOLE2 0x22 +#define HOTSPOT_HOLE3 0x23 +#define HOTSPOT_INTERFACE 0x24 // Yellow light + +#define REDGEM1_X 0x82 +#define REDGEM1_Y 0x98 +#define REDGEM2_X 0x81 +#define REDGEM2_Y 0x9e +#define REDGEM3_X 0x80 +#define REDGEM3_Y 0xa5 + +#define GRNGEM1_X 0x97 +#define GRNGEM1_Y 0x98 +#define GRNGEM2_X 0x97 +#define GRNGEM2_Y 0x9e +#define GRNGEM3_X 0x97 +#define GRNGEM3_Y 0xa5 + +#define BLUGEM1_X 0xab +#define BLUGEM1_Y 0x98 +#define BLUGEM2_X 0xac +#define BLUGEM2_Y 0x9e +#define BLUGEM3_X 0xad +#define BLUGEM3_Y 0xa5 + +#define COMBO(a,b,c) (holes[0] == a && holes[1] == b && holes[2] == c) + namespace StarTrek { extern const RoomAction trial5ActionList[] = { - { {ACTION_TICK, 1, 0, 0}, &Room::trial5Tick1 }, + { {ACTION_TICK, 1, 0, 0}, &Room::trial5Tick1 }, + { {ACTION_TICK, 60, 0, 0}, &Room::trial5Tick60 }, + { {ACTION_DONE_ANIM, 1, 0, 0}, &Room::trial5VlictAppeared }, + { {ACTION_USE, OBJECT_KIRK, HOTSPOT_INTERFACE, 0}, &Room::trial5WalkToInterface }, + { {ACTION_WALK, HOTSPOT_INTERFACE, 0, 0}, &Room::trial5WalkToInterface }, + { {ACTION_DONE_WALK, 2, 0, 0}, &Room::trial5ReachedInterface }, + { {ACTION_DONE_WALK, 30, 0, 0}, &Room::trial5ReachedGem }, + { {ACTION_DONE_ANIM, 31, 0, 0}, &Room::trial5PickedUpGem }, + + { {ACTION_GET, OBJECT_REDGEM1, 0, 0}, &Room::trial5GetRedGem1 }, + { {ACTION_GET, OBJECT_REDGEM2, 0, 0}, &Room::trial5GetRedGem2 }, + { {ACTION_GET, OBJECT_REDGEM3, 0, 0}, &Room::trial5GetRedGem3 }, + { {ACTION_GET, OBJECT_GRNGEM1, 0, 0}, &Room::trial5GetGreenGem1 }, + { {ACTION_GET, OBJECT_GRNGEM2, 0, 0}, &Room::trial5GetGreenGem2 }, + { {ACTION_GET, OBJECT_GRNGEM3, 0, 0}, &Room::trial5GetGreenGem3 }, + { {ACTION_GET, OBJECT_BLUGEM1, 0, 0}, &Room::trial5GetBlueGem1 }, + { {ACTION_GET, OBJECT_BLUGEM2, 0, 0}, &Room::trial5GetBlueGem2 }, + { {ACTION_GET, OBJECT_BLUGEM3, 0, 0}, &Room::trial5GetBlueGem3 }, + + { {ACTION_LOOK, OBJECT_KIRK, 0, 0}, &Room::trial5LookAtKirk }, + { {ACTION_LOOK, OBJECT_SPOCK, 0, 0}, &Room::trial5LookAtSpock }, + { {ACTION_LOOK, OBJECT_MCCOY, 0, 0}, &Room::trial5LookAtMccoy }, + { {ACTION_LOOK, OBJECT_REDSHIRT, 0, 0}, &Room::trial5LookAtRedshirt }, + { {ACTION_LOOK, OBJECT_BEAM, 0, 0}, &Room::trial5LookAtBeam }, + { {ACTION_LOOK, HOTSPOT_INTERFACE, 0, 0}, &Room::trial5LookAtInterface }, + + { {ACTION_USE, OBJECT_ISTRICOR, HOTSPOT_INTERFACE, 0}, &Room::trial5UseSTricorderOnInterface }, + { {ACTION_USE, OBJECT_IMTRICOR, HOTSPOT_INTERFACE, 0}, &Room::trial5UseMTricorderOnInterface }, + + { {ACTION_LOOK, OBJECT_REDGEM1, 0, 0}, &Room::trial5LookAtRedGem1 }, + { {ACTION_LOOK, OBJECT_REDGEM2, 0, 0}, &Room::trial5LookAtRedGem2 }, + { {ACTION_LOOK, OBJECT_REDGEM3, 0, 0}, &Room::trial5LookAtRedGem3 }, + { {ACTION_LOOK, OBJECT_GRNGEM1, 0, 0}, &Room::trial5LookAtGreenGem1 }, + { {ACTION_LOOK, OBJECT_GRNGEM2, 0, 0}, &Room::trial5LookAtGreenGem2 }, + { {ACTION_LOOK, OBJECT_GRNGEM3, 0, 0}, &Room::trial5LookAtGreenGem3 }, + { {ACTION_LOOK, OBJECT_BLUGEM1, 0, 0}, &Room::trial5LookAtBlueGem1 }, + { {ACTION_LOOK, OBJECT_BLUGEM2, 0, 0}, &Room::trial5LookAtBlueGem2 }, + { {ACTION_LOOK, OBJECT_BLUGEM3, 0, 0}, &Room::trial5LookAtBlueGem3 }, + + { {ACTION_LOOK, HOTSPOT_HOLE1, 0, 0}, &Room::trial5LookAtHole }, + { {ACTION_LOOK, HOTSPOT_HOLE2, 0, 0}, &Room::trial5LookAtHole }, + { {ACTION_LOOK, HOTSPOT_HOLE3, 0, 0}, &Room::trial5LookAtHole }, + + { {ACTION_TALK, OBJECT_KIRK, 0, 0}, &Room::trial5TalkToKirk }, + { {ACTION_TALK, OBJECT_SPOCK, 0, 0}, &Room::trial5TalkToSpock }, + { {ACTION_TALK, OBJECT_MCCOY, 0, 0}, &Room::trial5TalkToMccoy }, + { {ACTION_TALK, OBJECT_REDSHIRT, 0, 0}, &Room::trial5TalkToRedshirt }, + + { {ACTION_USE, OBJECT_IPHASERS, 0xff, 0}, &Room::trial5UsePhaser }, + { {ACTION_USE, OBJECT_IPHASERK, 0xff, 0}, &Room::trial5UsePhaser }, + { {ACTION_USE, OBJECT_IMTRICOR, 0xff, 0}, &Room::trial5UseMTricorderAnywhere }, + { {ACTION_USE, OBJECT_ISTRICOR, 0xff, 0}, &Room::trial5UseSTricorderAnywhere }, + { {ACTION_USE, OBJECT_ICOMM, 0xff, 0}, &Room::trial5UseCommunicator }, + + { {ACTION_DONE_WALK, 3, 0, 0}, &Room::trial5ReachedHoleToPutGem }, + { {ACTION_DONE_ANIM, 32, 0, 0}, &Room::trial5CrewmanBeamedOut }, + + { {ACTION_USE, OBJECT_IREDGEM1, HOTSPOT_HOLE1, 0}, &Room::trial5UseRedGem1OnHole1 }, + { {ACTION_USE, OBJECT_IREDGEM2, HOTSPOT_HOLE1, 0}, &Room::trial5UseRedGem2OnHole1 }, + { {ACTION_USE, OBJECT_IREDGEM3, HOTSPOT_HOLE1, 0}, &Room::trial5UseRedGem3OnHole1 }, + { {ACTION_USE, OBJECT_IGRNGEM1, HOTSPOT_HOLE1, 0}, &Room::trial5UseGreenGem1OnHole1 }, + { {ACTION_USE, OBJECT_IGRNGEM2, HOTSPOT_HOLE1, 0}, &Room::trial5UseGreenGem2OnHole1 }, + { {ACTION_USE, OBJECT_IGRNGEM3, HOTSPOT_HOLE1, 0}, &Room::trial5UseGreenGem3OnHole1 }, + { {ACTION_USE, OBJECT_IBLUGEM1, HOTSPOT_HOLE1, 0}, &Room::trial5UseBlueGem1OnHole1 }, + { {ACTION_USE, OBJECT_IBLUGEM2, HOTSPOT_HOLE1, 0}, &Room::trial5UseBlueGem2OnHole1 }, + { {ACTION_USE, OBJECT_IBLUGEM3, HOTSPOT_HOLE1, 0}, &Room::trial5UseBlueGem3OnHole1 }, + + { {ACTION_USE, OBJECT_IREDGEM1, HOTSPOT_HOLE2, 0}, &Room::trial5UseRedGem1OnHole2 }, + { {ACTION_USE, OBJECT_IREDGEM2, HOTSPOT_HOLE2, 0}, &Room::trial5UseRedGem2OnHole2 }, + { {ACTION_USE, OBJECT_IREDGEM3, HOTSPOT_HOLE2, 0}, &Room::trial5UseRedGem3OnHole2 }, + { {ACTION_USE, OBJECT_IGRNGEM1, HOTSPOT_HOLE2, 0}, &Room::trial5UseGreenGem1OnHole2 }, + { {ACTION_USE, OBJECT_IGRNGEM2, HOTSPOT_HOLE2, 0}, &Room::trial5UseGreenGem2OnHole2 }, + { {ACTION_USE, OBJECT_IGRNGEM3, HOTSPOT_HOLE2, 0}, &Room::trial5UseGreenGem3OnHole2 }, + { {ACTION_USE, OBJECT_IBLUGEM1, HOTSPOT_HOLE2, 0}, &Room::trial5UseBlueGem1OnHole2 }, + { {ACTION_USE, OBJECT_IBLUGEM2, HOTSPOT_HOLE2, 0}, &Room::trial5UseBlueGem2OnHole2 }, + { {ACTION_USE, OBJECT_IBLUGEM3, HOTSPOT_HOLE2, 0}, &Room::trial5UseBlueGem3OnHole2 }, + + { {ACTION_USE, OBJECT_IREDGEM1, HOTSPOT_HOLE3, 0}, &Room::trial5UseRedGem1OnHole3 }, + { {ACTION_USE, OBJECT_IREDGEM2, HOTSPOT_HOLE3, 0}, &Room::trial5UseRedGem2OnHole3 }, + { {ACTION_USE, OBJECT_IREDGEM3, HOTSPOT_HOLE3, 0}, &Room::trial5UseRedGem3OnHole3 }, + { {ACTION_USE, OBJECT_IGRNGEM1, HOTSPOT_HOLE3, 0}, &Room::trial5UseGreenGem1OnHole3 }, + { {ACTION_USE, OBJECT_IGRNGEM2, HOTSPOT_HOLE3, 0}, &Room::trial5UseGreenGem2OnHole3 }, + { {ACTION_USE, OBJECT_IGRNGEM3, HOTSPOT_HOLE3, 0}, &Room::trial5UseGreenGem3OnHole3 }, + { {ACTION_USE, OBJECT_IBLUGEM1, HOTSPOT_HOLE3, 0}, &Room::trial5UseBlueGem1OnHole3 }, + { {ACTION_USE, OBJECT_IBLUGEM2, HOTSPOT_HOLE3, 0}, &Room::trial5UseBlueGem2OnHole3 }, + { {ACTION_USE, OBJECT_IBLUGEM3, HOTSPOT_HOLE3, 0}, &Room::trial5UseBlueGem3OnHole3 }, + + { {ACTION_USE, OBJECT_IMEDKIT, 0xff, 0}, &Room::trial5UseMedkitAnywhere }, }; extern const int trial5NumActions = sizeof(trial5ActionList) / sizeof(RoomAction); void Room::trial5Tick1() { + playVoc("TRI5LOOP"); + playMidiMusicTracks(MIDITRACK_31, -1); + + loadActorAnim2(OBJECT_REDGEM1, "redgem", REDGEM1_X, REDGEM1_Y); + loadActorAnim2(OBJECT_REDGEM2, "redgem", REDGEM2_X, REDGEM2_Y); + loadActorAnim2(OBJECT_REDGEM3, "redgem", REDGEM3_X, REDGEM3_Y); + loadActorAnim2(OBJECT_GRNGEM1, "grngem", GRNGEM1_X, GRNGEM1_Y); + loadActorAnim2(OBJECT_GRNGEM2, "grngem", GRNGEM2_X, GRNGEM2_Y); + loadActorAnim2(OBJECT_GRNGEM3, "grngem", GRNGEM3_X, GRNGEM3_Y); + loadActorAnim2(OBJECT_BLUGEM1, "blugem", BLUGEM1_X, BLUGEM1_Y); + loadActorAnim2(OBJECT_BLUGEM2, "blugem", BLUGEM2_X, BLUGEM2_Y); + loadActorAnim2(OBJECT_BLUGEM3, "blugem", BLUGEM3_X, BLUGEM3_Y); +} + +void Room::trial5Tick60() { + showText(TX_SPEAKER_BENNIE, TX_TRI5_052); + showText(TX_SPEAKER_SPOCK, TX_TRI5_017); + showText(TX_SPEAKER_MCCOY, TX_TRI5_014); + showText(TX_SPEAKER_KIRK, TX_TRI5_002); +} + +void Room::trial5VlictAppeared() { + showText(TX_SPEAKER_BIALBI, TX_TRI5_027); + showText(TX_SPEAKER_VLICT, TX_TRI5_020); + showText(TX_SPEAKER_BIALBI, TX_TRI5_031); + showText(TX_SPEAKER_VLICT, TX_TRI5_022); + showText(TX_SPEAKER_BIALBI, TX_TRI5_029); + showText(TX_SPEAKER_VLICT, TX_TRI5_018); + + const TextRef choices[] = { + TX_SPEAKER_KIRK, + TX_TRI5_003, TX_TRI5_008, TX_TRI5_006, + TX_BLANK + }; + int choice = showText(choices); + + if (choice == 0) { // "Do you want me to help you?" + showText(TX_SPEAKER_VLICT, TX_TRI5_023); + showText(TX_SPEAKER_MCCOY, TX_TRI5_015); + + const TextRef choices2[] = { + TX_SPEAKER_KIRK, + TX_TRI5_009, TX_TRI5_007, + TX_BLANK + }; + choice = showText(choices2); + + if (choice == 0) + choice = 1; + else if (choice == 1) + choice = 2; + } + + if (choice == 1) { // "Now you can rot as you deserve" + showText(TX_SPEAKER_BIALBI, TX_TRI5_034); + + _vm->_awayMission.trial.missionEndMethod = 4; + endMission(_vm->_awayMission.trial.missionScore, 1, 4); + } else if (choice == 2) { // "I'll intervene if Quetzecoatl goes free" + showText(TX_SPEAKER_VLICT, TX_TRI5_019); + playMidiMusicTracks(MIDITRACK_28, -1); + + showText(TX_SPEAKER_BIALBI, TX_TRI5_025); + _vm->_awayMission.trial.missionScore += 4; + showText(TX_SPEAKER_KIRK, TX_TRI5_004); + showText(TX_SPEAKER_BIALBI, TX_TRI5_030); + showText(TX_SPEAKER_BIALBI, TX_TRI5_026); + showText(TX_SPEAKER_VLICT, TX_TRI5_021); + showText(TX_SPEAKER_BIALBI, TX_TRI5_028); + showText(TX_SPEAKER_KIRK, TX_TRI5_005); + showText(TX_SPEAKER_BIALBI, TX_TRI5_033); + showText(TX_SPEAKER_BIALBI, TX_TRI5_032); + + _vm->_awayMission.trial.missionEndMethod = 3; + endMission(1, 1, 3); // FIXME: Are these parameters correct? + } +} + +void Room::trial5WalkToInterface() { + walkCrewmanC(OBJECT_KIRK, 0x106, 0x96, &Room::trial5ReachedInterface); +} + +void Room::trial5ReachedInterface() { + if (!_vm->_awayMission.trial.neuralInterfaceActive) + showText(TX_SPEAKER_VOICE, TX_TRI5_035); + else { + showText(TX_SPEAKER_BIALBI, TX_TRI5_024); + loadActorAnimC(OBJECT_VLICT, "vlict1", 0xbe, 0x91, &Room::trial5VlictAppeared); + _vm->_awayMission.trial.missionScore += 5; + playMidiMusicTracks(MIDITRACK_1, -1); + } +} + +void Room::trial5GetGem(int16 item, int16 object) { + _roomVar.trial.itemToUse = item; + _roomVar.trial.objectToUse = object; + + _vm->_awayMission.disableInput = true; + if (object == _vm->_awayMission.trial.holeContents[0]) { + _vm->_awayMission.trial.holeContents[0] = 0; + _vm->_awayMission.trial.neuralInterfaceActive = false; + loadActorStandAnim(OBJECT_BEAM); + walkCrewmanC(OBJECT_KIRK, 0x2c, 0x9f, &Room::trial5ReachedGem); + } else if (object == _vm->_awayMission.trial.holeContents[1]) { + _vm->_awayMission.trial.holeContents[1] = 0; + _vm->_awayMission.trial.neuralInterfaceActive = false; + loadActorStandAnim(OBJECT_BEAM); + walkCrewmanC(OBJECT_KIRK, 0x22, 0x9f, &Room::trial5ReachedGem); + } else if (object == _vm->_awayMission.trial.holeContents[2]) { + _vm->_awayMission.trial.holeContents[2] = 0; + _vm->_awayMission.trial.neuralInterfaceActive = false; + loadActorStandAnim(OBJECT_BEAM); + walkCrewmanC(OBJECT_KIRK, 0x3c, 0x9f, &Room::trial5ReachedGem); + } else if (object == OBJECT_REDGEM1 || object == OBJECT_REDGEM2 || object == OBJECT_REDGEM3) + walkCrewmanC(OBJECT_KIRK, 0x80, 0xaa, &Room::trial5ReachedGem); + else if (object == OBJECT_GRNGEM1 || object == OBJECT_GRNGEM2 || object == OBJECT_GRNGEM3) + walkCrewmanC(OBJECT_KIRK, 0x95, 0xaa, &Room::trial5ReachedGem); + else if (object == OBJECT_BLUGEM1 || object == OBJECT_BLUGEM2 || object == OBJECT_BLUGEM3) + walkCrewmanC(OBJECT_KIRK, 0xad, 0xaa, &Room::trial5ReachedGem); +} + +void Room::trial5ReachedGem() { + loadActorAnimC(OBJECT_KIRK, "kusemn", -1, -1, &Room::trial5PickedUpGem); +} + +void Room::trial5PickedUpGem() { + giveItem(_roomVar.trial.itemToUse); + loadActorStandAnim(_roomVar.trial.objectToUse); + _vm->_awayMission.disableInput = false; +} + +void Room::trial5GetRedGem1() { + trial5GetGem(OBJECT_IREDGEM1, OBJECT_REDGEM1); +} + +void Room::trial5GetRedGem2() { + trial5GetGem(OBJECT_IREDGEM2, OBJECT_REDGEM2); +} + +void Room::trial5GetRedGem3() { + trial5GetGem(OBJECT_IREDGEM3, OBJECT_REDGEM3); +} + +void Room::trial5GetGreenGem1() { + trial5GetGem(OBJECT_IGRNGEM1, OBJECT_GRNGEM1); +} + +void Room::trial5GetGreenGem2() { + trial5GetGem(OBJECT_IGRNGEM2, OBJECT_GRNGEM2); +} + +void Room::trial5GetGreenGem3() { + trial5GetGem(OBJECT_IGRNGEM3, OBJECT_GRNGEM3); +} + +void Room::trial5GetBlueGem1() { + trial5GetGem(OBJECT_IBLUGEM1, OBJECT_BLUGEM1); +} + +void Room::trial5GetBlueGem2() { + trial5GetGem(OBJECT_IBLUGEM2, OBJECT_BLUGEM2); +} + +void Room::trial5GetBlueGem3() { + trial5GetGem(OBJECT_IBLUGEM3, OBJECT_BLUGEM3); +} + +void Room::trial5LookAtKirk() { + showText(TX_TRI5N005); +} + +void Room::trial5LookAtSpock() { + showText(TX_TRI5N009); +} + +void Room::trial5LookAtMccoy() { + showText(TX_TRI5N008); +} + +void Room::trial5LookAtRedshirt() { + showText(TX_TRI5N010); +} + +void Room::trial5LookAtBeam() { + showText(TX_TRI5N002); +} + +void Room::trial5LookAtInterface() { + showText(TX_TRI5N004); +} + +void Room::trial5UseSTricorderOnInterface() { + spockScan(DIR_E, TX_TRI5_010, true); +} + +void Room::trial5UseMTricorderOnInterface() { + mccoyScan(DIR_E, TX_TRI5_011, true); +} + +void Room::trial5LookAtRedGem1() { + showText(TX_TRI5N013); +} + +void Room::trial5LookAtRedGem2() { + showText(TX_TRI5N014); +} + +void Room::trial5LookAtRedGem3() { + showText(TX_TRI5N015); +} + +void Room::trial5LookAtGreenGem1() { + showText(TX_TRI5N019); +} + +void Room::trial5LookAtGreenGem2() { + showText(TX_TRI5N020); +} + +void Room::trial5LookAtGreenGem3() { + showText(TX_TRI5N021); +} + +void Room::trial5LookAtBlueGem1() { + showText(TX_TRI5N016); +} + +void Room::trial5LookAtBlueGem2() { + showText(TX_TRI5N017); +} + +void Room::trial5LookAtBlueGem3() { + showText(TX_TRI5N018); +} + +void Room::trial5LookAtHole() { + showText(TX_TRI5N006); +} + +void Room::trial5TalkToKirk() { + showText(TX_SPEAKER_KIRK, TX_TRI5_001); +} + +void Room::trial5TalkToSpock() { + showText(TX_SPEAKER_SPOCK, TX_TRI5_016); +} + +void Room::trial5TalkToMccoy() { + showText(TX_SPEAKER_MCCOY, TX_TRI5_013); +} + +void Room::trial5TalkToRedshirt() { + showText(TX_SPEAKER_BENNIE, TX_TRI5_051); +} + +void Room::trial5UsePhaser() { + showText(TX_TRI5N011); +} + +void Room::trial5UseMTricorderAnywhere() { + // BUGFIX: Original had Spock doing the animation, not Mccoy + mccoyScan(DIR_S, -1, true); + showText(TX_TRI5N012); +} + +void Room::trial5UseSTricorderAnywhere() { + spockScan(DIR_S, -1, true); + showText(TX_TRI5N012); +} + +void Room::trial5UseCommunicator() { + showText(TX_TRI5N007); +} + +void Room::trial5UseGemOnHole(int16 item, int16 object, int16 hole) { + const Common::Point positions[] = { + Common::Point(0x2c, 0x9f), + Common::Point(0x22, 0x9f), + Common::Point(0x3c, 0x9f), + }; + + hole -= 1; + + _roomVar.trial.itemToUse = item; + _roomVar.trial.objectToUse = object; + _roomVar.trial.hole = hole; + + _vm->_awayMission.crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_N; + walkCrewmanC(OBJECT_KIRK, positions[hole].x, positions[hole].y, &Room::trial5ReachedHoleToPutGem); +} + +void Room::trial5ReachedHoleToPutGem() { + const Common::Point holePositions[] = { + Common::Point(0x2e, 0x8e), + Common::Point(0x22, 0x95), + Common::Point(0x3c, 0x95), + }; + const char * const gemAnims[] = { + "RedGem1", "RedGem2", "RedGem3", + "GrnGem1", "GrnGem2", "GrnGem3", + "BluGem1", "BluGem2", "BluGem3", + }; + + const int16 hole = _roomVar.trial.hole; + const Common::Point &pos = holePositions[hole]; + const char *anim = gemAnims[_roomVar.trial.objectToUse - OBJECT_REDGEM1]; + + loadActorAnim2(OBJECT_KIRK, "kusehn"); + + if (_vm->_awayMission.trial.holeContents[hole] == 0) { + _vm->_awayMission.trial.holeContents[hole] = _roomVar.trial.objectToUse; + loadActorAnim2(_roomVar.trial.objectToUse, anim, pos.x, pos.y); + loseItem(_roomVar.trial.itemToUse); + + // Look at the contents of the holes, decide what to do + + const int16 RED = 1; + const int16 GREEN = 2; + const int16 BLUE = 3; + + int16 holes[3]; + holes[0] = 0; + holes[1] = 0; + holes[2] = 0; + + for (int i = 0; i < 3; i++) { + int16 c = _vm->_awayMission.trial.holeContents[i]; + if (c >= OBJECT_REDGEM1 && c <= OBJECT_REDGEM3) + holes[i] = RED; + else if (c >= OBJECT_GRNGEM1 && c <= OBJECT_GRNGEM3) + holes[i] = GREEN; + else if (c >= OBJECT_BLUGEM1 && c <= OBJECT_BLUGEM3) + holes[i] = BLUE; + } + + if COMBO(RED, RED, RED) { + trial5ActivateLightOfWar(); + playMidiMusicTracks(MIDITRACK_1, -1); + showText(TX_SPEAKER_LIGHT_OF_WAR, TX_TRI5_050); // All ships in orbit destroyed + showGameOverMenu(); + } else if COMBO(RED, RED, GREEN) { + trial5RestrictedCombination1(); + } else if COMBO(RED, RED, BLUE) { + trial5RestrictedCombination1(); + } else if COMBO(RED, GREEN, RED) { + trial5RestrictedCombination1(); + } else if COMBO(RED, GREEN, GREEN) { + trial5ActivateLightOfWar(); + showText(TX_SPEAKER_LIGHT_OF_WAR, TX_TRI5_036); + } else if COMBO(RED, GREEN, BLUE) { + trial5ActivateLightOfWar(); + showText(TX_SPEAKER_LIGHT_OF_WAR, TX_TRI5_048); + } else if COMBO(RED, BLUE, RED) { + trial5RestrictedCombination1(); + } else if COMBO(RED, BLUE, GREEN) { + trial5RestrictedCombination1(); + } else if COMBO(RED, BLUE, BLUE) { + trial5ActivateLightOfWar(); + showText(TX_SPEAKER_LIGHT_OF_WAR, TX_TRI5_049); + } else if COMBO(GREEN, RED, RED) { + trial5ActivateLightOfKnowledge(); + showText(TX_SPEAKER_LIGHT_OF_KNOWLEDGE, TX_TRI5_047); + } else if COMBO(GREEN, RED, GREEN) { + trial5RestrictedCombination2(); + } else if COMBO(GREEN, RED, BLUE) { + trial5RestrictedCombination2(); + } else if COMBO(GREEN, GREEN, RED) { + trial5RestrictedCombination1(); + } else if COMBO(GREEN, GREEN, GREEN) { + trial5ActivateLightOfKnowledge(); + playVoc("EFX12B"); + showText(TX_SPEAKER_LIGHT_OF_KNOWLEDGE, TX_TRI5_040); + showText(TX_SPEAKER_LIGHT_OF_KNOWLEDGE, TX_TRI5_037); + _vm->_awayMission.trial.neuralInterfaceActive = true; + + if (!_vm->_awayMission.trial.gotPointsForActivatingInterface) { + _vm->_awayMission.trial.gotPointsForActivatingInterface = true; + _vm->_awayMission.trial.missionScore += 3; + } + } else if COMBO(GREEN, GREEN, BLUE) { + trial5RestrictedCombination1(); + } else if COMBO(GREEN, BLUE, RED) { + trial5ActivateLightOfKnowledge(); + showText(TX_SPEAKER_LIGHT_OF_KNOWLEDGE, TX_TRI5_041); + } else if COMBO(GREEN, BLUE, GREEN) { + trial5RestrictedCombination2(); + } else if COMBO(GREEN, BLUE, BLUE) { + trial5ActivateLightOfKnowledge(); + showText(TX_SPEAKER_LIGHT_OF_KNOWLEDGE, TX_TRI5_038); + } else if COMBO(BLUE, RED, RED) { + trial5ActivateLightOfTravel(); + showText(TX_SPEAKER_LIGHT_OF_TRAVEL, TX_TRI5_045); + } else if COMBO(BLUE, RED, GREEN) { + trial5DestinationNoLongerExists(); + } else if COMBO(BLUE, RED, BLUE) { + trial5DestinationNoLongerExists(); + } else if COMBO(BLUE, GREEN, RED) { + trial5ActivateLightOfTravel(); + showText(TX_SPEAKER_LIGHT_OF_TRAVEL, TX_TRI5_042); + } else if COMBO(BLUE, GREEN, GREEN) { + trial5ActivateLightOfTravel(); + showText(TX_SPEAKER_LIGHT_OF_TRAVEL, TX_TRI5_044); + } else if COMBO(BLUE, GREEN, BLUE) { + trial5DestinationNoLongerExists(); + } else if COMBO(BLUE, BLUE, RED) { + trial5RestrictedCombination1(); + } else if COMBO(BLUE, BLUE, GREEN) { + trial5RestrictedCombination1(); + } else if COMBO(BLUE, BLUE, BLUE) { + trial5ActivateLightOfTravel(); + showText(TX_SPEAKER_LIGHT_OF_TRAVEL, TX_TRI5_046); + + _vm->_awayMission.disableInput = true; + playSoundEffectIndex(SND_TRANSDEM); + + loadActorAnimC(OBJECT_KIRK, "kteled", -1, -1, &Room::trial5CrewmanBeamedOut); + loadActorAnimC(OBJECT_SPOCK, "steled", -1, -1, &Room::trial5CrewmanBeamedOut); + loadActorAnimC(OBJECT_MCCOY, "mteled", -1, -1, &Room::trial5CrewmanBeamedOut); + if (!_vm->_awayMission.redshirtDead) + loadActorAnimC(OBJECT_REDSHIRT, "rteled", -1, -1, &Room::trial5CrewmanBeamedOut); + } else { + // Some holes are empty + loadActorStandAnim(OBJECT_BEAM); + } + } +} + +void Room::trial5ActivateLightOfWar() { + playSoundEffectIndex(SND_TRANSENE); + loadActorAnim2(OBJECT_BEAM, "redlit", 0, 0); +} + +void Room::trial5ActivateLightOfKnowledge() { + playSoundEffectIndex(SND_TRANSENE); + loadActorAnim2(OBJECT_BEAM, "grnlit", 0, 0); +} + +void Room::trial5ActivateLightOfTravel() { + playSoundEffectIndex(SND_TRANSENE); + loadActorAnim2(OBJECT_BEAM, "blulit", 0, 0); +} + +void Room::trial5RestrictedCombination1() { + // NOTE: The only difference between "trial5RestrictedCombination1" and + // "trial5RestrictedCombination2" is that this one doesn't show the light of + // knowledge. + // It's inconsistent, but I guess we can chalk it up to the aliens being mysterious... + playSoundEffectIndex(SND_TRANSENE); + showText(TX_SPEAKER_LIGHT_OF_KNOWLEDGE, TX_TRI5_039); +} + +void Room::trial5RestrictedCombination2() { + trial5ActivateLightOfKnowledge(); + showText(TX_SPEAKER_LIGHT_OF_KNOWLEDGE, TX_TRI5_039); +} + +void Room::trial5DestinationNoLongerExists() { + trial5ActivateLightOfTravel(); + showText(TX_SPEAKER_LIGHT_OF_TRAVEL, TX_TRI5_043); +} + +void Room::trial5CrewmanBeamedOut() { + if (!_vm->_awayMission.trial.gotPointsForBeamingOut) { + _vm->_awayMission.trial.gotPointsForBeamingOut = true; + _vm->_awayMission.trial.missionScore += 1; + } + loadRoomIndex(4, 4); +} + + +void Room::trial5UseRedGem1OnHole1() { + trial5UseGemOnHole(OBJECT_IREDGEM1, OBJECT_REDGEM1, 1); +} + +void Room::trial5UseRedGem2OnHole1() { + trial5UseGemOnHole(OBJECT_IREDGEM2, OBJECT_REDGEM2, 1); +} + +void Room::trial5UseRedGem3OnHole1() { + trial5UseGemOnHole(OBJECT_IREDGEM3, OBJECT_REDGEM3, 1); +} + +void Room::trial5UseGreenGem1OnHole1() { + trial5UseGemOnHole(OBJECT_IGRNGEM1, OBJECT_GRNGEM1, 1); +} + +void Room::trial5UseGreenGem2OnHole1() { + trial5UseGemOnHole(OBJECT_IGRNGEM2, OBJECT_GRNGEM2, 1); +} + +void Room::trial5UseGreenGem3OnHole1() { + trial5UseGemOnHole(OBJECT_IGRNGEM3, OBJECT_GRNGEM3, 1); +} + +void Room::trial5UseBlueGem1OnHole1() { + trial5UseGemOnHole(OBJECT_IBLUGEM1, OBJECT_BLUGEM1, 1); +} + +void Room::trial5UseBlueGem2OnHole1() { + trial5UseGemOnHole(OBJECT_IBLUGEM2, OBJECT_BLUGEM2, 1); +} + +void Room::trial5UseBlueGem3OnHole1() { + trial5UseGemOnHole(OBJECT_IBLUGEM3, OBJECT_BLUGEM3, 1); +} + + +void Room::trial5UseRedGem1OnHole2() { + trial5UseGemOnHole(OBJECT_IREDGEM1, OBJECT_REDGEM1, 2); +} + +void Room::trial5UseRedGem2OnHole2() { + trial5UseGemOnHole(OBJECT_IREDGEM2, OBJECT_REDGEM2, 2); +} + +void Room::trial5UseRedGem3OnHole2() { + trial5UseGemOnHole(OBJECT_IREDGEM3, OBJECT_REDGEM3, 2); +} + +void Room::trial5UseGreenGem1OnHole2() { + trial5UseGemOnHole(OBJECT_IGRNGEM1, OBJECT_GRNGEM1, 2); +} + +void Room::trial5UseGreenGem2OnHole2() { + trial5UseGemOnHole(OBJECT_IGRNGEM2, OBJECT_GRNGEM2, 2); +} + +void Room::trial5UseGreenGem3OnHole2() { + trial5UseGemOnHole(OBJECT_IGRNGEM3, OBJECT_GRNGEM3, 2); +} + +void Room::trial5UseBlueGem1OnHole2() { + trial5UseGemOnHole(OBJECT_IBLUGEM1, OBJECT_BLUGEM1, 2); +} + +void Room::trial5UseBlueGem2OnHole2() { + trial5UseGemOnHole(OBJECT_IBLUGEM2, OBJECT_BLUGEM2, 2); +} + +void Room::trial5UseBlueGem3OnHole2() { + trial5UseGemOnHole(OBJECT_IBLUGEM3, OBJECT_BLUGEM3, 2); +} + + +void Room::trial5UseRedGem1OnHole3() { + trial5UseGemOnHole(OBJECT_IREDGEM1, OBJECT_REDGEM1, 3); +} + +void Room::trial5UseRedGem2OnHole3() { + trial5UseGemOnHole(OBJECT_IREDGEM2, OBJECT_REDGEM2, 3); +} + +void Room::trial5UseRedGem3OnHole3() { + trial5UseGemOnHole(OBJECT_IREDGEM3, OBJECT_REDGEM3, 3); +} + +void Room::trial5UseGreenGem1OnHole3() { + trial5UseGemOnHole(OBJECT_IGRNGEM1, OBJECT_GRNGEM1, 3); +} + +void Room::trial5UseGreenGem2OnHole3() { + trial5UseGemOnHole(OBJECT_IGRNGEM2, OBJECT_GRNGEM2, 3); +} + +void Room::trial5UseGreenGem3OnHole3() { + trial5UseGemOnHole(OBJECT_IGRNGEM3, OBJECT_GRNGEM3, 3); +} + +void Room::trial5UseBlueGem1OnHole3() { + trial5UseGemOnHole(OBJECT_IBLUGEM1, OBJECT_BLUGEM1, 3); +} + +void Room::trial5UseBlueGem2OnHole3() { + trial5UseGemOnHole(OBJECT_IBLUGEM2, OBJECT_BLUGEM2, 3); +} + +void Room::trial5UseBlueGem3OnHole3() { + trial5UseGemOnHole(OBJECT_IBLUGEM3, OBJECT_BLUGEM3, 3); +} + + +void Room::trial5UseMedkitAnywhere() { + showText(TX_SPEAKER_MCCOY, TX_TRI5_012); } } diff --git a/engines/startrek/text.h b/engines/startrek/text.h index a098aa0ad4..e8c22a398a 100644 --- a/engines/startrek/text.h +++ b/engines/startrek/text.h @@ -111,6 +111,11 @@ enum GameStringIDs { TX_SPEAKER_VLICT, TX_SPEAKER_KLINGON_GUARD, TX_SPEAKER_ENTITY, + TX_SPEAKER_BIALBI, + TX_SPEAKER_VOICE, + TX_SPEAKER_LIGHT_OF_WAR, + TX_SPEAKER_LIGHT_OF_KNOWLEDGE, + TX_SPEAKER_LIGHT_OF_TRAVEL, TX_BRIDU146, @@ -2346,6 +2351,81 @@ enum GameStringIDs { TX_TRI4_076, + TX_TRI5_001, + TX_TRI5_002, + TX_TRI5_003, + TX_TRI5_004, + TX_TRI5_005, + TX_TRI5_006, + TX_TRI5_007, + TX_TRI5_008, + TX_TRI5_009, + TX_TRI5_010, + TX_TRI5_011, + TX_TRI5_012, + TX_TRI5_013, + TX_TRI5_014, + TX_TRI5_015, + TX_TRI5_016, + TX_TRI5_017, + TX_TRI5_018, + TX_TRI5_019, + TX_TRI5_020, + TX_TRI5_021, + TX_TRI5_022, + TX_TRI5_023, + TX_TRI5_024, + TX_TRI5_025, + TX_TRI5_026, + TX_TRI5_027, + TX_TRI5_028, + TX_TRI5_029, + TX_TRI5_030, + TX_TRI5_031, + TX_TRI5_032, + TX_TRI5_033, + TX_TRI5_034, + TX_TRI5_035, + TX_TRI5_036, + TX_TRI5_037, + TX_TRI5_038, + TX_TRI5_039, + TX_TRI5_040, + TX_TRI5_041, + TX_TRI5_042, + TX_TRI5_043, + TX_TRI5_044, + TX_TRI5_045, + TX_TRI5_046, + TX_TRI5_047, + TX_TRI5_048, + TX_TRI5_049, + TX_TRI5_050, + TX_TRI5_051, + TX_TRI5_052, + // UNUSED (000 -> 001) + TX_TRI5N002, + // UNUSED (003) + TX_TRI5N004, + TX_TRI5N005, + TX_TRI5N006, + TX_TRI5N007, + TX_TRI5N008, + TX_TRI5N009, + TX_TRI5N010, + TX_TRI5N011, + TX_TRI5N012, + TX_TRI5N013, + TX_TRI5N014, + TX_TRI5N015, + TX_TRI5N016, + TX_TRI5N017, + TX_TRI5N018, + TX_TRI5N019, + TX_TRI5N020, + TX_TRI5N021, + + TX_SIN3_012, @@ -2409,6 +2489,11 @@ const char * const g_gameStrings[] = { "Vlict", "Klingon Guard", "Entity", + "Bialbi", + "A Voice Speaks", + "Light of War", + "Light of Knowledge", + "Light of Travel", "#BRID\\BRIDU146#Nothing to report, Captain.", @@ -4609,6 +4694,79 @@ const char * const g_gameStrings[] = { "#TRI4\\TRI4_076#You humans have an excellent imagination, but a poor grasp of reality.", + "#TRI5\\TRI5_001#Obviously, they want us to place the gems in the holes, but which one...", + "#TRI5\\TRI5_002#Gentlemen, I suggest we start trying to find out what this is. I have a feeling we've come some place Vlict wasn't expecting us to go.", + "#TRI5\\TRI5_003#Hoist on your own petard, eh, Vlict? Do you want me to help you?", + "#TRI5\\TRI5_004#I do not see what can be served by more killing.", + "#TRI5\\TRI5_005#I fear that politics will make it impossible. Your planet is in Klingon space. But I don't understand why the Klingons never detected you.", + "#TRI5\\TRI5_006#If I have your word that Quetzecoatl goes free, I'm willing to intervene to save you.", + "#TRI5\\TRI5_007#If I have your word that Quetzecoatl goes free, I'm willing to intervene to save you.", + "#TRI5\\TRI5_008#You tried to send me to my death. Now you can rot as you get what you deserve.", + "#TRI5\\TRI5_009#You tried to eliminate me. Now you can rot as you get what you deserve.", + "#TRI5\\TRI5_010#Captain, it seems to be some sort of interface device, but I do not know how to activate it.", + "#TRI5\\TRI5_011#Jim, I have no idea what it is. Why don't you try asking Spock.", + "#TRI5\\TRI5_012#Nobody needs healing, Jim, but you will if they harm my patient.", + "#TRI5\\TRI5_013#We've got to get out of here, Jim!", + "#TRI5\\TRI5_014#Even I can see that, you pointy-eared freak!", + "#TRI5\\TRI5_015#He really doesn't have a likable personality, does he?", + "#TRI5\\TRI5_016#I suspect Captain, that the machinery is activated by placing the gems in the proper slots. We should determine a system for this.", + "#TRI5\\TRI5_017#This is not Klingon technology, Captain.", + "#TRI5\\TRI5_018#Kirk!", + "#TRI5\\TRI5_019#Agreed!", + "#TRI5\\TRI5_020#Kirk! This is your doing!", + "#TRI5\\TRI5_021#Rrrrr. Very well. I agree to your terms.", + "#TRI5\\TRI5_022#You have no right to try me!", + "#TRI5\\TRI5_023#You want me to beg like a weakling child cowering before his betters!", + "#TRI5\\TRI5_024#This is Bialbi, the most advanced lifeform on this world. Thank you for informing us of the situation. It shall be resolved.", + "#TRI5\\TRI5_025#A life for a life is a just bargain. But his crimes are beyond count.", + "#TRI5\\TRI5_026#Admiral Vlict, the entity Quetzecoatl shall be set free. If you ever return to this sector, the sentence shall be carried out. No Klingon vessel may ever return to this world.", + "#TRI5\\TRI5_027#Admiral Vlict, this is the defensive system of Hrakkour. You have engaged in genocidal activities on this world. Have you anything to say before your sentence is passed?", + "#TRI5\\TRI5_028#As for you, Captain, you may return. I find your social development most pleasing.", + "#TRI5\\TRI5_029#I have as much right as you to conduct trials on this planet. You showed no justice to your victim. The penalty for injustice is death.", + "#TRI5\\TRI5_030#Idealism! An advanced concept! Naive, perhaps, but charming in its simplicity.", + "#TRI5\\TRI5_031#No, Admiral, it is not, but that will suffice as a final public statement. The sentence is banishment, to you and all members of your crew who were involved in this action.", + "#TRI5\\TRI5_032#Now, you may go. Heed my warning Vlict. I shall not be merciful a second time.", + "#TRI5\\TRI5_033#Their archeological digs did come close, Captain, but I am very elusive. I waited and monitored the situation and chose to reveal myself to you.", + "#TRI5\\TRI5_034#You will be returned to your ship, Captain. As will the creature who was unfairly punished. You need not witness the Klingon's punishment.", + "#TRI5\\TRI5_035#Not primed for neural interlink.", + "#TRI5\\TRI5_036#Alien vessels scanned.", + "#TRI5\\TRI5_037#Integrator now active", + "#TRI5\\TRI5_038#Telepathic entry codes required for greater than level One functions. Neural interlink at the integrator, and use the main index code of my light", + "#TRI5\\TRI5_039#That combination is restricted to higher order functions. Neural interlink required.", + "#TRI5\\TRI5_040#This is Bialbi, High Mentalic of Hrakkour. For defense, use the light of war. For information, use my light. For transportation, use the light of travel. Sequences are keyed by combinations of crystals.", + "#TRI5\\TRI5_041#To use any light, the first crystal must correspond to the color of the light.", + "#TRI5\\TRI5_042#Force field blocks trans-system transport. Transport aborted. Use defense systems to eliminate alien vessels.", + "#TRI5\\TRI5_043#That destination no longer exists. Transport abandoned.", + "#TRI5\\TRI5_044#There is damage in the archive section due to a recent neutrino burst. Transport aborted.", + "#TRI5\\TRI5_045#There is no battle site at present at which to transport you.", + "#TRI5\\TRI5_046#We can transport you only in proximity of nearest humanoid life. Transport imminent.", + "#TRI5\\TRI5_047#Alien vessels scanned.", + "#TRI5\\TRI5_048#Breach of protocol. Alien invasion imminent. Internal security activated.", + "#TRI5\\TRI5_049#Internal defenses off line. Failsafes cancelled.", + "#TRI5\\TRI5_050#Planetary defenses revived. All alien vessels in orbit destroyed.", + "#TRI5\\TRI5_051#I guess I should've taken a few more science courses at the Academy.", + "#TRI5\\TRI5_052#What is this place?", + "#TRI5\\TRI5N002#A platform emitting a beam light.", + "#TRI5\\TRI5N004#A strange yellow light.", + "#TRI5\\TRI5N005#James T. Kirk, hero of the galaxy!", + "#TRI5\\TRI5N006#Openings on the platform. Place something in these holes?", + "#TRI5\\TRI5N007#Your communicator is not working.", + "#TRI5\\TRI5N008#Your ever emotional friend, Dr. McCoy.", + "#TRI5\\TRI5N009#Your ever logical friend, Spock.", + "#TRI5\\TRI5N010#Your ever nervous crewman, Ensign Bennie.", + "#TRI5\\TRI5N011#Your phaser is not working.", + "#TRI5\\TRI5N012#Your tricorder's recording functions are working, but it does not seem to be able to analyze.", + "#TRI5\\TRI5N013#This large gem appears to be a ruby of unusual size. This is obviously artificial.", + "#TRI5\\TRI5N014#This large gem appears to be a ruby of unusual size. This is obviously artificial.", + "#TRI5\\TRI5N015#This large gem appears to be a ruby of unusual size. This is obviously artificial.", + "#TRI5\\TRI5N016#This large gem appears to be a saphire of unusual size. This is obviously artificial.", + "#TRI5\\TRI5N017#This large gem appears to be a saphire of unusual size. This is obviously artificial.", + "#TRI5\\TRI5N018#This large gem appears to be a saphire of unusual size. This is obviously artificial.", + "#TRI5\\TRI5N019#This large gem appears to be a emerald of unusual size. This is obviously artificial.", + "#TRI5\\TRI5N020#This large gem appears to be a emerald of unusual size. This is obviously artificial.", + "#TRI5\\TRI5N021#This large gem appears to be a emerald of unusual size. This is obviously artificial.", + + "#SIN3\\SIN3_012#Can't say I like the decor.", |