BEGIN ~tranzi~

IF WEIGHT #2 ~NumTimesTalkedTo(0)~ THEN BEGIN 0
  SAY @8856
  IF ~~ THEN REPLY @8858 GOTO 2
  IF ~~ THEN REPLY @8859 GOTO 1
  IF ~~ THEN REPLY @8860 GOTO 4
END

IF ~~ THEN BEGIN 1
  SAY @8857
  IF ~~ THEN DO ~Enemy()~ EXIT
END

IF ~~ THEN BEGIN 2
  SAY @8861
  IF ~~ THEN REPLY @8862 GOTO 4
  IF ~~ THEN REPLY @8863 GOTO 1
  IF ~~ THEN REPLY @8864 GOTO 3
END

IF ~~ THEN BEGIN 3
  SAY @8865
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 4
  SAY @8866
  IF ~~ THEN REPLY @8867 GOTO 5
  IF ~~ THEN REPLY @8868 GOTO 1
  IF ~~ THEN REPLY @8869 GOTO 5
END

IF ~~ THEN BEGIN 5
  SAY @8870
  IF ~~ THEN DO ~Enemy()~ UNSOLVED_JOURNAL @310544 EXIT
END

IF ~NumTimesTalkedToGT(0)~ THEN BEGIN 6
  SAY @8871
  IF ~~ THEN REPLY @8872 GOTO 1
  IF ~~ THEN REPLY @8873 GOTO 5
END

IF WEIGHT #3 ~HPLT(Myself,20)~ THEN BEGIN 7
  SAY @8874
  IF ~~ THEN REPLY @8875 GOTO 10
  IF ~~ THEN REPLY @8876 UNSOLVED_JOURNAL @310545 GOTO 8
END

IF ~~ THEN BEGIN 8
  SAY @8877
  IF ~~ THEN REPLY @8878 DO ~SetGlobal("BANDITENEMY","GLOBAL",1)
RevealAreaOnMap("AR8700")
SetGlobal("RevealBandits","GLOBAL",1)~ UNSOLVED_JOURNAL @310400 GOTO 9
  IF ~~ THEN REPLY @8879 DO ~ClearAllActions()
ChangeEnemyAlly(Myself,NEUTRAL)
ChangeAIScript("",OVERRIDE)
EscapeArea()~ EXIT
  IF ~~ THEN REPLY @8880 GOTO 10
END

IF ~~ THEN BEGIN 9
  SAY @8881
  IF ~~ THEN REPLY @8882 DO ~ChangeEnemyAlly(Myself,NEUTRAL)
ChangeAIScript("",OVERRIDE)
EscapeArea()~ EXIT
  IF ~~ THEN REPLY @8883 GOTO 10
END

IF ~~ THEN BEGIN 10
  SAY @8884
  IF ~~ THEN DO ~ChangeAIScript("",OVERRIDE)
Enemy()~ EXIT
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)~ THEN BEGIN 11
  SAY @8885
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 12
  SAY @9042
  IF ~~ THEN EXIT
END
