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

BEGIN ~HLSKULL~

IF ~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #55977 /* ~When you touch the skull, its eyes blaze with an eerie light and it begins to speak:~ */
  IF ~~ THEN GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #55981 /* ~At last!~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #55983 /* ~I return to awareness.

Who is it that has awakened me?~ */
  IF ~~ THEN REPLY #55984 /* ~I am <GABBER>, an adventurer.~ */ GOTO 3
  IF ~~ THEN REPLY #55985 /* ~Who are you? What are you?~ */ GOTO 4
  IF ~~ THEN REPLY #55986 /* ~I'm sorry to have bothered you. I'll leave you be.~ */ GOTO 4
END

IF ~~ THEN BEGIN 3 // from: 2.0
  SAY #55988 /* ~Then you have found your fortune at last, <GABBER>. I am in need of your assistance. Serve me well and you will be rewarded beyond your wildest imaginings!~ */
  IF ~~ THEN REPLY #56179 /* ~What are you? What has happened to you?~ */ GOTO 4
  IF ~~ THEN REPLY #56180 /* ~I do not want to get involved.~ */ GOTO 6
END

IF ~~ THEN BEGIN 4 // from: 11.0 3.0 2.2 2.1
  SAY #56181 /* ~I am Kangaxx and I have been cursed. I am dead yet not dead. Cursed to eternal entrapment in this tomb by cruel enemies! Cursed to a fate worse than death!~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.0
  SAY #56182 /* ~But the curse can be reversed! With your assistance, I may live again. I have suffered for so long... will you help me?~ */
  IF ~~ THEN REPLY #56183 /* ~I will do what I can to help.~ */ GOTO 8
  IF ~~ THEN REPLY #56184 /* ~I do not intend to get involved in your battles.~ */ GOTO 6
  IF ~~ THEN REPLY #56185 /* ~To the contrary, I believe that you must have done something to deserve this fate. I will not help you.~ */ GOTO 7
END

IF ~~ THEN BEGIN 6 // from: 15.4 11.1 8.1 5.1 3.1
  SAY #56186 /* ~Please! I beg of you! I will give you anything you want. Power, riches beyond number! Anything!~ */
  IF ~~ THEN REPLY #56187 /* ~Anything, you say? What must I do to help?~ */ GOTO 8
  IF ~~ THEN REPLY #56188 /* ~No.~ */ GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.1 5.2
  SAY #56189 /* ~Then you too will suffer the rain of death I let fall upon the world when I regain my shell! A thousand years of suffering for every one I have rotted in this tomb!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 8 // from: 6.0 5.0
  SAY #56192 /* ~The fiends that did this to me keep me from returning by tearing apart my mortal form and keeping the pieces separated. You must find my body that I might again take mortal form.~ */
  IF ~~ THEN REPLY #56193 /* ~Where might I find these parts?~ */ GOTO 9
  IF ~~ THEN REPLY #56194 /* ~I would like to help but cannot. You'll have to find someone else.~ */ GOTO 6
  IF ~PartyHasItem("miscay")
!PartyHasItem("miscaw")~ THEN REPLY #56208 /* ~I have the torso with me.~ */ GOTO 12
  IF ~!PartyHasItem("miscay")
PartyHasItem("miscaw")~ THEN REPLY #56210 /* ~I have the arms and legs with me.~ */ GOTO 13
  IF ~PartyHasItem("miscay")
PartyHasItem("miscaw")~ THEN REPLY #56215 /* ~I have already found the bones.~ */ GOTO 14
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #56196 /* ~They are very close! I have no doubt that they lie within the city in tombs such as this. My enemies are predictable if nothing else. Seek my arms, legs, and torso.~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 15.3 9.0
  SAY #56197 /* ~You will be well rewarded for your efforts, <GABBER>. Hurry! Find the pieces and return!~ */
  IF ~~ THEN DO ~SetGlobal("KangaxxQuest","GLOBAL",1)~ UNSOLVED_JOURNAL #54293 /* ~Restore Kangaxx's Body

I have encountered a golden skull in the Docks District which has promised me wealth and power beyond my dreams if only I save him from his curse and restore his body.  He believes his arms, legs and torso to have been scattered about the tombs within the city.~ */ EXIT
END

IF ~Global("KangaxxQuest","GLOBAL",0)
~ THEN BEGIN 11 // from:
  SAY #56201 /* ~You have changed your mind?  Will you help lift the evil curse that holds me in this undeath?~ */
  IF ~~ THEN REPLY #56204 /* ~Tell me what has happened.~ */ GOTO 4
  IF ~~ THEN REPLY #56205 /* ~I will not.~ */ GOTO 6
END

IF ~~ THEN BEGIN 12 // from: 15.0 8.2
  SAY #56207 /* ~Then you need only find my arms and legs. Hurry! I must have my revenge!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 13 // from: 15.1 8.3
  SAY #56217 /* ~Then you need to find only my torso. Hurry! I must have my revenge!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 14 // from: 15.2 8.4
  SAY #56219 /* ~At last it is complete! Place the pieces in the tomb! The fools could not kill me!~ */
  IF ~~ THEN DO ~SetGlobal("UsedCrypt0331","GLOBAL",2)
TakePartyItem("miscaw")
TakePartyItem("miscay")
CreateVisualEffect("SPRAISED",[633.518])
Wait(4)
CreateCreature("HLKANG",[633.518],2)
DestroySelf()~ EXIT
END

IF ~Global("KangaxxQuest","GLOBAL",1)~ THEN BEGIN 15 // from:
  SAY #56220 /* ~At last, <GABBER>! What have you found?~ */
  IF ~PartyHasItem("miscay")
!PartyHasItem("miscaw")~ THEN REPLY #56221 /* ~I have the torso.~ */ GOTO 12
  IF ~!PartyHasItem("miscay")
PartyHasItem("miscaw")~ THEN REPLY #56222 /* ~I have the arms and legs.~ */ GOTO 13
  IF ~PartyHasItem("miscay")
PartyHasItem("miscaw")~ THEN REPLY #56225 /* ~I have found the pieces.~ */ GOTO 14
  IF ~!PartyHasItem("miscay")
!PartyHasItem("miscaw")~ THEN REPLY #56226 /* ~Nothing yet but I will keep looking.~ */ GOTO 10
  IF ~~ THEN REPLY #56229 /* ~I have decided that I will not help you.~ */ DO ~SetGlobal("KangaxxQuest","GLOBAL",0)~ GOTO 6
END
