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

BEGIN ~PPWORKER~

IF ~NumTimesTalkedTo(0)
Global("WackoArmy","GLOBAL",0)
Global("AsylumPlot","GLOBAL",12)~ THEN BEGIN 0 // from:
  SAY #44121 /* ~Proceed to the recreation area. Enjoy your time out; you go back under key when night comes.~ */
  IF ~~ THEN REPLY #44122 /* ~What is this place?~ */ DO ~SetGlobalTimer("JonDoesKill","GLOBAL",360)
EraseJournalEntry(15760)~ GOTO 1
  IF ~~ THEN REPLY #44123 /* ~No, I don't belong here. I'm just here looking for someone else.~ */ DO ~SetGlobalTimer("JonDoesKill","GLOBAL",360)
EraseJournalEntry(15760)~ GOTO 3
  IF ~~ THEN REPLY #44124 /* ~Who are you?~ */ DO ~SetGlobalTimer("JonDoesKill","GLOBAL",360)
EraseJournalEntry(15760)~ GOTO 4
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #44125 /* ~What is this place? Strange question coming from you. It was my understanding that you wanted to be confined here.~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 3.0 1.0
  SAY #44126 /* ~But I suppose you ARE out of your mind, so I will explain. This is Spellhold, I am Lonk, you are an inmate, and this is recreation time. Frolic, if you please.~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 3 // from: 0.1
  SAY #44127 /* ~You really have no idea how often I hear that, do you? Of course you belong here. It was my understanding that you requested being here.~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 4 // from: 0.2
  SAY #44128 /* ~I am Lonk, Lonk the Sane. The surname is not my given, but it certainly serves to keep things straight around here. Now frolic as you will. This is recreation time.~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.0 2.0
  SAY #44129 /* ~You will find this time is the most relaxing of the day. Examinations may follow, and you will want to be well-rested.~ */
  IF ~~ THEN REPLY #44130 /* ~Who are all of these people here?~ */ GOTO 6
  IF ~~ THEN REPLY #44131 /* ~What is your job here?~ */ GOTO 8
  IF ~Global("SpokeImoen","GLOBAL",0)~ THEN REPLY #44132 /* ~Do you know of an inmate named Imoen?~ */ GOTO 9
  IF ~~ THEN REPLY #44138 /* ~How does someone get out of here?~ */ GOTO 11
  IF ~~ THEN REPLY #44161 /* ~Do you know of an inmate by the name of Irenicus?~ */ GOTO 13
END

IF ~~ THEN BEGIN 6 // from: 13.0 11.0 10.1 8.0 5.0
  SAY #44133 /* ~Mages mostly, driven insane by the energy they tried to unleash, or the energy they were made to unleash once here. Result is the same.~ */
  IF ~~ THEN GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #44134 /* ~Of course, some were a little crazy to begin with. I think you have to be crazy to be a wizard. Too much energy in the head.~ */
  IF ~~ THEN REPLY #44135 /* ~And your job here?~ */ GOTO 8
  IF ~Global("SpokeImoen","GLOBAL",0)~ THEN REPLY #44136 /* ~Do you know of an inmate named Imoen?~ */ GOTO 9
  IF ~~ THEN REPLY #44137 /* ~Thank you. I guess I'll join the others.~ */ GOTO 12
  IF ~~ THEN REPLY #44139 /* ~How does someone get out of here?~ */ GOTO 11
  IF ~~ THEN REPLY #44160 /* ~Do you know of an inmate by the name of Irenicus?~ */ GOTO 13
END

IF ~~ THEN BEGIN 8 // from: 13.1 11.1 10.0 7.0 5.1
  SAY #44140 /* ~My job? Taking care of crazies like you. Making sure you don't go and hurt yourselves with your deviant powers. And cookies, I make cookies.~ */
  IF ~~ THEN REPLY #44141 /* ~And all of these people? Who are they?~ */ GOTO 6
  IF ~Global("SpokeImoen","GLOBAL",0)~ THEN REPLY #44142 /* ~Do you know of an inmate named Imoen?~ */ GOTO 9
  IF ~~ THEN REPLY #44143 /* ~How does someone get out of here?~ */ GOTO 11
  IF ~~ THEN REPLY #44144 /* ~Thank you. I guess I'll join the others.~ */ GOTO 12
  IF ~~ THEN REPLY #44159 /* ~Do you know of an inmate by the name of Irenicus?~ */ GOTO 13
END

