If you appreciate the work done within the wiki, please consider supporting The Cutting Room Floor on Patreon. Thanks for all your support!

Notes:Quest for Glory III: Wages of War

From The Cutting Room Floor
Jump to navigation Jump to search

This page contains notes for the game Quest for Glory III: Wages of War (Debug Mode).

Skill Numbers

Note the order is not completely according to what you see in the character/spell stats.

General

  • 0 - Strength
  • 1 - Intelligence
  • 2 - Agility
  • 3 - Vitality
  • 4 - Luck
  • 5 - Weapon Use
  • 6 - Parry
  • 7 - Dodge
  • 8 - Stealth
  • 9 - Pick Locks
  • 10 - Throwing
  • 11 - Climbing
  • 12 - Magic
  • 13 - Communication
  • 14 - Honor (also indirectly Paladin Points, which = current honor - initial honor since becoming/importing a Paladin)
  • 15 - Experience (not officially used by any game except QFG1 VGA/EGA)

Dynamic

Can be set higher than the total allowed, which might have unintended results.

  • 16 - Health
  • 17 - Stamina
  • 18 - Mana

Spells

  • 19 - Open
  • 20 - Detect Magic
  • 21 - Trigger
  • 22 - Dazzle
  • 23 - Zap
  • 24 - Calm
  • 25 - Flame Dart
  • 26 - Fetch
  • 27 - Force Bolt
  • 28 - Levitate
  • 29 - Reversal
  • 30 - Juggling Lights (without debug only magic users can have it)
  • 31 - Summon Staff (appears on menu but can't be used without first entering Kreesha's house while carrying Magic Wood)
  • 32 - Lightning Ball (only spell not imported)
  • 33 - Paladin's Heal (0 makes it disappear, anything else makes it appear)

Room Numbers

  • 52 - Export screen
  • 54 - Import screen
  • 100 to 140 - Pre-game menus
    • 100 - Introduction - QFG2 flashback of Ad Avis
    • 110 - Introduction - Aziza from QFG2
    • 120 - Introduction - Sultan from QFG2
    • 130 - Title screen
    • 140 - Choose a character
  • 150 - Tarna region overview
  • 160 - Savanna overview
  • 170 - Jungle overview
  • 180 - Lost City overview
  • 200 to 370 - Tarna
    • 200 - City overview
    • 210 - Gates
    • 230 to 260 - Bazaar
      • 230 - North merchants (money changer)
      • 240 - Entrance (honey, junk)
      • 250 - South merchants (acrobat, beads)
      • 260 - Far south merchants (katta, drummer)
    • 270 - Main square
    • 280 - Kreesha's main room
    • 285 - Kreesha & Rakeesh's back parlor 😳
    • 290 - Salim's apothecary
    • 300 to 310 - Welcome Inn
      • 300 - Dining room
      • 310 - Hero's bedroom
    • 320 - Upper plateau
    • 330 - King Rajah's throne room
    • 340 - Hall of Judgement (council)
    • 350 - Temple entrance
    • 360 to 370 - Temple trial
      • 360 - Temple trial 1
      • 370 - Temple trial 2
  • 380 - Venomous vines
  • 390 - Erana's Pool of Peace
  • 400 - Tarna map random encounter
  • 410 to 530 - Simbani village
    • 410 - Mountain overlook
    • 420 - Village square
    • 430 - Guest hut
    • 440 - Uhura's hut
    • 450 - Laibon's hut
    • 460 - Target area
    • 470 - Bridge competition area
    • 480 - Prisoner cage / Awari board
    • 485 - Prisoner cage close-up
    • 490 - Awari game with Yesefu
    • 500 - Race with Yesufu
    • 510 - Target contest race event
    • 520 - Ring of thorns race event
    • 530 - Yesufu stuck in hole
  • 549 - Lost City's mirror room pre-combat intro
  • 550 to 595 - Combat screens
    • 550 - Choose monster type
    • 560 - Dinosaur
    • 565 - Giant ant
    • 575 - Apeman
    • 580 - Flying Cobra
    • 585 - Crocodileman
    • 590 - Demon worm
    • 595 - Leopardman
  • 600 to 650 - Leopardmen village
    • 600 - Outside entrance
    • 620 - Ceremonial platform
    • 630 - Outside Leopardmen chief's hut
    • 640 - Inside Leopardmen chief's hut
    • 650 - Wizard duel
  • 700 - Random jungle encounter
  • 720 - Monkey village entrance
  • 730 - Monkey village treetop
  • 740 - Waterfall passage to Lost City
  • 750 to 780 - Mother of the World (big tree)
    • 750 - Entrance (left)
    • 755 - Entrance (right)
    • 760 - Tree climb
    • 770 - Guardian room
    • 780 - Heart of the World altar
  • 800 to 860 - Lost City
    • 800 - Overlook
    • 810 - Entrance
    • 820 - Tower (demon guards)
    • 830 - Reeshaka's prison cell / endgame room
    • 840 - Entering mirror room
    • 845 - Demon combat
    • 851-855 Demon Master endgame
      • 851 - Fighter
      • 852 - Paladin
      • 853 - Wizard
      • 854 - Thief
      • 855 - Gargoyle combat
    • 860 - Mirror room combat
  • 880 - QFG4 teaser

