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

BEGIN ~X#KABAND~

IF ~  Global("X#CaravanBanditEncounter","GLOBAL",1)
~ THEN BEGIN 0 // from:
  SAY #101254 /* ~Boy, are ya the wrong thin' in the wrong place at the wrong time!~ */
  IF ~~ THEN GOTO 1
  IF ~  InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN EXTERN ~_SHARTJ~ 149
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 166
  IF ~  InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KIVANJ~ 262
  IF ~  InParty("kagain")
InMyArea("kagain")
!StateCheck("kagain",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KAGAIJ~ 37
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #101259 /* ~Have ta kill ya now. Nothin' personal, ya understand?~ */
  IF ~~ THEN DO ~SetGlobal("X#CaravanBanditEncounter","GLOBAL",2)
SetGlobal("X#KagainCaravan","GLOBAL",3)
ActionOverride("X#BANDK1",ChangeEnemyAlly("X#BANDK1",ENEMY))
ActionOverride("X#BANDK2",ChangeEnemyAlly("X#BANDK2",ENEMY))
ActionOverride("X#BANDK3",ChangeEnemyAlly("X#BANDK3",ENEMY))
Enemy()
~ EXIT
END
