Script Greet :
PrintText (#0 "");
ObjetTraFile [#63/C0 "greetRnd"] = Random [0;7[;
if (ObjetTraFile [#63/C0 "greetRnd"] == 0) {
PrintText (#3 "Your compliments serve nothing.");
}
if (ObjetTraFile [#63/C0 "greetRnd"] == 1) {
PrintText (#4 "I don't like compliments...");
}
if (ObjetTraFile [#63/C0 "greetRnd"] == 2) {
PrintText (#5 "...Hummm...");
}
if (ObjetTraFile [#63/C0 "greetRnd"] == 3) {
PrintText (#6 "These sarcasms won't save you.");
PrintText (#7 "");
}
if (ObjetTraFile [#63/C0 "greetRnd"] == 4) {
PrintText (#8 "So be it...");
}
if (ObjetTraFile [#63/C0 "greetRnd"] == 5) {
PrintText (#9 "...Greetings...");
}
if (ObjetTraFile [#63/C0 "greetRnd"] == 6) {
PrintText (#10 "You seem to be yourself");
PrintText (#11 "strong glorious warriors.");
}
return;
--------------------------------------------------------------------------------
Script Room_00 :
if (ObjetTraFile [#76/30 "activationType"] == 3 "3: Inspect") {
if (ObjetTraFile [#77/80 "activationValue"] == 15) {
DoOnce {
ObjetTraFile [#87/30 "Find accessory: type"] = 1 "1: Sceptre";
ObjetTraFile [#91/40 "Find accessory: effectIndex (Scepter, Ring)"] = 14 "14: RecuperationA";
ObjetTraFile [#92/30 "Fill accessory: nbUses (Phial) or textIndexInFile (SpellBook)"] = 0;
SpecialAction (#6 "F_A0_B3_H06_FindAccessory");
}
}
}
ObjetTraFile [#69/C0 "counterD"] = ObjetTraFile [#69/C0 "counterD"] + 1;
if (ObjetTraFile [#96/40 "Game_state"] == 11) {
if (ObjetTraFile [#35/10 "D1R00 isPrinceHaaggkhenWaterDead"] == 0) {
DoOnce {
ObjetTraFile [#69/C0 "counterD"] = 0;
ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 50 "Prince Haaggkhen";
ObjetTraFile [#80/50 "Spawn encounter: level"] = 21;
ObjetTraFile [#81/30 "Spawn encounter: priority"] = 5;
ObjetTraFile [#82/80 "Spawn encounter: x"] = 60;
ObjetTraFile [#83/70 "Spawn encounter: y"] = 122;
ObjetTraFile [#85/40 "encounterActiveIndex"] = 1;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
ObjetTraFile [#41/08 "Encounter1: initial HP"] = ObjetTraFile [#41/80 "Encounter1: HP"];
PrintText (#12 "Well, well, humans again!");
PrintText (#13 "You want to hold a meeting at");
PrintText (#14 "my place? That's bad news, I");
PrintText (#15 "haven't any rooms free.");
}
if (ObjetTraFile [#41/80 "Encounter1: HP"] <> 0) {
if (ObjetTraFile [#69/C0 "counterD"] == 40) {
DoOnce {
PrintText (#0 "");
PrintText (#16 "...I have a nice gaol with a");
PrintText (#17 "view of the sewers. It's good");
PrintText (#18 "enough for rats like");
PrintText (#19 "you.");
}
}
if (ObjetTraFile [#69/C0 "counterD"] <> 100) {
if (ObjetTraFile [#76/30 "activationType"] <> 1 "1: Question")
Goto Label_AF;
}
DoOnce {
ObjetTraFile [#69/C0 "counterD"] = 100;
PrintText (#0 "");
PrintText (#20 "Surrender or it would give me");
PrintText (#21 "pleasure to add you to my");
PrintText (#22 "collection of the living dead.");
}
Label_AF
if (ObjetTraFile [#69/C0 "counterD"] <> 200)
Goto Label_DB;
DoOnce
Goto Label_DB;
PrintText (#0 "");
PrintText (#23 "I will rip you to shreads with");
PrintText (#24 "my bare hands, dirty dogs!");
Goto Label_DB;
}
ObjetTraFile [#35/10 "D1R00 isPrinceHaaggkhenWaterDead"] = 1;
ObjetTraFile [#14/10 "Tear #6 D1R00 Prince Haaggkhen (Water)"] = 1;
ObjetTraFile [#96/40 "Game_state"] = 12;
ObjetTraFile [#89/30 "Find armor: listIndex"] = 1 "List1: Cuirasses";
ObjetTraFile [#90/20 "Find weapon/armor: mod"] = 2;
SpecialAction (#8 "F_A0_B3_H08_FindArmor");
ObjetTraFile [#89/30 "Find armor: listIndex"] = 2 "List2: Greaves";
ObjetTraFile [#90/20 "Find weapon/armor: mod"] = 0;
SpecialAction (#8 "F_A0_B3_H08_FindArmor");
}
}
Label_DB
return;
--------------------------------------------------------------------------------
Script Room_01 :
DoOnce {
ObjetTraFile [#65/C0 "Earn XP: amount"] = 20;
SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience");
}
if (ObjetTraFile [#76/30 "activationType"] == 3 "3: Inspect") {
if (ObjetTraFile [#77/80 "activationValue"] == 9) {
DoOnce {
ObjetTraFile [#87/30 "Find accessory: type"] = 0 "0: SpellBook";
ObjetTraFile [#92/30 "Fill accessory: nbUses (Phial) or textIndexInFile (SpellBook)"] = 2;
SpecialAction (#6 "F_A0_B3_H06_FindAccessory");
}
}
if (ObjetTraFile [#77/80 "activationValue"] == 10) {
DoOnce {
ObjetTraFile [#87/30 "Find accessory: type"] = 0 "0: SpellBook";
ObjetTraFile [#92/30 "Fill accessory: nbUses (Phial) or textIndexInFile (SpellBook)"] = 3;
SpecialAction (#6 "F_A0_B3_H06_FindAccessory");
}
}
}
return;
--------------------------------------------------------------------------------
Script Room_02 :
DoOnce {
ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 0;
if (ObjetTraFile [#70/10 "isVisible"] == 1) {
PrintText (#0 "");
PrintText (#26 "Get out of here, you are in");
PrintText (#27 "the Prince's appartments.");
ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1;
}
ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 3 "Lizard Warrior";
ObjetTraFile [#80/50 "Spawn encounter: level"] = 12;
ObjetTraFile [#81/30 "Spawn encounter: priority"] = 1;
ObjetTraFile [#82/80 "Spawn encounter: x"] = 80;
ObjetTraFile [#83/70 "Spawn encounter: y"] = 120;
ObjetTraFile [#85/40 "encounterActiveIndex"] = 0;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
ObjetTraFile [#82/80 "Spawn encounter: x"] = 120;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
ObjetTraFile [#65/C0 "Earn XP: amount"] = 30;
SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience");
}
if (ObjetTraFile [#76/30 "activationType"] == 1 "1: Question") {
DoOnce {
PrintText (#0 "");
PrintText (#26 "Get out of here, you are in");
PrintText (#27 "the Prince's appartments.");
}
}
return;
--------------------------------------------------------------------------------
Script Room_03 :
DoOnce {
ObjetTraFile [#65/C0 "Earn XP: amount"] = 80;
SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience");
ObjetTraFile [#68/C0 "counterC"] = 99;
}
ObjetTraFile [#75/30 "roomTypeFX"] = 3 "3: orange/green checkered ground";
ObjetTraFile [#68/C0 "counterC"] = ObjetTraFile [#68/C0 "counterC"] + 1;
if (ObjetTraFile [#68/C0 "counterC"] >= 100) {
ObjetTraFile [#68/C0 "counterC"] = 0;
ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 33 "Bat";
ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1;
ObjetTraFile [#80/50 "Spawn encounter: level"] = 19;
ObjetTraFile [#81/30 "Spawn encounter: priority"] = 1;
ObjetTraFile [#82/80 "Spawn encounter: x"] = 80;
ObjetTraFile [#83/70 "Spawn encounter: y"] = 120;
ObjetTraFile [#85/40 "encounterActiveIndex"] = 0;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
}
return;
--------------------------------------------------------------------------------
Script Room_04 :
if (ObjetTraFile [#76/30 "activationType"] == 3 "3: Inspect") {
if (ObjetTraFile [#77/80 "activationValue"] == 1) {
DoOnce {
ObjetTraFile [#87/30 "Find accessory: type"] = 0 "0: SpellBook";
ObjetTraFile [#92/30 "Fill accessory: nbUses (Phial) or textIndexInFile (SpellBook)"] = 4;
SpecialAction (#6 "F_A0_B3_H06_FindAccessory");
}
}
}
return;
--------------------------------------------------------------------------------
Script Room_06 :
DoOnce {
if (ObjetTraFile [#70/10 "isVisible"] == 1) {
PrintText (#0 "");
PrintText (#30 "You hear noises coming from");
PrintText (#31 "the back room.");
}
ObjetTraFile [#65/C0 "Earn XP: amount"] = 40;
SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience");
}
if (ObjetTraFile [#76/30 "activationType"] == 3 "3: Inspect") {
if (ObjetTraFile [#77/80 "activationValue"] == 16) {
PrintText (#0 "");
PrintText (#32 "When the wind is clear");
PrintText (#33 "The sky will darken.");
PrintText (#34 "When the thunder rolls,");
PrintText (#35 "The Quest will go on.");
DoOnce {
ObjetTraFile [#87/30 "Find accessory: type"] = 3 "3: Ring";
ObjetTraFile [#91/40 "Find accessory: effectIndex (Scepter, Ring)"] = 4 "4: Strength +2";
ObjetTraFile [#92/30 "Fill accessory: nbUses (Phial) or textIndexInFile (SpellBook)"] = 0;
SpecialAction (#6 "F_A0_B3_H06_FindAccessory");
}
}
}
return;
--------------------------------------------------------------------------------
Script Room_07 :
DoOnce {
PrintText (#0 "");
PrintText (#36 "Approach and look at the");
PrintText (#37 "dead embers...");
ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 59 "Mouth";
ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 0;
ObjetTraFile [#80/50 "Spawn encounter: level"] = 12;
ObjetTraFile [#81/30 "Spawn encounter: priority"] = 4;
ObjetTraFile [#82/80 "Spawn encounter: x"] = 120;
ObjetTraFile [#83/70 "Spawn encounter: y"] = 114;
ObjetTraFile [#85/40 "encounterActiveIndex"] = 0;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
ObjetTraFile [#65/C0 "Earn XP: amount"] = 50;
SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience");
}
if (ObjetTraFile [#77/80 "activationValue"] == 2) {
PrintText (#0 "");
PrintText (#38 "Poor idiot !");
ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 55 "Flame";
ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1;
ObjetTraFile [#80/50 "Spawn encounter: level"] = 23;
ObjetTraFile [#81/30 "Spawn encounter: priority"] = 1;
ObjetTraFile [#82/80 "Spawn encounter: x"] = 80;
ObjetTraFile [#83/70 "Spawn encounter: y"] = 120;
ObjetTraFile [#85/40 "encounterActiveIndex"] = 0;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
ObjetTraFile [#82/80 "Spawn encounter: x"] = 120;
ObjetTraFile [#83/70 "Spawn encounter: y"] = 120;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
}
return;
--------------------------------------------------------------------------------
Script Room_09 :
DoOnce {
ObjetTraFile [#65/C0 "Earn XP: amount"] = 50;
SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience");
}
ObjetTraFile [#69/C0 "counterD"] = ObjetTraFile [#69/C0 "counterD"] + 1;
if (ObjetTraFile [#77/80 "activationValue"] == 6) {
if (ObjetTraFile [#69/C0 "counterD"] >= 50) {
ObjetTraFile [#69/C0 "counterD"] = 0;
ObjetTraFile [#95/60 "HP amount"] = Random [0;16[;
SpecialAction (#9 "F_A0_B3_H09_HealCharacter");
}
}
if (ObjetTraFile [#77/80 "activationValue"] == 13) {
if (ObjetTraFile [#76/30 "activationType"] == 3 "3: Inspect") {
PrintText (#1 "You see");
PrintText (#41 "A priest making a spell");
PrintText (#42 "in the middle of a");
PrintText (#43 "stonehenge.");
}
}
return;
--------------------------------------------------------------------------------
Script Room_10 :
DoOnce {
if (ObjetTraFile [#70/10 "isVisible"] == 1) {
PrintText (#0 "");
PrintText (#44 "The colour of Hope");
PrintText (#45 "is not always beneficial.");
}
}
return;
--------------------------------------------------------------------------------
Script Room_11 :
DoOnce {
ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 0;
if (ObjetTraFile [#70/10 "isVisible"] == 1) {
PrintText (#0 "");
PrintText (#46 "Ha! Again prisoners...");
PrintText (#47 "No? What are you doing here?");
ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1;
}
ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 4 "Lizard Knight";
ObjetTraFile [#80/50 "Spawn encounter: level"] = 15;
ObjetTraFile [#81/30 "Spawn encounter: priority"] = 1;
ObjetTraFile [#82/80 "Spawn encounter: x"] = 35;
ObjetTraFile [#83/70 "Spawn encounter: y"] = 113;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 3 "Lizard Warrior";
ObjetTraFile [#82/80 "Spawn encounter: x"] = 35;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
}
return;
--------------------------------------------------------------------------------
Script Room_12_Start :
DoOnce {
ObjetTraFile [#65/C0 "Earn XP: amount"] = 260;
SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience");
}
Reset_2AB
DoOnce {
ObjetTraFile [#79/50 "Spawn encounter: baseLevel"] = 5;
ObjetTraFile [#28/10 "D1R12_isForceFieldDisabled"] = 0;
ObjetTraFile [#72/50 "roomIndexB"] = 12;
ObjetTraFile [#71/50 "roomIndexA"] = 13;
ObjetTraFile [#74/30 "roomExitIndex"] = 0 "0: Left";
ObjetTraFile [#75/30 "roomTypeFX"] = 1 "1: doors lightning";
SpecialAction (#1 "F_A0_B3_H01_DisableAndLockExit");
ObjetTraFile [#71/50 "roomIndexA"] = 10;
ObjetTraFile [#74/30 "roomExitIndex"] = 2 "2: Top Mid";
SpecialAction (#1 "F_A0_B3_H01_DisableAndLockExit");
PrintText (#0 "");
PrintText (#52 "You have just broken into the");
PrintText (#53 "palace of Prince Haaggkhen,");
PrintText (#54 "the Prince of Water...");
}
if (ObjetTraFile [#76/30 "activationType"] == 3 "3: Inspect") {
PrintText (#0 "");
if (ObjetTraFile [#77/80 "activationValue"] <> 11) {
if (ObjetTraFile [#77/80 "activationValue"] <> 12)
Goto Label_2EB;
}
PrintText (#1 "You see");
PrintText (#51 "an elementary symbol");
Goto Label_2F5;
Label_2EB
if (ObjetTraFile [#28/10 "D1R12_isForceFieldDisabled"] == 0) {
PrintText (#48 "A powerful energy field");
PrintText (#49 "blocks the passages");
PrintText (#50 "Name me...");
}
}
Label_2F5
if (ObjetTraFile [#76/30 "activationType"] == 2 "2: Activate") {
if (ObjetTraFile [#28/10 "D1R12_isForceFieldDisabled"] == 0) {
if (ObjetTraFile [#77/80 "activationValue"] == 11) {
ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 3 "Lizard Warrior";
ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1;
ObjetTraFile [#80/50 "Spawn encounter: level"] = ObjetTraFile [#79/50 "Spawn encounter: baseLevel"];
ObjetTraFile [#81/30 "Spawn encounter: priority"] = 0;
ObjetTraFile [#82/80 "Spawn encounter: x"] = 218;
ObjetTraFile [#83/70 "Spawn encounter: y"] = 117;
ObjetTraFile [#85/40 "encounterActiveIndex"] = 0;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
ObjetTraFile [#82/80 "Spawn encounter: x"] = 127;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
PrintText (#0 "");
PrintText (#56 "Get out! Only the initiated");
PrintText (#57 "may enter these places!");
ObjetTraFile [#79/50 "Spawn encounter: baseLevel"] = ObjetTraFile [#79/50 "Spawn encounter: baseLevel"] + 2;
}
if (ObjetTraFile [#77/80 "activationValue"] == 12) {
ObjetTraFile [#72/50 "roomIndexB"] = 12;
ObjetTraFile [#71/50 "roomIndexA"] = 13;
ObjetTraFile [#74/30 "roomExitIndex"] = 0 "0: Left";
ObjetTraFile [#75/30 "roomTypeFX"] = 0 "0: no FX";
SpecialAction (#0 "F_A0_B3_H00_EnableAndOpenExit");
ObjetTraFile [#71/50 "roomIndexA"] = 10;
ObjetTraFile [#74/30 "roomExitIndex"] = 2 "2: Top Mid";
SpecialAction (#0 "F_A0_B3_H00_EnableAndOpenExit");
ObjetTraFile [#28/10 "D1R12_isForceFieldDisabled"] = 1;
PrintText (#0 "");
PrintText (#55 "The magic disappears.");
}
}
}
return;
--------------------------------------------------------------------------------
Script Room_13_NotUsed :
DoOnce {
if (ObjetTraFile [#70/10 "isVisible"] == 1) {
PrintText (#0 "");
PrintText (#58 "Be wary of Haaggkhen, he loves");
PrintText (#59 "to call up the living dead.");
PrintText (#60 "He has put them everywhere in");
PrintText (#61 "his appartments.");
}
ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 40 "Goblin";
ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 0;
ObjetTraFile [#80/50 "Spawn encounter: level"] = 8;
ObjetTraFile [#81/30 "Spawn encounter: priority"] = 1;
ObjetTraFile [#82/80 "Spawn encounter: x"] = 120;
ObjetTraFile [#83/70 "Spawn encounter: y"] = 113;
ObjetTraFile [#85/40 "encounterActiveIndex"] = 0;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
}
return;
--------------------------------------------------------------------------------
Script Room_14 :
DoOnce {
ObjetTraFile [#65/C0 "Earn XP: amount"] = 200;
SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience");
}
SpecialAction (#13 "F_A0_B3_H13_DispelPartyMagic");
ObjetTraFile [#75/30 "roomTypeFX"] = 6 "6: blue water ground";
ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 56 "Water Elemental";
ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1;
ObjetTraFile [#80/50 "Spawn encounter: level"] = 10;
ObjetTraFile [#81/30 "Spawn encounter: priority"] = 2;
ObjetTraFile [#82/80 "Spawn encounter: x"] = 35;
ObjetTraFile [#83/70 "Spawn encounter: y"] = 113;
ObjetTraFile [#85/40 "encounterActiveIndex"] = 0;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
return;
--------------------------------------------------------------------------------
Script Room_15 :
DoOnce {
ObjetTraFile [#65/C0 "Earn XP: amount"] = 110;
SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience");
}
DoOnce {
ObjetTraFile [#72/50 "roomIndexB"] = 15;
ObjetTraFile [#71/50 "roomIndexA"] = 8;
ObjetTraFile [#74/30 "roomExitIndex"] = 5 "5: Bottom Right";
ObjetTraFile [#75/30 "roomTypeFX"] = 0 "0: no FX";
SpecialAction (#1 "F_A0_B3_H01_DisableAndLockExit");
ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 4 "Lizard Knight";
ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1;
ObjetTraFile [#80/50 "Spawn encounter: level"] = 6;
ObjetTraFile [#81/30 "Spawn encounter: priority"] = 3;
ObjetTraFile [#82/80 "Spawn encounter: x"] = 80;
ObjetTraFile [#83/70 "Spawn encounter: y"] = 113;
ObjetTraFile [#85/40 "encounterActiveIndex"] = 3;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
ObjetTraFile [#82/80 "Spawn encounter: x"] = 120;
ObjetTraFile [#85/40 "encounterActiveIndex"] = 4;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
}
if (ObjetTraFile [#39/80 "Encounter3: HP"] == 0) {
if (ObjetTraFile [#38/80 "Encounter4: HP"] == 0) {
ObjetTraFile [#72/50 "roomIndexB"] = 15;
ObjetTraFile [#71/50 "roomIndexA"] = 8;
ObjetTraFile [#74/30 "roomExitIndex"] = 5 "5: Bottom Right";
SpecialAction (#0 "F_A0_B3_H00_EnableAndOpenExit");
}
}
return;
--------------------------------------------------------------------------------
Script Room_16 :
DoOnce {
PrintText (#0 "");
PrintText (#62 "How dare you, mortal...?");
ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 30 "Spectre";
ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1;
ObjetTraFile [#80/50 "Spawn encounter: level"] = 10;
ObjetTraFile [#81/30 "Spawn encounter: priority"] = 4;
ObjetTraFile [#82/80 "Spawn encounter: x"] = 35;
ObjetTraFile [#83/70 "Spawn encounter: y"] = 113;
ObjetTraFile [#85/40 "encounterActiveIndex"] = 0;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
ObjetTraFile [#69/C0 "counterD"] = 0;
ObjetTraFile [#65/C0 "Earn XP: amount"] = 210;
SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience");
}
if (ObjetTraFile [#77/80 "activationValue"] == 10) {
if (ObjetTraFile [#69/C0 "counterD"] == 0) {
ObjetTraFile [#75/30 "roomTypeFX"] = 2 "2: D1R16 trap";
}
}
if (ObjetTraFile [#76/30 "activationType"] == 3 "3: Inspect") {
if (ObjetTraFile [#77/80 "activationValue"] == 18) {
PrintText (#2 "You read engraved in the stone:");
PrintText (#63 "SOURCE OF LIFE...");
ObjetTraFile [#06/10 "Grave #6 (D1R16 Left) "SOURCE OF LIFE...""] = 1;
}
if (ObjetTraFile [#77/80 "activationValue"] == 19) {
PrintText (#2 "You read engraved in the stone:");
PrintText (#64 "... AND DEATH.");
ObjetTraFile [#05/10 "Grave #5 (D1R16 Right) "... AND DEATH.""] = 1;
}
}
ObjetTraFile [#69/C0 "counterD"] = ObjetTraFile [#69/C0 "counterD"] + 1;
ObjetTraFile [#69/C0 "counterD"] = ObjetTraFile [#69/C0 "counterD"] & 3;
return;
--------------------------------------------------------------------------------
Script Room_17 :
Reset_46E
DoOnce {
ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 6 "Hungry Door";
ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1;
ObjetTraFile [#80/50 "Spawn encounter: level"] = 6;
ObjetTraFile [#81/30 "Spawn encounter: priority"] = 2;
ObjetTraFile [#82/80 "Spawn encounter: x"] = 21;
ObjetTraFile [#83/70 "Spawn encounter: y"] = 105;
ObjetTraFile [#85/40 "encounterActiveIndex"] = 0;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 26 "Crocodile";
ObjetTraFile [#80/50 "Spawn encounter: level"] = 6;
ObjetTraFile [#82/80 "Spawn encounter: x"] = 180;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
}
return;
--------------------------------------------------------------------------------
Script Room_18 :
ObjetTraFile [#66/C0 "counterA"] = ObjetTraFile [#66/C0 "counterA"] + 1;
if (ObjetTraFile [#70/10 "isVisible"] == 1) {
if (ObjetTraFile [#96/40 "Game_state"] == 3)
Goto Label_4AD;
}
if (ObjetTraFile [#96/40 "Game_state"] == 4) {
Label_4AD
DoOnce {
PrintText (#0 "");
PrintText (#65 "A prisoner who tells you");
PrintText (#66 "to warn Nakhtkhen that");
PrintText (#67 "he will be attacked by");
PrintText (#68 "the armies of the Conspiracy.");
ObjetTraFile [#96/40 "Game_state"] = 4;
ObjetTraFile [#57/10 "D1R18 isPrisonerFree"] = 0;
}
if (ObjetTraFile [#76/30 "activationType"] == 1 "1: Question") {
if (ObjetTraFile [#57/10 "D1R18 isPrisonerFree"] == 0) {
PrintText (#0 "");
PrintText (#71 "Please, free me.");
PrintText (#72 "Prince Haaggkhen will");
PrintText (#73 "torture me if not worse.");
}
}
if (ObjetTraFile [#76/30 "activationType"] == 1 "1: Question") {
if (ObjetTraFile [#57/10 "D1R18 isPrisonerFree"] == 0) {
PrintText (#0 "");
PrintText (#74 "The handle, just over there,");
PrintText (#75 "do you see it...?");
}
}
if (ObjetTraFile [#76/30 "activationType"] == 1 "1: Question") {
if (ObjetTraFile [#57/10 "D1R18 isPrisonerFree"] == 0) {
PrintText (#0 "");
PrintText (#76 "The Prince is cruel and adores");
PrintText (#77 "Magic. If you free me");
PrintText (#78 "I will tell you a secret.");
}
}
if (ObjetTraFile [#76/30 "activationType"] == 2 "2: Activate") {
if (ObjetTraFile [#77/80 "activationValue"] == 17) {
ObjetTraFile [#57/10 "D1R18 isPrisonerFree"] = 1;
PrintText (#0 "");
PrintText (#69 "Thank you. Don't watch the");
PrintText (#70 "stars, they are dangerous.");
}
}
if (ObjetTraFile [#76/30 "activationType"] == 1 "1: Question") {
if (ObjetTraFile [#57/10 "D1R18 isPrisonerFree"] == 1) {
PrintText (#0 "");
PrintText (#79 "Beware of the elements.");
PrintText (#80 "They are totally under the");
PrintText (#81 "will of their Prince.");
}
}
}
return;
--------------------------------------------------------------------------------
Script Room_20 :
DoOnce {
ObjetTraFile [#65/C0 "Earn XP: amount"] = 50;
SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience");
}
if (ObjetTraFile [#77/80 "activationValue"] == 4) {
ObjetTraFile [#72/50 "roomIndexB"] = 25;
ObjetTraFile [#71/50 "roomIndexA"] = 26;
ObjetTraFile [#74/30 "roomExitIndex"] = 5 "5: Bottom Right";
ObjetTraFile [#75/30 "roomTypeFX"] = 0 "0: no FX";
SpecialAction (#1 "F_A0_B3_H01_DisableAndLockExit");
}
return;
--------------------------------------------------------------------------------
Script Room_21 :
DoOnce {
PrintText (#0 "");
PrintText (#36 "Approach and look at the");
PrintText (#37 "dead embers...");
ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 59 "Mouth";
ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 0;
ObjetTraFile [#80/50 "Spawn encounter: level"] = 2;
ObjetTraFile [#81/30 "Spawn encounter: priority"] = 3;
ObjetTraFile [#82/80 "Spawn encounter: x"] = 120;
ObjetTraFile [#83/70 "Spawn encounter: y"] = 114;
ObjetTraFile [#85/40 "encounterActiveIndex"] = 0;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
}
if (ObjetTraFile [#77/80 "activationValue"] == 3) {
Reset_55B
DoOnce {
ObjetTraFile [#72/50 "roomIndexB"] = 25;
ObjetTraFile [#71/50 "roomIndexA"] = 26;
ObjetTraFile [#74/30 "roomExitIndex"] = 5 "5: Bottom Right";
SpecialAction (#0 "F_A0_B3_H00_EnableAndOpenExit");
PlaySound (#2);
}
}
return;
--------------------------------------------------------------------------------
Script Room_22 :
DoOnce {
if (ObjetTraFile [#70/10 "isVisible"] == 1) {
PrintText (#0 "");
PrintText (#82 "The master receives nobody.");
}
ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 2 "Lizard";
ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1;
ObjetTraFile [#80/50 "Spawn encounter: level"] = 5;
ObjetTraFile [#81/30 "Spawn encounter: priority"] = 1;
ObjetTraFile [#82/80 "Spawn encounter: x"] = 80;
ObjetTraFile [#83/70 "Spawn encounter: y"] = 120;
ObjetTraFile [#85/40 "encounterActiveIndex"] = 0;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
ObjetTraFile [#82/80 "Spawn encounter: x"] = 120;
ObjetTraFile [#83/70 "Spawn encounter: y"] = 120;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
}
return;
--------------------------------------------------------------------------------
Script Room_23 :
DoOnce {
ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 54 "Rats";
ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1;
ObjetTraFile [#80/50 "Spawn encounter: level"] = 12;
ObjetTraFile [#81/30 "Spawn encounter: priority"] = 1;
ObjetTraFile [#82/80 "Spawn encounter: x"] = 80;
ObjetTraFile [#83/70 "Spawn encounter: y"] = 120;
ObjetTraFile [#85/40 "encounterActiveIndex"] = 0;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
ObjetTraFile [#82/80 "Spawn encounter: x"] = 120;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
}
return;
--------------------------------------------------------------------------------
Script Room_25 :
DoOnce {
if (ObjetTraFile [#70/10 "isVisible"] == 1) {
PrintText (#0 "");
PrintText (#83 "A fetid smell irritates you.");
PrintText (#84 "You notice something behind");
PrintText (#85 "the barrels.");
}
ObjetTraFile [#65/C0 "Earn XP: amount"] = 40;
SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience");
}
if (ObjetTraFile [#77/80 "activationValue"] == 14) {
if (ObjetTraFile [#76/30 "activationType"] == 3 "3: Inspect") {
DoOnce {
ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 35 "Asp";
ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1;
ObjetTraFile [#80/50 "Spawn encounter: level"] = 8;
ObjetTraFile [#81/30 "Spawn encounter: priority"] = 1;
ObjetTraFile [#82/80 "Spawn encounter: x"] = 80;
ObjetTraFile [#83/70 "Spawn encounter: y"] = 120;
ObjetTraFile [#85/40 "encounterActiveIndex"] = 0;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
}
}
}
return;
--------------------------------------------------------------------------------
Script Room_26 :
DoOnce {
ObjetTraFile [#65/C0 "Earn XP: amount"] = 150;
SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience");
}
if (ObjetTraFile [#77/80 "activationValue"] == 7) {
if (ObjetTraFile [#76/30 "activationType"] == 3 "3: Inspect") {
PrintText (#0 "");
PrintText (#86 "The water trickles gently in");
PrintText (#87 "the pool.");
}
if (ObjetTraFile [#76/30 "activationType"] == 4 "4: use item ?") {
ObjetTraFile [#92/30 "Fill accessory: nbUses (Phial) or textIndexInFile (SpellBook)"] = 6;
ObjetTraFile [#93/50 "Fill accessory: effectIndex (Phial)"] = 11 "11: POI Poison";
SpecialAction (#2 "F_A0_B3_H02_FillPhial");
}
}
return;
--------------------------------------------------------------------------------
Script Room_27 :
if (ObjetTraFile [#76/30 "activationType"] <> 2 "2: Activate") {
if (ObjetTraFile [#76/30 "activationType"] <> 3 "3: Inspect")
Goto Label_654;
}
if (ObjetTraFile [#77/80 "activationValue"] == 5) {
ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 30 "Spectre";
ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1;
ObjetTraFile [#80/50 "Spawn encounter: level"] = 10;
ObjetTraFile [#81/30 "Spawn encounter: priority"] = 0;
ObjetTraFile [#82/80 "Spawn encounter: x"] = 80;
ObjetTraFile [#83/70 "Spawn encounter: y"] = 113;
ObjetTraFile [#85/40 "encounterActiveIndex"] = 0;
SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter");
}
Label_654
return;
--------------------------------------------------------------------------------
Script Room_28 :
DoOnce {
ObjetTraFile [#65/C0 "Earn XP: amount"] = 70;
SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience");
}
Reset_65D
DoOnce {
PrintText (#0 "");
PrintText (#88 "The obstacles never stop");
PrintText (#89 "running water.");
}
if (ObjetTraFile [#76/30 "activationType"] == 3 "3: Inspect") {
if (ObjetTraFile [#77/80 "activationValue"] == 8) {
PrintText (#0 "");
PrintText (#90 "As your fingers touch the");
PrintText (#91 "water, you are teleported.");
ObjetTraFile [#71/50 "roomIndexA"] = 14;
SpecialAction (#12 "F_A0_B3_H12_TeleportCharacter");
}
}
return;
--------------------------------------------------------------------------------
Script CheckWin :
if (ObjetTraFile [#96/40 "Game_state"] == 13) {
if (ObjetTraFile [#16/10 "Tear #8 D0R13 Prince Hordtkhen (Earth)"] == 1) {
if (ObjetTraFile [#15/10 "Tear #7 D2R29 Princess Hordtkha (Earth)"] == 1) {
if (ObjetTraFile [#14/10 "Tear #6 D1R00 Prince Haaggkhen (Water)"] == 1) {
if (ObjetTraFile [#13/10 "Tear #5 D3R00 Princess Haaggkha (Water)"] == 1) {
if (ObjetTraFile [#12/10 "Tear #4 D2R16 Prince Nakhtkhen (Air)"] == 1) {
if (ObjetTraFile [#11/10 "Tear #3 D2R01 Princess Nakhtkha (Air)"] == 1) {
if (ObjetTraFile [#10/10 "Tear #2 D5R01 Prince Hazhulkhen (Fire)"] == 1) {
if (ObjetTraFile [#09/10 "Tear #1 D4R26 Princess Hazhulkha (Fire)"] == 1) {
if (ObjetTraFile [#08/10 "Grave #8 (D0R25 Left) "ALMIGHTY...""] == 1) {
if (ObjetTraFile [#07/10 "Grave #7 (D0R25 Right) "...GOD.""] == 1) {
if (ObjetTraFile [#06/10 "Grave #6 (D1R16 Left) "SOURCE OF LIFE...""] == 1) {
if (ObjetTraFile [#05/10 "Grave #5 (D1R16 Right) "... AND DEATH.""] == 1) {
if (ObjetTraFile [#04/10 "Grave #4 (D2R26) Left "FROM YOUR HUMBLE...""] == 1) {
if (ObjetTraFile [#03/10 "Grave #3 (D2R26) Right "...SERVANTS.""] == 1) {
if (ObjetTraFile [#02/10 "Grave #2 (D5R26) Left "ACCEPT ...""] == 1) {
if (ObjetTraFile [#01/10 "Grave #1 (D5R26) Right "... THE REMORSE.""] == 1) {
ObjetTraFile [#96/40 "Game_state"] = 14;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
return;
--------------------------------------------------------------------------------
Script Main :
Reset_Load
DoOnce {
ResetLoop at 000002AB (000C2B10)
ResetLoop at 0000065D (000C3274)
ResetLoop at 0000055B (000C3070)
ResetLoop at 0000046E (000C2E96)
}
Call CheckWin ();
if (ObjetTraFile [#76/30 "activationType"] == 5 "5: icon Greet") {
Call Greet ();
}
if (ObjetTraFile [#28/10 "D1R12_isForceFieldDisabled"] == 1) {
ObjetTraFile [#75/30 "roomTypeFX"] = 0 "0: no FX";
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 0) {
Call Room_00 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 1) {
Call Room_01 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 2) {
Call Room_02 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 3) {
Call Room_03 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 4) {
Call Room_04 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 6) {
Call Room_06 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 7) {
Call Room_07 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 9) {
Call Room_09 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 10) {
Call Room_10 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 11) {
Call Room_11 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 12) {
Call Room_12_Start ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 14) {
Call Room_14 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 15) {
Call Room_15 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 16) {
Call Room_16 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 17) {
Call Room_17 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 18) {
Call Room_18 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 20) {
Call Room_20 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 21) {
Call Room_21 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 22) {
Call Room_22 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 23) {
Call Room_23 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 25) {
Call Room_25 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 26) {
Call Room_26 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 27) {
Call Room_27 ();
Goto Label_78B;
}
if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 28) {
Call Room_28 ();
}
Label_78B
return;
--------------------------------------------------------------------------------
No script linked to this room.