Item Numbers

  • 0 - Royals (in Money Pouch) - note Dinars and Commons are stored in global variables 424 and 410, respectively.
  • 1 - Sword
  • 2 - Fine Dagger
  • 3 - Fine Spear
  • 4 - Chainmail
  • 5 - Magic Shield
  • 6 - Magic Grapnel Hook
  • 7 - Thief's Toolkit
  • 8 - A blank placeholder for an unused Thief Guild Card. A fan patch restores its icon though (modified from QFG4), making it available tor Thieves and imported Hybrids with thief skills.[1]
  • 9 - Tinderbox
  • 10 - Throwing Daggers
  • 11 - Poison Cure Pills
  • 12 - Healing Pills
  • 13 - Mana Pills
  • 14 - Food rations ("Spim")
  • 15 - Waterskin
  • 16 - Dispel Potions
  • 17 - Dried Fish
  • 18 - Dried Meat
  • 19 - Fruit
  • 20 - String of beads
  • 21 - Zebra Skins
  • 22 - Dinosaur Horn
  • 23 - Rocks
  • 24 - Vine
  • 25 - Oil
  • 26 - Rope
  • 27 - Gift (from QFG2 though not by import, provides magic users access to the Juggling Lights spell)
  • 28 - Sapphire Pin
  • 29 - Honey
  • 30 - Honey Bird Feather
  • 31 - Not used, was supposed to an Amulet, but it's not possible to buy from the Amulet seller, and there is no corresponding icon or description.
  • 32 - Wooden Leopard
  • 33 - Blackbird
  • 34 - Fire Opal
  • 35 - Venomous Vine Fruit
  • 36 - Gem of the Guardians
  • 37 - Water from the Pool of Peace
  • 38 - Gift from the Heart of the World
  • 39 - Blue Orchid
  • 40 - Fine Robe
  • 41 - Rope Bridge
  • 42 - Not used, was supposed to be Eye of Anubis, but the Anubis statue simply has the Fire Opal item, and there is no corresponding icon.
  • 43 - Note from Shema
  • 44 - Magic Wood
  • 45 - Spear of Death
  • 46 - Drum of Magic

Flag Numbers