IF ~~ THEN BEGIN 9 // from: 13.2 11.2 8.1 7.1 5.2
  SAY #44145 /* ~Imoen? I think so. Hard to say. There is a girl here that used to answer to that. Don't think she remembers it anymore.~ */
  IF ~~ THEN DO ~SetGlobal("SpokeImoen","GLOBAL",1)~ UNSOLVED_JOURNAL #23407 /* ~Inside the Asylum

A worker in the asylum, Lonk the Sane, told me that Imoen is here... she is just down the hall, although apparently she doesn't remember much of herself.  He also mentioned that she killed other inmates and has a vicious streak... that doesn't sound like her at all...~ */ GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #44146 /* ~She's down the hall. Be careful though; she almost killed two other inmates the other day. She's got a vicious streak that is downright scary.~ */
  IF ~~ THEN REPLY #44147 /* ~And your job here?~ */ GOTO 8
  IF ~~ THEN REPLY #44148 /* ~Who are all of these people here?~ */ GOTO 6
  IF ~~ THEN REPLY #44149 /* ~How does someone get out of here?~ */ GOTO 11
  IF ~~ THEN REPLY #44150 /* ~Thank you. I guess I'll join the others.~ */ GOTO 12
  IF ~~ THEN REPLY #44158 /* ~Do you know of an inmate by the name of Irenicus?~ */ GOTO 13
END

IF ~~ THEN BEGIN 11 // from: 13.3 10.2 8.2 7.3 5.3
  SAY #44151 /* ~The quick way? Dying. Actually, so far that's been the only way. Unless you have friends high up in government. Otherwise, get used to the place.~ */
  IF ~~ THEN REPLY #44152 /* ~Who are all of these people here?~ */ GOTO 6
  IF ~~ THEN REPLY #44153 /* ~What is your job here?~ */ GOTO 8
  IF ~Global("SpokeImoen","GLOBAL",0)~ THEN REPLY #44154 /* ~Do you know of an inmate named Imoen?~ */ GOTO 9
  IF ~~ THEN REPLY #44155 /* ~Thank you. I guess I'll join the others.~ */ GOTO 12
  IF ~~ THEN REPLY #44157 /* ~Do you know of an inmate by the name of Irenicus?~ */ GOTO 13
END

IF ~~ THEN BEGIN 12 // from: 13.4 11.3 10.3 8.3 7.2
  SAY #44156 /* ~You go do that, and try to relax. The warden will be by soon enough. Then cookies.~ */
  IF ~~ THEN GOTO 15
END

IF ~~ THEN BEGIN 13 // from: 11.4 10.4 8.4 7.4 5.4
  SAY #44162 /* ~Irenicus? How do you know that name? Hmm, no matter. You'll be seeing him soon enough. He sees everybody.~ */
  IF ~~ THEN REPLY #44163 /* ~Who are all of these people here?~ */ UNSOLVED_JOURNAL #15751 /* ~Inside the Asylum

Lonk the Sane seemed surprised by the fact that I knew of Irenicus.  He told me that 'he sees everybody'.  It doesn't sound like Irenicus is an inmate.~ */ GOTO 6
  IF ~~ THEN REPLY #44164 /* ~And your job here?~ */ UNSOLVED_JOURNAL #15751 /* ~Inside the Asylum

Lonk the Sane seemed surprised by the fact that I knew of Irenicus.  He told me that 'he sees everybody'.  It doesn't sound like Irenicus is an inmate.~ */ GOTO 8
  IF ~Global("SpokeImoen","GLOBAL",0)~ THEN REPLY #44165 /* ~Do you know of an inmate named Imoen?~ */ UNSOLVED_JOURNAL #15751 /* ~Inside the Asylum

Lonk the Sane seemed surprised by the fact that I knew of Irenicus.  He told me that 'he sees everybody'.  It doesn't sound like Irenicus is an inmate.~ */ GOTO 9
  IF ~~ THEN REPLY #44166 /* ~How does someone get out of here?~ */ UNSOLVED_JOURNAL #15751 /* ~Inside the Asylum

Lonk the Sane seemed surprised by the fact that I knew of Irenicus.  He told me that 'he sees everybody'.  It doesn't sound like Irenicus is an inmate.~ */ GOTO 11
  IF ~~ THEN REPLY #44167 /* ~Thank you. I guess I'll join the others.~ */ UNSOLVED_JOURNAL #15751 /* ~Inside the Asylum

