// creator  : weidu.exe (version 23600)
// argument : PERMID.DLG
// game     : .
// source   : ./override/PERMID.DLG
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

BEGIN ~PERMID~

IF ~  True()
~ THEN BEGIN 0 // from:
  SAY #18316 /* ~Whoa, slow down! I'm trying to plan the grandest of heists here. With all your tromping about, I can't hear a word I'm thinking!~ */
  IF ~~ THEN REPLY #18320 /* ~Of course you can't hear a word you're thinking. You have to say it out loud first.~ */ GOTO 1
  IF ~~ THEN REPLY #18322 /* ~A heist? That's not particularly noble or, uh, legal of you...~ */ GOTO 2
  IF ~Global("X#ImoenPermidon","GLOBAL",0)
InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#ImoenPermidon","GLOBAL",1)~ EXTERN ~IMOEN2~ 221
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #18323 /* ~Okay, okay, here's the plan: There's a big-time mage living just over that rise. Magic items scattered all over the place, I'm betting... Trouble is, he's got these two hideous flesh monsters guarding him and no shadows where I can lurk! Brute force is useless against the monsters; everything is useless. There must be a way to outwit the witless, but damned if I know how... Ah hell, I guess I'd be better off just finding a halfling village somewhere to pick on. This dive is all yours.~ */
  IF ~~ THEN DO ~EscapeArea()
~ JOURNAL #27357 /* ~It seems I have accidentally altered the course of future history by stumbling upon the thief, Permidion Stark, as he was planning, in his words, "the greatest heist of all time." A powerful mage apparently lives nearby, guarded by horrid flesh-beasts. Stark claimed they were too tough to kill but that there might be a way to lure them away from the action. His will and concentration broken, Stark has left me here to ponder the situation.~ */ EXIT
  IF ~Global("X#PERMID1","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#PERMID1","GLOBAL",1)~ GOTO 3
  IF ~Global("X#PERMID1","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#PERMID1","GLOBAL",1)~ EXTERN ~GARRIJ~ 234
  IF ~Global("X#PERMID1","GLOBAL",0)
InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#PERMID1","GLOBAL",1)~ GOTO 5
  IF ~Global("X#PERMID1","GLOBAL",0)
InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#PERMID1","GLOBAL",1)~ EXTERN ~KIVANJ~ 396
END

IF ~~ THEN BEGIN 2 // from: 0.1
  SAY #18335 /* ~Fine, then. I'll let you take care of all that noble and legal stuff and I'll get on with being a thief. Now get lost.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 3 // from: 1.1
  SAY #46724 /* ~Good luck!~ */
  IF ~~ THEN DO ~EscapeArea()
~ JOURNAL #27357 /* ~It seems I have accidentally altered the course of future history by stumbling upon the thief, Permidion Stark, as he was planning, in his words, "the greatest heist of all time." A powerful mage apparently lives nearby, guarded by horrid flesh-beasts. Stark claimed they were too tough to kill but that there might be a way to lure them away from the action. His will and concentration broken, Stark has left me here to ponder the situation.~ */ EXIT
END

IF ~~ THEN BEGIN 4 // from:
  SAY #46724 /* ~Good luck!~ */
  IF ~~ THEN DO ~EscapeArea()
~ JOURNAL #27357 /* ~It seems I have accidentally altered the course of future history by stumbling upon the thief, Permidion Stark, as he was planning, in his words, "the greatest heist of all time." A powerful mage apparently lives nearby, guarded by horrid flesh-beasts. Stark claimed they were too tough to kill but that there might be a way to lure them away from the action. His will and concentration broken, Stark has left me here to ponder the situation.~ */ EXIT
END

IF ~~ THEN BEGIN 5 // from: 1.3
  SAY #50229 /* ~He's got plenty of scratch, I'll give ye that.~ */
  IF ~~ THEN DO ~EscapeArea()
~ JOURNAL #27357 /* ~It seems I have accidentally altered the course of future history by stumbling upon the thief, Permidion Stark, as he was planning, in his words, "the greatest heist of all time." A powerful mage apparently lives nearby, guarded by horrid flesh-beasts. Stark claimed they were too tough to kill but that there might be a way to lure them away from the action. His will and concentration broken, Stark has left me here to ponder the situation.~ */ EXIT
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN GOTO 6
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN EXTERN ~GARRIJ~ 235
END

IF ~~ THEN BEGIN 6 // from: 5.1
  SAY #46724 /* ~Good luck!~ */
  IF ~~ THEN DO ~EscapeArea()
~ JOURNAL #27357 /* ~It seems I have accidentally altered the course of future history by stumbling upon the thief, Permidion Stark, as he was planning, in his words, "the greatest heist of all time." A powerful mage apparently lives nearby, guarded by horrid flesh-beasts. Stark claimed they were too tough to kill but that there might be a way to lure them away from the action. His will and concentration broken, Stark has left me here to ponder the situation.~ */ EXIT
END

IF ~~ THEN BEGIN 7 // from:
  SAY #50229 /* ~He's got plenty of scratch, I'll give ye that.~ */
  IF ~~ THEN DO ~EscapeArea()
~ JOURNAL #27357 /* ~It seems I have accidentally altered the course of future history by stumbling upon the thief, Permidion Stark, as he was planning, in his words, "the greatest heist of all time." A powerful mage apparently lives nearby, guarded by horrid flesh-beasts. Stark claimed they were too tough to kill but that there might be a way to lure them away from the action. His will and concentration broken, Stark has left me here to ponder the situation.~ */ EXIT
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN GOTO 8
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN EXTERN ~GARRIJ~ 236
END

IF ~~ THEN BEGIN 8 // from: 7.1
  SAY #46724 /* ~Good luck!~ */
  IF ~~ THEN DO ~EscapeArea()
~ JOURNAL #27357 /* ~It seems I have accidentally altered the course of future history by stumbling upon the thief, Permidion Stark, as he was planning, in his words, "the greatest heist of all time." A powerful mage apparently lives nearby, guarded by horrid flesh-beasts. Stark claimed they were too tough to kill but that there might be a way to lure them away from the action. His will and concentration broken, Stark has left me here to ponder the situation.~ */ EXIT
END
