BEGIN ~evalt~

IF WEIGHT #0 ~Global("Kaishas1","GLOBAL",0)~ THEN BEGIN 0
  SAY @21114
  IF ~~ THEN UNSOLVED_JOURNAL @310658 EXIT
END

IF WEIGHT #2 ~Global("Kaishas1","GLOBAL",1)
Global("Evalt1","GLOBAL",0)
Global("EvaltGuest","GLOBAL",0)~ THEN BEGIN 1
  SAY @21116
  IF ~~ THEN REPLY @21137 DO ~SetGlobal("Evalt1","GLOBAL",1)~ GOTO 2
  IF ~~ THEN REPLY @21139 DO ~SetGlobal("Evalt1","GLOBAL",1)~ GOTO 4
  IF ~~ THEN REPLY @21142 DO ~SetGlobal("Evalt1","GLOBAL",1)~ GOTO 5
END

IF ~~ THEN BEGIN 2
  SAY @21117
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 3
  SAY @21119
  IF ~~ THEN REPLY @21144 GOTO 6
  IF ~~ THEN REPLY @21145 GOTO 7
END

IF ~~ THEN BEGIN 4
  SAY @21120
  IF ~~ THEN UNSOLVED_JOURNAL @310681 EXIT
END

IF ~~ THEN BEGIN 5
  SAY @21122
  IF ~~ THEN REPLY @21151 GOTO 2
  IF ~~ THEN REPLY @21156 GOTO 4
END

IF ~~ THEN BEGIN 6
  SAY @21125
  IF ~~ THEN REPLY @21159 GOTO 8
  IF ~~ THEN REPLY @21161 GOTO 7
END

IF ~~ THEN BEGIN 7
  SAY @21126
  IF ~~ THEN UNSOLVED_JOURNAL @310681 EXIT
END

IF ~~ THEN BEGIN 8
  SAY @21128
  IF ~~ THEN REPLY @21163 UNSOLVED_JOURNAL @310682 GOTO 7
  IF ~~ THEN REPLY @21165 GOTO 9
END

IF ~~ THEN BEGIN 9
  SAY @21130
  IF ~~ THEN DO ~SetGlobal("EvaltQuest","GLOBAL",1)~ UNSOLVED_JOURNAL @310683 EXIT
END

IF WEIGHT #3 ~PartyHasItem("misc1e")
Global("Evaltquest","GLOBAL",1)~ THEN BEGIN 10
  SAY @21132
  IF ~~ THEN DO ~TakePartyItem("misc1e")
SetGlobal("Evaltquest","GLOBAL",2)
EraseJournalEntry(@310682)
EraseJournalEntry(@310683)
AddexperienceParty(900)~ SOLVED_JOURNAL @310684 EXIT
END

IF WEIGHT #4 ~Global("EvaltQuest","GLOBAL",1)
Global("Evalt1","GLOBAL",1)~ THEN BEGIN 11
  SAY @21133
  IF ~~ THEN REPLY @21167 EXIT
END

IF WEIGHT #5 ~Global("Evalt1","GLOBAL",1)
Global("Kaishas1","GLOBAL",1)
Global("EvaltQuest","GLOBAL",0)~ THEN BEGIN 12
  SAY @22159
  IF ~~ THEN REPLY @22160 GOTO 6
  IF ~~ THEN REPLY @22161 GOTO 7
END

IF WEIGHT #1 ~Global("Evaltquest","GLOBAL",2)~ THEN BEGIN 13
  SAY @22756
  IF ~~ THEN EXIT
END
