Kroah's Game Reverse Engineering Page

 

~ Drakkhen ~

You are here:  
  • Home
    • »  Drakkhen
      • »  Dungeon Maps & Scripts
        • »  Dungeon 0 - Prince Hordtkhen

Dungeon 0 - Prince Hordtkhen

Click on a room to show its script or Show all scripts / Greet_NotR13 / CheckWin / Main
Script Greet_NotR13 :
PrintText (#0 ""); ObjetTraFile [#63/C0 "greetRnd"] = Random [0;7[; if (ObjetTraFile [#63/C0 "greetRnd"] == 0) { PrintText (#4 "Your flatteries are useless."); } if (ObjetTraFile [#63/C0 "greetRnd"] == 1) { PrintText (#5 "You noticed!!!"); } if (ObjetTraFile [#63/C0 "greetRnd"] == 2) { PrintText (#6 "That is not so."); } if (ObjetTraFile [#63/C0 "greetRnd"] == 3) { PrintText (#7 "These sarcasms will not"); PrintText (#8 "save you."); } if (ObjetTraFile [#63/C0 "greetRnd"] == 4) { PrintText (#9 "So be it."); } if (ObjetTraFile [#63/C0 "greetRnd"] == 5) { PrintText (#10 "Thank you for the compliment."); } if (ObjetTraFile [#63/C0 "greetRnd"] == 6) { PrintText (#11 "You seem to be yourself"); PrintText (#12 "glorious warriors."); } return; --------------------------------------------------------------------------------
Script Room_00 :
DoOnce { ObjetTraFile [#65/C0 "Earn XP: amount"] = 10; SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience"); } Reset_3D DoOnce { ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 0; if (ObjetTraFile [#70/10 "isVisible"] == 1) { PrintText (#0 ""); if (ObjetTraFile [#96/40 "Game_state"] == 2) { PrintText (#15 "Hurry up, the"); PrintText (#16 "Prince is waiting for you"); Goto Label_59; } PrintText (#13 "The Prince's apartment,"); PrintText (#14 "No one may pass..."); ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1; } Label_59 ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 3 "Lizard Warrior"; ObjetTraFile [#80/50 "Spawn encounter: level"] = 1; ObjetTraFile [#81/30 "Spawn encounter: priority"] = 1; ObjetTraFile [#82/80 "Spawn encounter: x"] = 58; ObjetTraFile [#83/70 "Spawn encounter: y"] = 112; ObjetTraFile [#85/40 "encounterActiveIndex"] = 0; SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter"); } if (ObjetTraFile [#77/80 "activationValue"] == 21) { if (ObjetTraFile [#76/30 "activationType"] == 3 "3: Inspect") { DoOnce { ObjetTraFile [#87/30 "Find accessory: type"] = 0 "0: SpellBook"; ObjetTraFile [#24/10 "D0R00 hasTakenSpellBook0"] = 1; ObjetTraFile [#92/30 "Fill accessory: nbUses (Phial) or textIndexInFile (SpellBook)"] = 0; SpecialAction (#6 "F_A0_B3_H06_FindAccessory"); ObjetTraFile [#23/10 "D0R00 hasTakenSpellBook1"] = 1; ObjetTraFile [#92/30 "Fill accessory: nbUses (Phial) or textIndexInFile (SpellBook)"] = 1; SpecialAction (#6 "F_A0_B3_H06_FindAccessory"); } } } return; --------------------------------------------------------------------------------
Script Room_01 :
DoOnce { ObjetTraFile [#65/C0 "Earn XP: amount"] = 60; SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience"); } Reset_9E DoOnce { ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 0; if (ObjetTraFile [#70/10 "isVisible"] == 1) { PrintText (#0 ""); PrintText (#23 "Get out of here, stinking dogs!"); ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1; } ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 4 "Lizard Knight"; ObjetTraFile [#80/50 "Spawn encounter: level"] = 1; ObjetTraFile [#81/30 "Spawn encounter: priority"] = 1; ObjetTraFile [#82/80 "Spawn encounter: x"] = 30; ObjetTraFile [#83/70 "Spawn encounter: y"] = 116; ObjetTraFile [#85/40 "encounterActiveIndex"] = 0; SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter"); ObjetTraFile [#52/76 "D0R01 hasInspectedLeft"] = 0; ObjetTraFile [#52/87 "D0R01 hasInspectedRight"] = 0; } if (ObjetTraFile [#77/80 "activationValue"] == 2) { Reset_D6 DoOnce Goto Label_136; PrintText (#0 ""); PrintText (#17 "Born of Earth and Water"); PrintText (#18 "The blue Elixir lies"); PrintText (#19 "in its father's belly"); ObjetTraFile [#52/76 "D0R01 hasInspectedLeft"] = 1; Goto Label_136; } if (ObjetTraFile [#77/80 "activationValue"] == 3) { Reset_E8 DoOnce Goto Label_136; PrintText (#0 ""); PrintText (#20 "Blessed be"); PrintText (#21 "Those whose lips are wetted"); PrintText (#22 "At the holy fountain"); ObjetTraFile [#52/87 "D0R01 hasInspectedRight"] = 1; Goto Label_136; } if (ObjetTraFile [#77/80 "activationValue"] == 4) { if (ObjetTraFile [#52/76 "D0R01 hasInspectedLeft"] == 1) { if (ObjetTraFile [#52/87 "D0R01 hasInspectedRight"] == 1) { if (ObjetTraFile [#76/30 "activationType"] == 3 "3: Inspect") { PrintText (#1 "You see"); PrintText (#24 "A handle in the form of"); PrintText (#25 "a Dragon's head."); Goto Label_136; } if (ObjetTraFile [#76/30 "activationType"] == 2 "2: Activate") { PrintText (#0 ""); PrintText (#26 "Its head turns smoothly."); PlaySound (#2); ObjetTraFile [#72/50 "roomIndexB"] = 16; ObjetTraFile [#71/50 "roomIndexA"] = 22; ObjetTraFile [#74/30 "roomExitIndex"] = 6 "6: Bottom Mid"; ObjetTraFile [#75/30 "roomTypeFX"] = 0 "0: no FX"; if (ObjetTraFile [#62/10 "D0R01 isDoorOpen"] == 0) { ObjetTraFile [#62/10 "D0R01 isDoorOpen"] = 1; SpecialAction (#0 "F_A0_B3_H00_EnableAndOpenExit"); Goto Label_136; } ObjetTraFile [#62/10 "D0R01 isDoorOpen"] = 0; SpecialAction (#1 "F_A0_B3_H01_DisableAndLockExit"); } } } } Label_136 return; --------------------------------------------------------------------------------
Script Room_02 :
DoOnce { ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 40 "Goblin"; ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 0; ObjetTraFile [#80/50 "Spawn encounter: level"] = 2; ObjetTraFile [#81/30 "Spawn encounter: priority"] = 2; ObjetTraFile [#82/80 "Spawn encounter: x"] = 58; ObjetTraFile [#83/70 "Spawn encounter: y"] = 112; ObjetTraFile [#85/40 "encounterActiveIndex"] = 1; SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter"); ObjetTraFile [#41/08 "Encounter1: initial HP"] = ObjetTraFile [#41/80 "Encounter1: HP"]; if (ObjetTraFile [#41/08 "Encounter1: initial HP"] == ObjetTraFile [#41/80 "Encounter1: HP"]) { if (ObjetTraFile [#70/10 "isVisible"] == 1) { PrintText (#0 ""); PrintText (#27 "You come too early,"); PrintText (#28 "The meal is not yet ready."); } } ObjetTraFile [#51/60 "D0R02 nbQuestionDone"] = 0; } if (ObjetTraFile [#76/30 "activationType"] == 1 "1: Question") { if (ObjetTraFile [#41/08 "Encounter1: initial HP"] == ObjetTraFile [#41/80 "Encounter1: HP"]) { if (ObjetTraFile [#70/10 "isVisible"] == 1) { DoOnce { PrintText (#0 ""); ObjetTraFile [#51/60 "D0R02 nbQuestionDone"] = ObjetTraFile [#51/60 "D0R02 nbQuestionDone"] + 1; if (ObjetTraFile [#51/60 "D0R02 nbQuestionDone"] == 1) { PrintText (#29 "I am a servant."); PrintText (#30 "I cannot help you"); Goto Label_191; } if (ObjetTraFile [#51/60 "D0R02 nbQuestionDone"] == 2) { PrintText (#31 "Do not insist,"); PrintText (#32 "The Master receives nobody"); } } } } } Label_191 return; --------------------------------------------------------------------------------
Script Room_03 :
if (ObjetTraFile [#76/30 "activationType"] == 3 "3: Inspect") { if (ObjetTraFile [#77/80 "activationValue"] == 7) { PrintText (#33 "You feel a slight movement"); PrintText (#34 "of air from under the drape"); } } return; --------------------------------------------------------------------------------
Script Room_04 :
DoOnce { ObjetTraFile [#65/C0 "Earn XP: amount"] = 30; SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience"); } if (ObjetTraFile [#70/10 "isVisible"] == 1) { if (ObjetTraFile [#94/40 "D0R04, D5R05, Walk3D_sunLightningStep (0-8)"] <> 4) { if (ObjetTraFile [#94/40 "D0R04, D5R05, Walk3D_sunLightningStep (0-8)"] <> 5) { DoOnce { PrintText (#0 ""); PrintText (#3 "Hakk, Hakk, Hakkahen"); ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 2 "Lizard"; ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1; ObjetTraFile [#80/50 "Spawn encounter: level"] = 3; ObjetTraFile [#81/30 "Spawn encounter: priority"] = 0; ObjetTraFile [#82/80 "Spawn encounter: x"] = 70; ObjetTraFile [#83/70 "Spawn encounter: y"] = 115; ObjetTraFile [#85/40 "encounterActiveIndex"] = 0; SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter"); ObjetTraFile [#82/80 "Spawn encounter: x"] = 188; ObjetTraFile [#83/70 "Spawn encounter: y"] = 113; SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter"); } } } } return; --------------------------------------------------------------------------------
Script Room_05 :
DoOnce { if (ObjetTraFile [#70/10 "isVisible"] == 1) { PrintText (#0 ""); PrintText (#36 "Access to this floor"); PrintText (#37 "is forbidden to you"); } ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 2 "Lizard"; ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1; ObjetTraFile [#80/50 "Spawn encounter: level"] = 2; ObjetTraFile [#81/30 "Spawn encounter: priority"] = 0; ObjetTraFile [#82/80 "Spawn encounter: x"] = 70; ObjetTraFile [#83/70 "Spawn encounter: y"] = 115; ObjetTraFile [#85/40 "encounterActiveIndex"] = 0; SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter"); } if (ObjetTraFile [#76/30 "activationType"] == 3 "3: Inspect") { if (ObjetTraFile [#77/80 "activationValue"] == 12) { PrintText (#1 "You see"); PrintText (#38 "Drakh Lords paying hommage"); PrintText (#39 "to a Dragon Prince."); PrintText (#40 "Behind them are a number"); PrintText (#41 "of Drakh Knights."); } if (ObjetTraFile [#77/80 "activationValue"] == 13) { PrintText (#0 ""); PrintText (#42 "Dishes are being served"); PrintText (#43 "to Drakh soldiers. In state"); PrintText (#44 "is seated a Drakh Knight."); } } return; --------------------------------------------------------------------------------
Script Room_06 :
DoOnce { ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 40 "Goblin"; ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 0; ObjetTraFile [#80/50 "Spawn encounter: level"] = 1; 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"] = 1; SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter"); ObjetTraFile [#50/60 "D0R06 nbQuestionDone"] = 0; if (ObjetTraFile [#70/10 "isVisible"] == 1) { PrintText (#0 ""); PrintText (#45 "Leave ! The kitchens are"); PrintText (#46 "forbidden to strangers."); } } if (ObjetTraFile [#41/80 "Encounter1: HP"] <> 0) { if (ObjetTraFile [#76/30 "activationType"] == 1 "1: Question") { ObjetTraFile [#50/60 "D0R06 nbQuestionDone"] = ObjetTraFile [#50/60 "D0R06 nbQuestionDone"] + 1; PrintText (#0 ""); if (ObjetTraFile [#50/60 "D0R06 nbQuestionDone"] == 1) { PrintText (#47 "Go, or I will call a guard"); Goto Label_297; } if (ObjetTraFile [#50/60 "D0R06 nbQuestionDone"] == 3) { ObjetTraFile [#85/40 "encounterActiveIndex"] = 1; ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1; SpecialAction (#5 "F_A0_B3_H05_SetEncounterIsEnemy"); PrintText (#48 "Guards !"); ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 3 "Lizard Warrior"; ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1; ObjetTraFile [#80/50 "Spawn encounter: level"] = 2; 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"); } } } Label_297 return; --------------------------------------------------------------------------------
Script Room_07 :
DoOnce { PrintText (#0 ""); PrintText (#49 "You enter what appears to"); PrintText (#50 "be a chapel"); ObjetTraFile [#65/C0 "Earn XP: amount"] = 40; SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience"); } return; --------------------------------------------------------------------------------
Script Room_08_Start :
DoOnce { ObjetTraFile [#65/C0 "Earn XP: amount"] = 72; SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience"); } Reset_2AF DoOnce { if (ObjetTraFile [#64/10 "From Game_pResFile4_GameProtection: 1 OK, 0 KO"] == 0) { ObjetTraFile [#79/50 "Spawn encounter: baseLevel"] = 18; Goto Label_2BD; } ObjetTraFile [#79/50 "Spawn encounter: baseLevel"] = 2; Label_2BD ObjetTraFile [#29/10 "D0R08_isForceFieldDisabled"] = 0; ObjetTraFile [#72/50 "roomIndexB"] = 8; ObjetTraFile [#71/50 "roomIndexA"] = 19; 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"] = 3; ObjetTraFile [#74/30 "roomExitIndex"] = 1 "1: Top Left"; SpecialAction (#1 "F_A0_B3_H01_DisableAndLockExit"); ObjetTraFile [#71/50 "roomIndexA"] = 4; ObjetTraFile [#74/30 "roomExitIndex"] = 4 "4: Right"; SpecialAction (#1 "F_A0_B3_H01_DisableAndLockExit"); ObjetTraFile [#71/50 "roomIndexA"] = 5; ObjetTraFile [#74/30 "roomExitIndex"] = 2 "2: Top Mid"; SpecialAction (#1 "F_A0_B3_H01_DisableAndLockExit"); PrintText (#0 ""); PrintText (#55 "You have just broken into"); PrintText (#56 "the palace of Prince Hordtkhen,"); PrintText (#57 "the Prince of Earth..."); } if (ObjetTraFile [#76/30 "activationType"] == 3 "3: Inspect") { PrintText (#0 ""); if (ObjetTraFile [#77/80 "activationValue"] <> 16) { if (ObjetTraFile [#77/80 "activationValue"] <> 17) Goto Label_30B; } PrintText (#1 "You see"); PrintText (#54 "an elementary symbol"); Goto Label_315; Label_30B if (ObjetTraFile [#29/10 "D0R08_isForceFieldDisabled"] == 0) { PrintText (#51 "A powerful energy field"); PrintText (#52 "blocks your way."); PrintText (#53 "Name me..."); } } Label_315 if (ObjetTraFile [#76/30 "activationType"] == 2 "2: Activate") { if (ObjetTraFile [#29/10 "D0R08_isForceFieldDisabled"] == 0) { if (ObjetTraFile [#77/80 "activationValue"] == 16) { ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 40 "Goblin"; 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 (#59 "Get out! Only the initiated"); PrintText (#60 "may enter these places."); ObjetTraFile [#79/50 "Spawn encounter: baseLevel"] = ObjetTraFile [#79/50 "Spawn encounter: baseLevel"] + 2; } if (ObjetTraFile [#77/80 "activationValue"] == 17) { ObjetTraFile [#72/50 "roomIndexB"] = 8; ObjetTraFile [#71/50 "roomIndexA"] = 19; 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"] = 3; ObjetTraFile [#74/30 "roomExitIndex"] = 1 "1: Top Left"; SpecialAction (#0 "F_A0_B3_H00_EnableAndOpenExit"); ObjetTraFile [#71/50 "roomIndexA"] = 4; ObjetTraFile [#74/30 "roomExitIndex"] = 4 "4: Right"; SpecialAction (#0 "F_A0_B3_H00_EnableAndOpenExit"); ObjetTraFile [#71/50 "roomIndexA"] = 5; ObjetTraFile [#74/30 "roomExitIndex"] = 2 "2: Top Mid"; SpecialAction (#0 "F_A0_B3_H00_EnableAndOpenExit"); PrintText (#0 ""); PrintText (#58 "The magic force field fades."); ObjetTraFile [#29/10 "D0R08_isForceFieldDisabled"] = 1; } } } return; --------------------------------------------------------------------------------
Script Room_09 :
DoOnce { ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 35 "Asp"; ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1; ObjetTraFile [#80/50 "Spawn encounter: level"] = 2; ObjetTraFile [#81/30 "Spawn encounter: priority"] = 0; ObjetTraFile [#82/80 "Spawn encounter: x"] = 167; ObjetTraFile [#83/70 "Spawn encounter: y"] = 114; ObjetTraFile [#85/40 "encounterActiveIndex"] = 0; SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter"); } return; --------------------------------------------------------------------------------
Script Room_11 :
DoOnce { ObjetTraFile [#65/C0 "Earn XP: amount"] = 50; SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience"); } ObjetTraFile [#67/C0 "counterB"] = ObjetTraFile [#67/C0 "counterB"] + 1; if (ObjetTraFile [#96/40 "Game_state"] > 1) { ObjetTraFile [#79/50 "Spawn encounter: baseLevel"] = ObjetTraFile [#79/50 "Spawn encounter: baseLevel"] + 1; ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 0 "Spider"; 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"] = 128; ObjetTraFile [#83/70 "Spawn encounter: y"] = 105; ObjetTraFile [#85/40 "encounterActiveIndex"] = 0; SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter"); Goto Label_427; } DoOnce { ObjetTraFile [#67/C0 "counterB"] = 0; ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 39 "Old Man"; ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 0; ObjetTraFile [#80/50 "Spawn encounter: level"] = 5; ObjetTraFile [#81/30 "Spawn encounter: priority"] = 1; ObjetTraFile [#82/80 "Spawn encounter: x"] = 128; ObjetTraFile [#83/70 "Spawn encounter: y"] = 105; ObjetTraFile [#85/40 "encounterActiveIndex"] = 4; SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter"); if (ObjetTraFile [#64/10 "From Game_pResFile4_GameProtection: 1 OK, 0 KO"] == 0) { PrintText (#66 "Never play with any"); PrintText (#67 "DRAKKHEN copy,"); PrintText (#68 "or Death awaits you."); Goto Label_41B; } if (ObjetTraFile [#70/10 "isVisible"] == 1) { PrintText (#61 "If you go to see the dear"); PrintText (#62 "Princess Hordtkha, tell her"); PrintText (#63 "that her brother becomes too"); PrintText (#64 "dangerous for the League"); PrintText (#65 "of the Ninth Tear."); } } Label_41B if (ObjetTraFile [#67/C0 "counterB"] == 60) { DoOnce { ObjetTraFile [#85/40 "encounterActiveIndex"] = 4; SpecialAction (#3 "F_A0_B3_H03_RemoveEncounter"); } } Label_427 return; --------------------------------------------------------------------------------
Script Room_12 :
DoOnce { ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 6 "Hungry Door"; ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1; ObjetTraFile [#80/50 "Spawn encounter: level"] = 2; ObjetTraFile [#81/30 "Spawn encounter: priority"] = 2; ObjetTraFile [#82/80 "Spawn encounter: x"] = 18; ObjetTraFile [#83/70 "Spawn encounter: y"] = 105; ObjetTraFile [#85/40 "encounterActiveIndex"] = 0; SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter"); ObjetTraFile [#65/C0 "Earn XP: amount"] = 20; SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience"); } return; --------------------------------------------------------------------------------
Script Room_13 :
DoOnce { ObjetTraFile [#65/C0 "Earn XP: amount"] = 50; SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience"); } if (ObjetTraFile [#76/30 "activationType"] == 3 "3: Inspect") { if (ObjetTraFile [#77/80 "activationValue"] == 14) { PrintText (#0 ""); PrintText (#101 "At the crossing of the four"); PrintText (#102 "coffins, the concentrated"); PrintText (#103 "energy will be re-injected."); } } if (ObjetTraFile [#37/10 "D0R13 isPrinceHordtkhenEarthDead"] == 0) { Reset_46B DoOnce { ObjetTraFile [#69/C0 "counterD"] = 0; ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1; if (ObjetTraFile [#96/40 "Game_state"] >= 0) { if (ObjetTraFile [#96/40 "Game_state"] <= 3) { if (ObjetTraFile [#64/10 "From Game_pResFile4_GameProtection: 1 OK, 0 KO"] == 1) { ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 0; } } } ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 46 "Prince Hordtkhen"; ObjetTraFile [#80/50 "Spawn encounter: level"] = 16; ObjetTraFile [#81/30 "Spawn encounter: priority"] = 5; ObjetTraFile [#82/80 "Spawn encounter: x"] = 210; ObjetTraFile [#83/70 "Spawn encounter: y"] = 110; ObjetTraFile [#85/40 "encounterActiveIndex"] = 3; SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter"); ObjetTraFile [#39/08 "Encounter3: initial HP"] = ObjetTraFile [#39/80 "Encounter3: HP"]; } if (ObjetTraFile [#76/30 "activationType"] == 5 "5: icon Greet") { PrintText (#0 ""); PrintText (#99 "I, Hordtkhen, never greet"); PrintText (#100 "inferior races."); } if (ObjetTraFile [#96/40 "Game_state"] < 2) { DoOnce { ObjetTraFile [#37/61 "D0R13 nbQuestionDone"] = 0; PrintText (#0 ""); PrintText (#69 "Ha ha ha! Puny humans!"); PrintText (#70 "You dare enter my domain"); PrintText (#71 "hoping to avoid my wrath !"); PrintText (#72 "Such insolence means death."); } if (ObjetTraFile [#76/30 "activationType"] <> 1 "1: Question") Goto Label_559; ObjetTraFile [#37/61 "D0R13 nbQuestionDone"] = ObjetTraFile [#37/61 "D0R13 nbQuestionDone"] + 1; if (ObjetTraFile [#37/61 "D0R13 nbQuestionDone"] == 1) { PrintText (#0 ""); PrintText (#73 "Wait ! If you accomplish a"); PrintText (#74 "mission for me, then I will"); PrintText (#75 "spare your miserable lives."); ObjetTraFile [#96/40 "Game_state"] = 1; } if (ObjetTraFile [#37/61 "D0R13 nbQuestionDone"] == 2) { PrintText (#0 ""); PrintText (#76 "Go and tell my sister,"); PrintText (#77 "Princess Hordtkha, that I"); PrintText (#78 "would like to meet her."); PrintText (#79 "Bring me her reply."); PrintText (#80 "Her palace is to the East."); } if (ObjetTraFile [#37/61 "D0R13 nbQuestionDone"] == 3) { PrintText (#0 ""); PrintText (#81 "Hurry up,"); PrintText (#82 "time is short."); } if (ObjetTraFile [#37/61 "D0R13 nbQuestionDone"] <> 5) Goto Label_559; PrintText (#0 ""); PrintText (#83 "This was an order,"); PrintText (#84 "mortals !"); PrintText (#85 "Obey, vermin!"); ObjetTraFile [#85/40 "encounterActiveIndex"] = 3; ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1; SpecialAction (#5 "F_A0_B3_H05_SetEncounterIsEnemy"); Goto Label_559; } if (ObjetTraFile [#96/40 "Game_state"] < 4) { DoOnce { ObjetTraFile [#37/61 "D0R13 nbQuestionDone"] = 0; ObjetTraFile [#96/40 "Game_state"] = 3; } if (ObjetTraFile [#76/30 "activationType"] <> 1 "1: Question") Goto Label_559; ObjetTraFile [#37/61 "D0R13 nbQuestionDone"] = ObjetTraFile [#37/61 "D0R13 nbQuestionDone"] + 1; if (ObjetTraFile [#37/61 "D0R13 nbQuestionDone"] == 1) { PrintText (#86 "After hearing you"); PrintText (#87 "He explodes into a rage"); PrintText (#88 "They dare ! So be it."); PrintText (#89 "I will help you. The human"); PrintText (#90 "must now be with Haaggkhen"); } if (ObjetTraFile [#37/61 "D0R13 nbQuestionDone"] == 2) { PrintText (#0 ""); PrintText (#91 "Be wary of him ; he is very"); PrintText (#92 "dangerous. His palace lies"); PrintText (#93 "to the North of my castle."); PrintText (#94 "Leave now."); } if (ObjetTraFile [#37/61 "D0R13 nbQuestionDone"] <> 4) Goto Label_559; PrintText (#0 ""); PrintText (#3 "Hakk, Hakk, Hakkahen"); ObjetTraFile [#85/40 "encounterActiveIndex"] = 3; ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1; SpecialAction (#5 "F_A0_B3_H05_SetEncounterIsEnemy"); Goto Label_559; } DoOnce { PrintText (#0 ""); PrintText (#95 "How dare you, scum?"); PrintText (#96 "You come back without"); PrintText (#97 "my permission. You shall DIE!"); PrintText (#98 "Ha Ha Ha!!!"); } Label_559 if (ObjetTraFile [#39/80 "Encounter3: HP"] == 0) { ObjetTraFile [#37/10 "D0R13 isPrinceHordtkhenEarthDead"] = 1; ObjetTraFile [#16/10 "Tear #8 D0R13 Prince Hordtkhen (Earth)"] = 1; ObjetTraFile [#65/C0 "Earn XP: amount"] = 700; SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience"); if (ObjetTraFile [#96/40 "Game_state"] < 3) { ObjetTraFile [#96/40 "Game_state"] = 3; } if (ObjetTraFile [#96/40 "Game_state"] <> 7) Goto Label_591; ObjetTraFile [#96/40 "Game_state"] = 8; Goto Label_591; } if (ObjetTraFile [#39/08 "Encounter3: initial HP"] > ObjetTraFile [#39/80 "Encounter3: HP"]) { ObjetTraFile [#85/40 "encounterActiveIndex"] = 3; ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1; SpecialAction (#5 "F_A0_B3_H05_SetEncounterIsEnemy"); if (ObjetTraFile [#96/40 "Game_state"] < 3) { ObjetTraFile [#96/40 "Game_state"] = 3; } } } Label_591 return; --------------------------------------------------------------------------------
Script Room_14 :
DoOnce { ObjetTraFile [#65/C0 "Earn XP: amount"] = 30; SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience"); } if (ObjetTraFile [#77/80 "activationValue"] == 6) { if (ObjetTraFile [#76/30 "activationType"] == 3 "3: Inspect") { PrintText (#105 "In the steaming basin"); PrintText (#106 "the yellowish water"); PrintText (#107 "gives off an acrid smell."); } 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)"] = 1 "1: HEA Heal Minor"; SpecialAction (#2 "F_A0_B3_H02_FillPhial"); } } return; --------------------------------------------------------------------------------
Script Room_15 :
DoOnce { ObjetTraFile [#65/C0 "Earn XP: amount"] = 20; SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience"); } return; --------------------------------------------------------------------------------
Script Room_16 :
DoOnce { ObjetTraFile [#65/C0 "Earn XP: amount"] = 70; SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience"); } return; --------------------------------------------------------------------------------
Script Room_17 :
ObjetTraFile [#69/C0 "counterD"] = ObjetTraFile [#69/C0 "counterD"] + 1; DoOnce { ObjetTraFile [#69/C0 "counterD"] = 0; ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 40 "Goblin"; ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 0; ObjetTraFile [#80/50 "Spawn encounter: level"] = 3; ObjetTraFile [#81/30 "Spawn encounter: priority"] = 0; ObjetTraFile [#82/80 "Spawn encounter: x"] = 100; ObjetTraFile [#83/70 "Spawn encounter: y"] = 113; ObjetTraFile [#85/40 "encounterActiveIndex"] = 4; SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter"); ObjetTraFile [#38/08 "Encounter4: initial HP"] = ObjetTraFile [#38/80 "Encounter4: HP"]; if (ObjetTraFile [#38/08 "Encounter4: initial HP"] == ObjetTraFile [#38/80 "Encounter4: HP"]) { if (ObjetTraFile [#70/10 "isVisible"] == 1) { PrintText (#0 ""); PrintText (#108 "Prince Hordtkhen, the weakest"); PrintText (#109 "of the Dragon Princes is"); PrintText (#110 "furious not to take part in"); PrintText (#111 "the Alliance of Fire."); } } } if (ObjetTraFile [#38/08 "Encounter4: initial HP"] == ObjetTraFile [#38/80 "Encounter4: HP"]) { if (ObjetTraFile [#70/10 "isVisible"] == 1) { if (ObjetTraFile [#76/30 "activationType"] == 1 "1: Question") { DoOnce { PrintText (#0 ""); PrintText (#112 "That's why he supports it, to"); PrintText (#113 "make himself noticed. But"); PrintText (#114 "Princess Naakhtha cannot"); PrintText (#115 "stand him."); } } } } return; --------------------------------------------------------------------------------
Script Room_19 :
Reset_620 DoOnce { PrintText (#0 ""); PrintText (#118 "You hear a strange noise coming"); PrintText (#119 "from the neighbouring room."); } return; --------------------------------------------------------------------------------
Script Room_20 :
DoOnce { ObjetTraFile [#65/C0 "Earn XP: amount"] = 50; SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience"); } ObjetTraFile [#72/50 "roomIndexB"] = 24; ObjetTraFile [#71/50 "roomIndexA"] = 25; ObjetTraFile [#74/30 "roomExitIndex"] = 5 "5: Bottom Right"; ObjetTraFile [#75/30 "roomTypeFX"] = 0 "0: no FX"; if (ObjetTraFile [#77/80 "activationValue"] == 10) { if (ObjetTraFile [#60/10 "D0R20 isPlateActive"] <> 0) Goto Label_667; ObjetTraFile [#60/10 "D0R20 isPlateActive"] = 1; PlaySound (#2); SpecialAction (#0 "F_A0_B3_H00_EnableAndOpenExit"); PrintText (#0 ""); PrintText (#116 "Under your weight, a mechanism"); PrintText (#117 "tilts..."); Goto Label_667; } if (ObjetTraFile [#60/10 "D0R20 isPlateActive"] == 1) { ObjetTraFile [#60/10 "D0R20 isPlateActive"] = 0; SpecialAction (#1 "F_A0_B3_H01_DisableAndLockExit"); PrintText (#0 ""); PrintText (#116 "Under your weight, a mechanism"); PrintText (#117 "tilts..."); } Label_667 return; --------------------------------------------------------------------------------
Script Room_21 :
DoOnce { ObjetTraFile [#65/C0 "Earn XP: amount"] = 50; SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience"); } Reset_670 DoOnce { ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 1 "Scorpion"; ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1; ObjetTraFile [#80/50 "Spawn encounter: level"] = 2; ObjetTraFile [#81/30 "Spawn encounter: priority"] = 0; 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 [#82/80 "Spawn encounter: x"] = 193; ObjetTraFile [#83/70 "Spawn encounter: y"] = 123; SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter"); } return; --------------------------------------------------------------------------------
Script Room_22 :
DoOnce { ObjetTraFile [#65/C0 "Earn XP: amount"] = 100; SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience"); } return; --------------------------------------------------------------------------------
Script Room_23 :
DoOnce { ObjetTraFile [#65/C0 "Earn XP: amount"] = 10; SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience"); } if (ObjetTraFile [#77/80 "activationValue"] <> 15) { if (ObjetTraFile [#75/30 "roomTypeFX"] <> 5 "5: stalactite falling") { ObjetTraFile [#75/30 "roomTypeFX"] = 4 "4: stalactite roof"; Goto Label_6BC; } } ObjetTraFile [#75/30 "roomTypeFX"] = 5 "5: stalactite falling"; Label_6BC return; --------------------------------------------------------------------------------
Script Room_24 :
DoOnce { ObjetTraFile [#65/C0 "Earn XP: amount"] = 10; SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience"); } ObjetTraFile [#69/C0 "counterD"] = ObjetTraFile [#69/C0 "counterD"] + 1; DoOnce { ObjetTraFile [#78/60 "Spawn encounter: monBlockIndex"] = 54 "Rats"; ObjetTraFile [#84/10 "Spawn/Change encounter: isEnemy"] = 1; ObjetTraFile [#80/50 "Spawn encounter: level"] = 3; ObjetTraFile [#81/30 "Spawn encounter: priority"] = 0; 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 [#82/80 "Spawn encounter: x"] = 193; SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter"); } return; --------------------------------------------------------------------------------
Script Room_25 :
DoOnce { ObjetTraFile [#65/C0 "Earn XP: amount"] = 100; SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience"); } if (ObjetTraFile [#76/30 "activationType"] == 3 "3: Inspect") { if (ObjetTraFile [#77/80 "activationValue"] == 8) { PrintText (#2 "You read engraved in the stone:"); PrintText (#120 "ALMIGHTY..."); ObjetTraFile [#08/10 "Grave #8 (D0R25 Left) "ALMIGHTY...""] = 1; Goto Label_714; } if (ObjetTraFile [#77/80 "activationValue"] == 9) { PrintText (#2 "You read engraved in the stone:"); PrintText (#121 "...GOD."); ObjetTraFile [#07/10 "Grave #7 (D0R25 Right) "...GOD.""] = 1; } } Label_714 return; --------------------------------------------------------------------------------
Script Room_26 :
DoOnce { ObjetTraFile [#65/C0 "Earn XP: amount"] = 200; SpecialAction (#14 "F_A0_B3_H14_CharacterEarnsExperience"); } ObjetTraFile [#79/50 "Spawn encounter: baseLevel"] = ObjetTraFile [#79/50 "Spawn encounter: baseLevel"] + 1; 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"] = 35; ObjetTraFile [#83/70 "Spawn encounter: y"] = 113; ObjetTraFile [#85/40 "encounterActiveIndex"] = 0; SpecialAction (#4 "F_A0_B3_H04_SpawnEncounter"); if (ObjetTraFile [#77/80 "activationValue"] == 18) { ObjetTraFile [#95/60 "HP amount"] = 10; SpecialAction (#9 "F_A0_B3_H09_HealCharacter"); } 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 000002AF (000C2B18) ResetLoop at 0000003D (000C2634) ResetLoop at 0000009E (000C26F6) ResetLoop at 000000D6 (000C2766) ResetLoop at 000000E8 (000C278A) ResetLoop at 00000670 (000C329A) ResetLoop at 0000046B (000C2E90) ResetLoop at 00000620 (000C31FA) } Call CheckWin (); if (ObjetTraFile [#76/30 "activationType"] == 5 "5: icon Greet") { if (ObjetTraFile [#73/50 "viewingRoomIndex"] <> 13) { Call Greet_NotR13 (); } } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 0) { Call Room_00 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 1) { Call Room_01 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 2) { Call Room_02 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 3) { Call Room_03 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 4) { Call Room_04 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 5) { Call Room_05 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 6) { Call Room_06 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 7) { Call Room_07 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 8) { Call Room_08_Start (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 9) { Call Room_09 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 11) { Call Room_11 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 12) { Call Room_12 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 13) { Call Room_13 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 14) { Call Room_14 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 15) { Call Room_15 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 16) { Call Room_16 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 17) { Call Room_17 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 19) { Call Room_19 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 20) { Call Room_20 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 21) { Call Room_21 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 22) { Call Room_22 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 23) { Call Room_23 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 24) { Call Room_24 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 25) { Call Room_25 (); Goto Label_86A; } if (ObjetTraFile [#73/50 "viewingRoomIndex"] == 26) { Call Room_26 (); } Label_86A return; --------------------------------------------------------------------------------

No script linked to this room.
Visitors visitors since 05/01/2006. Sitemap
Copyright © 2006-2020 by Kroah. Total or partial reproduction forbidden.
All trademarks and copyrights are the property of their respective owners. All rights reserved.
Email Me      Get Firefox Powered by PHPEdit      Valid XHTML 1.1 Valid CSS