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

BEGIN ~GORF1~
//////////////////////////////////////////////////
// WARNING: this file contains non-trivial WEIGHTs
//////////////////////////////////////////////////

IF WEIGHT #2 /* Triggers after states #: 13 14 even though they appear after this state */
~Global("GorfBystander","GLOBAL",0)
InParty("Mazzy")
Detect("Mazzy")
Range("Mazzy",20)
!StateCheck("Mazzy",STATE_SLEEPING)~ THEN BEGIN 0 // from:
  SAY #24406 /* ~What this? Baby paladin? Girl play dress-up like big warrior?~ */
  IF ~~ THEN DO ~SetGlobal("GorfPlotOn","GLOBAL",1)~ EXTERN ~MAZZYJ~ 40
END

IF ~~ THEN BEGIN 1 // from:
  SAY #24407 /* ~I talk you, pipsqueak. Go home to dolls, this big Gorf's world. I show you difference in wimpy halfling punch and Gorf squishy hit. Watch me.~ */
  IF ~~ THEN DO ~SetGlobal("GoKillEm","LOCALS",1)~ EXIT
END

IF ~~ THEN BEGIN 2 // from:
  SAY #24408 /* ~Huh?~ */
  IF ~~ THEN EXTERN ~MAZZYJ~ 42
END

IF ~~ THEN BEGIN 3 // from:
  SAY #24409 /* ~You want fight Gorf? Hah, hah, hah!~ */
  IF ~~ THEN EXTERN ~MAZZYJ~ 43
END

IF ~~ THEN BEGIN 4 // from:
  SAY #24410 /* ~Okay, girl-girl. I fight at Copper Coronet. In pits. You want go squishy, you come there. Gorf kill you.~ */
  IF ~~ THEN DO ~EscapeArea()~ EXTERN ~MAZZYJ~ 44
END

IF WEIGHT #3 /* Triggers after states #: 13 14 even though they appear after this state */
~GlobalGT("GorfBystander","GLOBAL",3)
!Global("GorfBystander","GLOBAL",6)
InParty("Mazzy")
See("Mazzy")
!StateCheck("Mazzy",STATE_SLEEPING)
~ THEN BEGIN 5 // from:
  SAY #24411 /* ~Gorf here to make people go squishy! Little girly warrior here. You ready go splat?~ */
  IF ~~ THEN EXTERN ~MAZZYJ~ 51
END

IF ~~ THEN BEGIN 6 // from:
  SAY #24412 /* ~Huh?~ */
  IF ~~ THEN EXTERN ~MAZZYJ~ 52
END

IF ~~ THEN BEGIN 7 // from:
  SAY #24413 /* ~Okay, good. Bunkin, where is Gorf's ale?~ */
  IF ~~ THEN EXTERN ~BUNKIN~ 15
END

IF WEIGHT #4 /* Triggers after states #: 13 14 even though they appear after this state */
~Global("GorfDrugged","GLOBAL",0)
Global("GorfBystander","GLOBAL",6")
!Dead("Surly")
!StateCheck("Surly",STATE_SLEEPING)~ THEN BEGIN 8 // from:
  SAY #24414 /* ~Ugh, that much good. Gorf ready to fight, pit man!~ */
  IF ~~ THEN DO ~SetGlobal("GorfBystander","GLOBAL",7)~ EXTERN ~SURLY~ 3
END

IF WEIGHT #5 /* Triggers after states #: 13 14 even though they appear after this state */
~Global("GorfDrugged","GLOBAL",1)
Global("GorfBystander","GLOBAL",6")
!Dead("Bunkin")
!StateCheck("Bunkin",STATE_SLEEPING)
!Dead("Surly")
!StateCheck("Surly",STATE_SLEEPING)~ THEN BEGIN 9 // from:
  SAY #24415 /* ~Huh? Ale taste funny. Taste funny good...  Bunkin, honey, you look real purty tonight.~ */
  IF ~~ THEN DO ~SetGlobal("GorfBystander","GLOBAL",7)~ EXTERN ~BUNKIN~ 16
END

IF ~~ THEN BEGIN 10 // from:
  SAY #24416 /* ~Fight?~ */
  IF ~~ THEN EXTERN ~BUNKIN~ 17
END

IF ~~ THEN BEGIN 11 // from:
  SAY #24417 /* ~Uh... pish... urgh... okay, I guess.~ */
  IF ~~ THEN EXTERN ~SURLY~ 3
END

IF WEIGHT #6 /* Triggers after states #: 13 14 even though they appear after this state */
~Global("GorfBystander","GLOBAL",2)
InParty("Mazzy")
Detect("Mazzy")
!StateCheck("Mazzy",STATE_SLEEPING)~ THEN BEGIN 12 // from:
  SAY #24429 /* ~See difference, little nothing? Tiny gives Gorf hurt head. Gorf no like. Gorf will squishy you kind.~ */
  IF ~~ THEN EXTERN ~MAZZYJ~ 41
END

IF WEIGHT #0 ~Global("GorfBystander","GLOBAL",0)
OR(4)
!InParty("Mazzy")
!Detect("Mazzy")
!Range("Mazzy",20)
StateCheck("Mazzy",STATE_SLEEPING)~ THEN BEGIN 13 // from:
  SAY #61220 /* ~Go 'way, you.  No business with youse.  Just restin' until my next fight in the pit, is all.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~GlobalGT("GorfBystander","GLOBAL",3)
!Global("GorfBystander","GLOBAL",6)
OR(3)
!InParty("Mazzy")
!See("Mazzy")
StateCheck("Mazzy",STATE_SLEEPING)~ THEN BEGIN 14 // from:
  SAY #61242 /* ~Gorf ready to squashy pipsqueak!  Why pipsqueak not ready?!~ */
  IF ~~ THEN EXIT
END