Lonk the Sane seemed surprised by the fact that I knew of Irenicus.  He told me that 'he sees everybody'.  It doesn't sound like Irenicus is an inmate.~ */ GOTO 12
END

IF ~Global("WackoArmy","GLOBAL",0)~ THEN BEGIN 14 // from:
  SAY #44168 /* ~Try to stop pestering me. It's hard enough keeping an eye on all of these weaving robes of spellcasters.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 15 // from: 12.0
  SAY #44169 /* ~Oh, please try to stay away from Wanev. He's very excitable. Still sore about losing his position here. I tell him he shouldn't dwell on it, but he's quite inconsolable.~ */
  IF ~~ THEN EXIT
END

IF ~Global("WackoArmy","GLOBAL",1)~ THEN BEGIN 16 // from:
  SAY #45023 /* ~What? What are you doing here? You should be in your cells with the rest of the wackos! Lonk the sane takes care of you, but you had better show respect!~ */
  IF ~~ THEN DO ~SetGlobal("DrowTalk","GLOBAL",5)
DestroyItem("minhp1")
ChangeAIScript("WTASIGHT",DEFAULT)
~ GOTO 17
END

IF ~~ THEN BEGIN 17 // from: 16.0
  SAY #45024 /* ~Everyone gets locked down tonight. Too many people getting agitated. Always happens when the boss experiments. Makes them angry, I guess.~ */
  IF ~~ THEN REPLY #45025 /* ~Open the cells, Lonk! I'm releasing everyone!~ */ GOTO 18
  IF ~~ THEN REPLY #45026 /* ~Don't trouble yourself. Give me the keys and I'll lock myself up.~ */ GOTO 19
  IF ~~ THEN REPLY #45027 /* ~Makes them angry, does it? What would happen if they got loose?~ */ GOTO 20
END

IF ~~ THEN BEGIN 18 // from: 32.0 17.0
  SAY #45037 /* ~Now just you wait a moment! Do you know what would happen if you released these people all at once?~ */
  IF ~~ THEN GOTO 20
END

IF ~~ THEN BEGIN 19 // from: 32.1 20.1 17.1
  SAY #45038 /* ~There ain't but one 'key,' and you ain't getting it. Now get to your cell before I get angry. More tests for you if I get angry!~ */
  IF ~~ THEN REPLY #45065 /* ~Release them all now! I won't ask again!~ */ GOTO 21
  IF ~~ THEN REPLY #45066 /* ~What would it be worth to get you to release them all?~ */ GOTO 23
  IF ~~ THEN REPLY #45068 /* ~All right, I'll go.~ */ DO ~SetGlobal("WackoArmy","GLOBAL",2)~ GOTO 22
END

IF ~~ THEN BEGIN 20 // from: 18.0 17.2
  SAY #45039 /* ~You're one of them, what would you do? Individually they can be bullied around, but all together? They get too excited to control!~ */
  IF ~~ THEN REPLY #45062 /* ~That's just what I'm hoping for. Release them all now!~ */ GOTO 21
  IF ~~ THEN REPLY #45063 /* ~Well, I'd better just go to my cell then. Give me the keys and I'll leave you be.~ */ GOTO 19
  IF ~~ THEN REPLY #45064 /* ~What would it be worth to get you to release them?~ */ GOTO 23
END

IF ~~ THEN BEGIN 21 // from: 31.0 30.0 27.0 24.0 23.0 20.0 19.0
  SAY #45061 /* ~You're looking to be difficult, aren't you? I can accommodate that. I don't watch over this place because I'm helpless.~ */
  IF ~~ THEN DO ~Enemy()~ EXIT
END

IF ~~ THEN BEGIN 22 // from: 32.2 31.1 30.1 27.1 24.1 19.2
  SAY #45069 /* ~That's a good <GIRLBOY>. Cookies if you're good.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 23 // from: 32.3 20.2 19.1
  SAY #45072 /* ~Worth to me? How much is a life going for these days? That new director Irenicus would have me quartered in his experiments. He's done it before.~ */
  IF ~~ THEN REPLY #45073 /* ~Then die at my hand instead of his!~ */ GOTO 21
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)~ THEN REPLY #45074 /* ~You only follow him out of fear. I'll destroy him with the help of the inmates.~ */ GOTO 24
  IF ~ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)~ THEN REPLY #45075 /* ~You only follow him out of fear. I'll destroy him with the help of the inmates.~ */ GOTO 25
  IF ~PartyGoldGT(199)~ THEN REPLY #45076 /* ~I'll offer you 200 gold to help me.~ */ GOTO 27
  IF ~PartyGoldGT(1999)~ THEN REPLY #45077 /* ~How about 2,000 gold. Is that worth it?~ */ GOTO 28
  IF ~PartyGoldGT(9999)~ THEN REPLY #45078 /* ~10,000 gold will change your tune.~ */ GOTO 31