Hmmm...
To do:
Finish this section up with descriptions of all the flags
  • 1 - Exhausted (0 stamina, losing health)
  • 2 - Hungry
  • 3 - Starving
  • 4 - Not used
  • 5 - Overloaded
  • 6 - In main game, not scene or combat
  • 7 - Time paused. Never set
  • 8 - Reversal spell active
  • 9 - Entered storyteller scene
  • 10 - Not used
  • 11 - Gave dinosaur horn to laibon
  • 12 - Gave gem to begin soul weighing, OR finished soul weighing test
  • 13 - Gave Magic Drum to leopardman leader
  • 14 - Blocks hero from leaving west from monkey village entrance. Set when game starts, clears when entering main monkey village screen
  • 15 - Casting a spell or throwing something at Demon Wizard
  • 16 - Finished bridge balance match against Yesufu
  • 17 - Not used
  • 18 - Can't enter Simbani village from overlook. This flag is supposed to be set after the peace conference, but never is. However, you can't enter the overlook from the overworld map anyway, because of Flag 43
  • 19 - Can't be Paladin (Didn't chase Harami, refused to take oath, OR killed a meerbat)
  • 20 - Peace conference over, Tarna city gates closed
  • 21 - Not used
  • 22 - Saw Harami rob moneychanger, saw him caught by guard, OR waited until Day 6 before seeing moneychanger
  • 23 - Entered running gait after witnessing Harami robbery
  • 24 - Tripped Harami by knocking over fruit
  • 25 - Threw dagger at Harami
  • 26 - Cast Flame Dart or Force Bolt at Harami
  • 27 - Cast Calm on Harami
  • 28 - Didn't enter running gait after seeing Harami robbery, but stopped Harami
  • 29 - Leopardman Johari caught
  • 30 - Helped Yesufu during race
  • 31 - Freezes time at night when visiting leopardmen village after kissing Johari. Clears after storyteller scene after returning Spear of Death
  • 32 - Met Aardvark (Earth Pig) when sleeping on savannah
  • 33 - Not used
  • 34 - Related to random encounters, but never used
  • 35 - Entered Hall of Judgement after sleeping in Hero's room, but not after soul weighing. Hero asked to swear oath
  • 36 - Entered Hall of Judgement from bazaar. Harami's trial
  • 37 - Saw leopardman Change Ritual
  • 38 - Used dispel potion on leopardman Johari
  • 39 - Not used
  • 40 - Met honorless Harami in main bazaar at night, or by fish seller in day
  • 41 - Met Money Changer
  • 42 - Visited Simbani village? Never set
  • 43 - After failed peace conference (bars access to Simbani village)
  • 44 - Became a Paladin
  • 45 - Not used
  • 46 - Harami Second Visit
  • 47 - Harami Third Visit
  • 48 - Met Rajah
  • 49 - Met Laibon
  • 50 - Laibon's hut repaired, so a Thief can't break in again
  • 51 - Got Gem of the Guardian
  • 52 - Meerbat died
  • 53 - Uhura taught you how to throw spears
  • 54 - Visited vines & meerbats
  • 55 - Saved meerbat
  • 56 - Finished Simbani race
  • 57 - Found Reeshaka
  • 58 - Asked Salim about dispel potion
  • 59 - Uhura taught you about balance bridge
  • 60 - Entered temple and told to fetch Gem of the Guardian
  • 61 -
  • 62 -
  • 63 - Been In Lost City Panorama
  • 64 - Practiced With Uhura Twice
  • 65 - Johari Released
  • 66 - A Thief threw meat to the panther outside Leopardmen Chief's house to quiet it down
  • 67 - Day Elder Announcement
  • 68 - Night Elder Announcement
  • 69 - Can Summon Staff
  • 70 - Day Dispel message
  • 71 - Night Dispel message
  • 72 - Day Congrats message
  • 73 - Night Congrats message
  • 74 - Stole Drum
  • 75 - Rakeesh Left Simbani
  • 77 - Entered Mirror Room
  • 79 - Secretly rested after combat with possessed Shaman ended (which takes place when not dispelling him)
  • 80 - Knocked Over Fruit
  • 81 - Ego Is Asleep
  • 82 - Demon Wizard Battle
  • 83 - Honey Bird Hinted - triggered when randomly encountering it while walking in the overall map. Requires talking about it first to the Bazaar's honey seller, which triggers global var 505. Gets turned off after following the bird (see flag 99).
  • 84 - Speared Demon Wizard
  • 85 - Can Go To Simbani
  • 86 - First Entered Simbani Overlook
  • 87 - First Enter Simbani Village
  • 88 - Travel With Someone
  • 89 - Demon Wizard Electrocuted
  • 91 - Chucked Sword At Demon Wizard
  • 92 - Go With Johari
  • 93 - Go With Manu
  • 94 - Can Go To Leopardman Village
  • 95 - Will Go To Waterfall
  • 96 - Monkeys Find Worm
  • 97 - Demon Wizard Took Staff
  • 98 - Saw Impala
  • 99 - Found Honey Bird - triggered after following the honey bird to a tree with killer bees, and thus replaces flag 83. This causes a bee icon to appear in the overall map. Gets turned off after acquiring the bird's feather.
  • 101 - Character Sheet Active
  • 102 - Johari Watching Ego
  • 103 - Ignored Johari
  • 105 - Met Johari or Manu In Jungle
  • 106 - Met Weapon Seller
  • 107 - Met Sanford And Son
  • 108 - Gave Katta Note
  • 109 - Manu Released
  • 110 - Manu Abandoned 1
  • 111 - Manu Abandoned 2
  • 113 - Fed Harami
  • 114 - Bought Cloth
  • 115 - Poisoned
  • 116 - Got Orchid
  • 117 - Won Game
  • 118 - After Story
  • 119 - Speed Disabled
  • 121 - Opened an overlay screen (e.g. stats' menu, actions' menu, inventory menu, help menu, debug menu and the crack in the Laibon's hut for a Thief)
  • 122 - Witnessed Robbery
  • 123 - Knocking Over Fruit
  • 124 - Demon Wizard Notices Ego
  • 125 - Unknown
  • 130 - Will Have Meeting
  • 131 - Night Palette Disabled
  • 132 - Entered Guardian Den
  • 133 - Need Staff
  • 134 - After Waterfall
  • 135 - Visited Bazaar (still not quite sure how this works)
  • 136 - Lost City Door Open
  • 140 - Fake Death
  • 141 - Stole From Drummer
  • 142 - Saw Kreesha Reading
  • 143 - Started Encounter
  • 144 - Was Demon Wizard
  • 146 - Gifted Carved Leopard
  • 147 - Got Black Bird
  • 148 - Got Opal And Fruit
  • 149 - Trained Acrobatics
  • 150 - Sense Danger
  • 151 - Honor Shield
  • 154 - Initiation Complete
  • 156 - Returned To Rakeesh
  • 158 - Baba Frog
  • 159 - Met Harami
  • 160 - Unknown
  • 161 - Prisoner Easter Egg
  • 162 - Ego Has Died
  • 163 - Got Drum
  • 164 - Not used
  • 165 - Combat with possessed Shaman ended (which takes place when not dispelling him)
  • 166 - Got Fine Dagger
  • 167 - Got Fine Spear
  • 168 - Got Rope
  • 169 - Got Carved Leopard
  • 170 - Got Robe
  • 171 - Entering Money Exchange
  • 172 - Harami no longer appears, after 3rd bazaar visit

Points

Class-specific points are labeled in the code with: 2 - wizard, 4 - thief, 9 - fighter, 8? 1? 13? - Paladin

  • 202 - Learn Flaming Sword (2 points)
  • 203 - Learn Healing (2)
  • 204 - Learn Sense Danger (2)
  • 205 - Learn Honor Shield (20)
  • 206 - Learn Juggling Lights spell (Wizard, 4)
  • 207 - Not used
  • 208 - Enter Tarna Panorama (3)
  • 209 - Enter Simbani Panorama (3)
  • 210 - Enter Giant Tree Panorama (3)
  • 211 - Enter Lost City Panorama (8)
  • 212 - Beat Demon Worm For Monkeys (Paladin, 3)
  • 213 - Change money (4)
  • 214 - Let Harami Escape (4)
  • 215 - Stop Harami With Magic (7)
  • 216 - Run after Harami (8)
  • 217 - Throw dagger at Harami (Thief, 5)
  • 218 - Trip Harami by knocking over fruit (Paladin, 5)
  • 219 - Buy Zebra Skin (2)
  • 220 - Buy Waterskin (3)
  • 221 - Tell Harami About Rakeesh (8)
  • 222 - Buy Fine Spear (2)
  • 223 - Buy Oil (Thief, 5)
  • 224 - Buy Honey (2)
  • 225 - Buy Tinderbox (3)
  • 226 - Buy Black Bird (Thief, 5)
  • 227 - Buy Fine Dagger (2)
  • 228 - Buy Rope (Thief, 8)
  • 229 - Make Thief Sign To Harami (8)
  • 230 - Agree to meet Harami at night (4)
  • 231 - Buy Beads (2)
  • 232 - Buy Carved Leopard (2)
  • 233 - Tell Katta merchant about Shapeir (3)
  • 234 - Give note from Shema to Katta merchant (5)
  • 235 - Buy Robe (2)
  • 236 - Give Money To Drummer (3)
  • 237 - Make Staff (Wizard, 10)
  • 238 - Become Paladin (Paladin?, 25)
  • 239 - Tell Kreesha & Rakeesh About Simbani Initiation (Fighter, 3)
  • 240 - Tell Kreesha & Rakeesh About Dispelled Johari (2)
  • 241 - Give Honeybird Feather to Salim the Apothecary (3)
  • 242 - Give Vine Fruit to Salim (3)
  • 243 - Give Peace Water to Salim (3)
  • 244 - Give Heart Gift Fruit to Salim (3)
  • 245 - Get Dispel Potions (6)
  • 246 - Tell Salim about Julanar (10)
  • 247 - Look at inn notice board (3)
  • 248 - Ask survivor about Peace Mission (7)
  • 249 - Be polite to Rajah in 1st meeting (Paladin, 2)
  • 250 - Defend Rakeesh in front of Rajah (Paladin, 2)
  • 251 - Swear Oath to Council (Paladin, 5)
  • 252 - Enter peace conference (20)
  • 253 - Bring Gem of the Guardian to Temple (10)
  • 254 - Finish soul weighing test (10)
  • 255 - Soul judged as balanced (5)
  • 256 - Get Vine Fruit (8)
  • 257 - Save Meerbat from Vines (Fighter, 8)
  • 258 - Get Peace Water (3)
  • 259 - Dip orchid in Pool of Peace (Wizard, 6)
  • 260 - Get Honeybird Feather (8)
  • 261 - Get Dinosaur Horn (Fighter, 3)
  • 262 - Hear Simbani storyteller (2)
  • 263 - Lose Simbani Initiation (Fighter, 5)
  • 264 - Win Initiation (Fighter, 10)
  • 265 - Returned Spear to Simbani village (20)
  • 266 - Sneak into Laibon's hut through hole (Thief, 8)
  • 267 - Ask Uhura about Spear of Death (2)
  • 268 - Ask Uhura about wooing Johari (2)
  • 269 - Ask Laibon about Spear (2)
  • 270 - Ask Laibon about Drum (2)
  • 271 - Give dinosaur horn to Laibon (Fighter, 3)
  • 272 - Give zebra skins to Laibon (3)
  • 273 - Give fine robe to Laibon (3)
  • 274 - Give fine spear to Laibon (3)
  • 275 - Steal Drum of Magic (Thief, 8)
  • 276 - Anger Laibon by touching drum OR asking about drum again? (-5)
  • 277 - Practice spear throwing with Uhura (Fighter, 3)
  • 278 - Win spear throwing contest (Fighter, 5)
  • 279 - Practice on bridge with Uhura (Fighter, 3)
  • 280 - Win wrestling bridge content against Yesufu (Fighter, 5)
  • 281 - Use dispel potion on leopardman Johari (15)
  • 282 - Give carved leopard to Johari (3)
  • 283 - Give beads to Johari (3)
  • 284 - Give fine dagger to Johari (3)
  • 285 - Play Awari with Yesufu (3)
  • 286 - Tell Yesufu about Friendship (3)
  • 287 - Help Yesufu during race (Fighter, 8)
  • 288 - Win hanging ring race event (Fighter, 5)
  • 289 - Win ring of thorns race event (Fighter, 5)
  • 290 - Beat Leopardman (Fighter, 2)
  • 291 - Beat Flying Cobra (Fighter, 2)
  • 292 - Beat Crocodileman (Fighter, 2)
  • 293 - Beat Giant Ant (Fighter, 2)
  • 294 - Beat Dinosaur (Fighter, 2)
  • 295 - Beat Demon Worm (Fighter, 2)
  • 296 - Beat Apeman (Fighter, 2)
  • 297 - Kiss Johari (3)
  • 298 - Give Drum of Magic to Leopardman Chief (20)
  • 299 - Use magic grapnel to make tightrope outside Leopardman Chief's house (Thief, 5)
  • 300 - Throw food to leopard (Thief, 5)
  • 301 - Cross tightrope (Thief, 8)
  • 302 - Give fruit to monkey inside Leopardman Chief's house
  • 303 - Free monkey from cage (Thief, 5)
  • 304 - Steal Spear of Death (Thief, 5)
  • 305 - Win wizard duel (Wizard, 8)
  • 306 - Cast Summon Staff during duel (Wizard, 4)
  • 307 - Cast Calm on fire during duel (Wizard, 4)
  • 308 - Caste Juggling Lights in dark during duel (Wizard, 4)
  • 309 - Cast Reversal during duel (Wizard, 4)
  • 310 - Cast Open on cage during duel (Wizard, 4)
  • 311 - Cast attack spell successfully during duel (Wizard, 4)
  • 312 - Cast Levitate out of hole during duel (Wizard, 4)
  • 313 - Use dispel potion on Demon Leopardman Shaman (Wizard, 8)
  • 314 - Beat possessed Shaman in combat (Wizard, 5)
  • 315 - Free Manu from cage (8)
  • 316 - Follow Manu (3)
  • 317 - Get orchid (Wizard, 3)
  • 318 - Learn Lighting Ball spell from Johari (Wizard, 4)
  • 319 - Call out to Johari in jungle (3)
  • 320 - Tell Johari about Peace, or Magic Drum when holding it (8)
  • 321 - Enter monkey village (8)
  • 322 - Get rope ladder (Fighter, 5)
  • 323 - Convince Manu to take you Lost City (3)
  • 324 - Make bridge from vines (Fighter, 3)
  • 325 - Cross waterfall chasm (10)
  • 326 - Get Gem of the Guardian (5 points)
  • 327 - Get Heart Gift Fruit (5)
  • 328 - Get Magic Wood (Wizard, 5)
  • 329 - Get Anubis Statue Eyes (5)
  • 330 - Use statue eyes to open Lost City secret door (8)
  • 331 - Pick lock on Reeshaka's cell door (Thief, 5)
  • 332 - Use oil on cell door (Thief, 5)
  • 333 - Cast Calm on demons (Wizard, 6)
  • 334 - Cast Open on cell door (Wizard, 4)
  • 335 - Beat Fric (Fighter, 7)
  • 336 - Enter Reeshaka's prison cell (3)
  • 337 - Use dispel potion on Reeshaka (10)
  • 338 - Return to friends after beating Demon Wizard (25)
  • 339 - Enter Mirror Room (3)
  • 340 - Beat Demon Wizard (10)
  • 341 - Cast attack spell at, OR used shield on demon gate orb (20)
  • 342 - Beat Gargoyle (Fighter, 3)

Global scripting values

Hmmm...
To do:
Finish this section up with descriptions of all the values
  • 15 - New puzzle points (still shown in red in the stats' screen)
  • 121 - Night time? (0 is day, 1 is night)
  • 122 - Current day (starting from 0 as 0 means 1, 1 means 2, etc.)
  • 123 - How sleepy you are. (0: well rested, 1: getting tired, 2: exhausted from lack of sleep)
  • gTimeOfDay - Time of day - the value can be between 0 to 7, each signifying 3 hours of a day:
    • 0 - Day is dawning (5-7)
    • 1 - Mid morning (8-10)
    • 2 - Midday (11-13)
    • 3 - Mid afternoon (14-16)
    • 4 - Sunset approaching (17-19)
    • 5 - Night is still young (20-22)
    • 6 - Middle of night (23-1)
    • 7 - Not yet dawn (2-4)
  • 125 - Character class (0 for Fighter, 1 for Wizard, 2 for Thief, 3 for Paladin)
  • 129 - Kreesha's house state
  • 140 - Old puzzle points (different from global flag 15 until the stat's screen is viewed, which then copies it to 140)
  • 155 - Combat result? (0 = you died; 1 = running; 2 = won?)
  • 225 - Initial Honor score (similar to 265 and 404) upon the start of the game, used as a base value when Honor varies, to determine when you get additional Paladin abilities via current honor - initial honor
  • 265 - Initial Honor score (similar to 225 and 404) upon the start of the game, used as a base value when Honor varies, to determine when you get additional Paladin abilities via current honor - initial honor
  • 365 - Sets which random encounter you are getting.
    • 2 - Honey bird?
    • 500-600? - Monsters [need to update]
  • 427 & 428 - Hero's X/Y coordinates.
  • 404 - Initial Honor score (similar to 225 and 265) upon the start of the game, used as a base value when Honor varies, to determine when you get additional Paladin abilities via current honor - initial honor
  • 455 - egoRests script
  • 505 - Honey bird status with each value depending on the previous one:
    • 0:0000 - didn't ask honey seller about the honey bird or collected the honey bird feather
    • 0:1000 - asked honey seller about the honey bird and still didn't collect the honey bird feather
    • Other values - unknown meaning

References