// creator  : weidu.exe (version 23100)
// argument : GORBEL.DLG
// game		 : .
// source	 : ./DATA/25DIALOG.BIF
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~GORBEL~

IF ~!PartyHasItem("PLOT04d")
~ THEN BEGIN 0 // from:
  SAY #62858 /* ~Carston seems to be encased in some type of casing made of indestructible glass.~ */
  IF ~~ THEN EXIT
END

IF ~PartyHasItem("PLOT04d")
~ THEN BEGIN 1 // from:
  SAY #62859 /* ~Carston gives you a worried look as you approach the protective glass surrounding him.  How many times will you strike the glass with the mallet?~ */
  IF ~~ THEN REPLY #62860 /* ~One.~ */ GOTO 2
  IF ~~ THEN REPLY #62861 /* ~Two.~ */ GOTO 2
  IF ~~ THEN REPLY #62863 /* ~Three.~ */ GOTO 2
  IF ~~ THEN REPLY #62864 /* ~Four.~ */ GOTO 2
  IF ~~ THEN REPLY #62865 /* ~Five.~ */ GOTO 2
  IF ~~ THEN REPLY #62866 /* ~Six.~ */ GOTO 3
  IF ~~ THEN REPLY #62867 /* ~Seven.~ */ GOTO 2
  IF ~~ THEN REPLY #62868 /* ~Eight.~ */ GOTO 2
  IF ~~ THEN REPLY #62869 /* ~Nine.~ */ GOTO 2
  IF ~~ THEN REPLY #62870 /* ~Ten.~ */ GOTO 2
  IF ~~ THEN REPLY #62876 /* ~I do not strike the glass.~ */ GOTO 4
END

IF ~~ THEN BEGIN 2 // from: 1.9 1.8 1.7 1.6 1.4 1.3 1.2 1.1 1.0
  SAY #62871 /* ~You strike the glass, carefully counting each blow.  Nothing happens.  Carston cackles gleefully at your failure, and gives you a malevolent grin as he pulls one of the levers on the Machine of Lum the Mad.~ */
  IF ~~ THEN DO ~ActionOverride("gorcar",ReallyForceSpell([PC],WIZARD_FIREBALL))
DestroySelf()
~ EXIT
END

IF ~~ THEN BEGIN 3 // from: 1.5
  SAY #62872 /* ~You strike the glass six times, then wait expectantly.  The magical cage begins to vibrate, giving off a high pitched hum.  A second later it dissolves into nothing more than dust.~ */
  IF ~~ THEN DO ~SetGlobal("BellJar","GLOBAL",1)
DestroySelf()
~ EXIT
END

IF ~~ THEN BEGIN 4 // from: 1.10
  SAY #62877 /* ~Carston breathes a sigh of relief as you walk away.~ */
  IF ~~ THEN DO ~DestroySelf()
~ EXIT
END