END

IF ~~ THEN BEGIN 24 // from: 23.1
  SAY #45079 /* ~No, no I really don't think you can pull it off. You are just not convincing enough in your manner. Back to your cells before I get in trouble.~ */
  IF ~~ THEN REPLY #45090 /* ~Then I'll kill you where you stand!~ */ GOTO 21
  IF ~~ THEN REPLY #45091 /* ~All right, I'm going.~ */ GOTO 22
END

IF ~~ THEN BEGIN 25 // from: 23.2
  SAY #45080 /* ~You think... you could?  Hmmm... That's an new way to look at it. I don't like him much, and he's never been less than rude to me.~ */
  IF ~~ THEN GOTO 26
END

IF ~~ THEN BEGIN 26 // from: 25.0
  SAY #45081 /* ~You know, I really preferred Wanev as director. It was a shame what Irenicus did to him. I will help you, I think. You may do as you wish with the inmates.  I'll be back when this mess is cleared up.~ */
  IF ~~ THEN DO ~SetGlobal("AsylumPlot","GLOBAL",53)
EscapeArea()~ EXIT
END

IF ~~ THEN BEGIN 27 // from: 23.3
  SAY #45082 /* ~That's not worth even talking about it! You get back to your cell on the double!~ */
  IF ~~ THEN REPLY #45086 /* ~Then I'll kill you where you stand!~ */ GOTO 21
  IF ~~ THEN REPLY #45087 /* ~All right, I'm going.~ */ GOTO 22
  IF ~~ THEN REPLY #45093 /* ~2,000 then! How about that?~ */ GOTO 28
  IF ~~ THEN REPLY #45094 /* ~How about 10,000. A fortune!~ */ GOTO 31
END

IF ~~ THEN BEGIN 28 // from: 27.2 23.4
  SAY #45083 /* ~2,000! That's... that's a fortune! I could get pretty far on that... yes sir... hmmm.~ */
  IF ~!ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)~ THEN DO ~TakePartyGold(2000)~ GOTO 29
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)~ THEN GOTO 30
END

IF ~~ THEN BEGIN 29 // from: 28.0
  SAY #45084 /* ~Alright, if you want them out so bad, I'll let them out. I'd better head straight for the docks and get out myself though. Irenicus is going to be incensed.~ */
  IF ~~ THEN DO ~SetGlobal("AsylumPlot","GLOBAL",53)
EscapeArea()~ EXIT
END

IF ~~ THEN BEGIN 30 // from: 28.1
  SAY #45085 /* ~No, I don't think I'll take it. I just don't like you that much. Don't trust what you'll do. Get back to your cell.~ */
  IF ~~ THEN REPLY #45088 /* ~Then I'll kill you where you stand!~ */ GOTO 21
  IF ~~ THEN REPLY #45089 /* ~All right, I'm going.~ */ GOTO 22
  IF ~~ THEN REPLY #45095 /* ~10,000 then! Think of it!~ */ GOTO 31
END

IF ~~ THEN BEGIN 31 // from: 30.2 27.3 23.5
  SAY #45092 /* ~10,000?! You *are* out of your mind. I have never even seen that much gold. Get back to your cell before I get mad.~ */
  IF ~~ THEN REPLY #45096 /* ~Then I'll kill you where you stand!~ */ GOTO 21
  IF ~~ THEN REPLY #45097 /* ~All right, I'm going.~ */ GOTO 22
END

IF ~Global("WackoArmy","GLOBAL",2)~ THEN BEGIN 32 // from:
  SAY #45098 /* ~What do you want now? I've told you to get back in your cell. Don't make me restrain you. I don't usually like to do that.~ */
  IF ~~ THEN REPLY #45099 /* ~Open the cells, Lonk! I'm releasing everyone!~ */ GOTO 18
  IF ~~ THEN REPLY #45100 /* ~Don't trouble yourself. Give me the keys and I'll lock myself up.~ */ GOTO 19
  IF ~~ THEN REPLY #45101 /* ~All right, I'll go.~ */ GOTO 22
  IF ~~ THEN REPLY #45102 /* ~What would it be worth to get you to release them all?~ */ GOTO 23
END
