// creator  : weidu.exe (version 23100)
// argument : _KORAX.DLG
// game		 : .
// source	 : ./override/_KORAX.DLG
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~_KORAX~

IF ~NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #77966 /* ~Wait, me no want fight, me Korax, me friend!~ */
  IF ~~ THEN REPLY #77967 /* ~Sorry chum, but you're a ghoul, and we're adventurers, so we're going to have to kill you.  And don't look so surprised: it's all by the book.~ */ DO ~Enemy()
~ GOTO 1
  IF ~~ THEN REPLY #77968 /* ~You're not our friend, but since you're a talking ghoul, and we haven't seen too many talking ghouls, we'll let you live.  Now get out of here!~ */ DO ~EscapeArea()
~ GOTO 2
  IF ~~ THEN REPLY #77969 /* ~You can be our friend, but you better not do anything that'll make us mad.~ */ GOTO 3
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #77970 /* ~You're meanies, and me don't like you.~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.1
  SAY #77971 /* ~No one likes me... me so sad.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 3 // from: 0.2
  SAY #77972 /* ~Me will be good boy, me promise.  Me will help you with anything you need.~ */
  IF ~~ THEN DO ~SetGlobalTimer("KoraxHostile","GLOBAL",600)
ChangeEnemyAlly(Myself,ALLY)
ApplySpell(Myself,CHARM_KORAX)
~ EXIT
  IF ~Global("X#JaheiraKorax","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#JaheiraKorax","GLOBAL",1)~ EXTERN ~_JAHEIJ~ 102
END

IF ~~ THEN BEGIN 4 // from: _JAHEIJ:102.1
  SAY #98583 /* ~Me want to help!~ */
  IF ~~ THEN DO ~SetGlobalTimer("KoraxHostile","GLOBAL",600)
ChangeEnemyAlly(Myself,ALLY)
ApplySpell(Myself,CHARM_KORAX)
~ EXIT
END
