BEGIN ~BHBASMAR~

IF ~NumberOfTimesTalkedTo(0)
!Global("BHStupidTalk","GLOBAL",1)
!Global("BHQuenBasmarBoat","GLOBAL",2)
!Global("BHHiredAssassin","GLOBAL",1)
AreaCheck("BH2020")
~ THEN BEGIN 0
  SAY @1
  IF ~~ THEN REPLY @2 GOTO 1
END

IF ~~ THEN BEGIN 1
  SAY @3
  IF ~~ THEN REPLY @4 GOTO 2
END

IF ~~ THEN BEGIN 2
  SAY @5
  IF ~~ THEN REPLY @6 GOTO 3
END

IF ~~ THEN BEGIN 3
  SAY @7
  IF ~~ THEN DO ~SetGlobal("BHMadeContact","GLOBAL",1)
~ EXIT
END

IF ~NumberOfTimesTalkedTo(0)
Global("BHStupidTalk","GLOBAL",1)
!Global("BHQuenBasmarBoat","GLOBAL",2)
!Global("BHHiredAssassin","GLOBAL",1)
AreaCheck("BH2020")
~ THEN BEGIN 4
  SAY @8
  IF ~~ THEN REPLY @9 GOTO 0
END

IF ~Global("BHQuenBasmarBoat","GLOBAL",1)
GlobalLT("BHHiredAssassin","GLOBAL",1)
AreaCheck("BH2020")
~ THEN BEGIN 5
  SAY @10
  IF ~~ THEN REPLY @11 GOTO 6
END

IF ~~ THEN BEGIN 6
  SAY @12
  IF ~~ THEN REPLY @13 GOTO 7
END

IF ~~ THEN BEGIN 7
  SAY @14
  IF ~~ THEN REPLY @15 GOTO 8
END

IF ~~ THEN BEGIN 8
  SAY @16
  IF ~~ THEN REPLY @17 EXIT
  IF ~~ THEN REPLY @18 GOTO 9
END

IF ~~ THEN BEGIN 9
  SAY @19
  IF ~~ THEN REPLY @20 GOTO 10
  IF ~~ THEN REPLY @21 GOTO 11
END

IF ~~ THEN BEGIN 10
  SAY @22
  IF ~~ THEN DO ~SetGlobal("BHQuenBasmarBoat","GLOBAL",2)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 11
  SAY @23
  IF ~~ THEN REPLY @24 GOTO 12
END

IF ~~ THEN BEGIN 12
  SAY @25
  IF ~~ THEN REPLY @26 GOTO 13
END

IF ~~ THEN BEGIN 13
  SAY @27
  IF ~~ THEN REPLY @28 GOTO 14
END

IF ~~ THEN BEGIN 14
  SAY @29
  IF ~~ THEN REPLY @31 DO ~SetGlobal("BHQuenBasmarBoat","GLOBAL",2)
EscapeArea()
~ JOURNAL @30 EXIT
END

IF ~Global("BHQuenBasmarBoat","GLOBAL",3)
AreaCheck("BH2000")
~ THEN BEGIN 15
  SAY @32
  IF ~~ THEN DO ~ActionOverride("BHOscar",Enemy())
ActionOverride("BHPhilma",Enemy())
Shout(ALERT)
Enemy()
~ EXIT
END

IF ~AreaCheck("BH2300")
Global("BHMadeContact","GLOBAL",1)
~ THEN BEGIN 16
  SAY @33
  IF ~~ THEN REPLY @34 GOTO 17
  IF ~~ THEN REPLY @35 GOTO 27
END

IF ~~ THEN BEGIN 17
  SAY @36
  IF ~~ THEN REPLY @37 GOTO 18
END

IF ~~ THEN BEGIN 18
  SAY @38
  IF ~~ THEN REPLY @39 GOTO 19
  IF ~~ THEN REPLY @40 GOTO 20
END

IF ~~ THEN BEGIN 19
  SAY @41
  IF ~GlobalLT("BHStupidTalk","GLOBAL",1)
~ THEN REPLY @42 GOTO 21
  IF ~GlobalGT("BHStupidTalk","GLOBAL",0)
~ THEN REPLY @43 GOTO 30
END

IF ~~ THEN BEGIN 20
  SAY @44
  IF ~~ THEN REPLY @45 GOTO 22
END

IF ~~ THEN BEGIN 21
  SAY @46
  IF ~~ THEN REPLY @47 GOTO 23
END

IF ~~ THEN BEGIN 22
  SAY @48
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 23
  SAY @49
  IF ~~ THEN REPLY @50 GOTO 24
END

IF ~~ THEN BEGIN 24
  SAY @51
  IF ~~ THEN REPLY @52 GOTO 25
END

IF ~~ THEN BEGIN 25
  SAY @53
  IF ~~ THEN REPLY @54 GOTO 31
END

IF ~!Global("BHMadeContact","GLOBAL",1)
AreaCheck("BH2300")
~ THEN BEGIN 26
  SAY @55
  IF ~~ THEN REPLY @34 GOTO 17
  IF ~~ THEN REPLY @35 GOTO 27
END

IF ~~ THEN BEGIN 27
  SAY @56
  IF ~~ THEN REPLY @57 GOTO 28
END

IF ~~ THEN BEGIN 28
  SAY @58
  IF ~~ THEN REPLY @59 GOTO 29
END

IF ~~ THEN BEGIN 29
  SAY @60
  IF ~~ THEN REPLY @61 GOTO 21
END

IF ~~ THEN BEGIN 30
  SAY @62
  IF ~~ THEN REPLY @52 GOTO 25
END

IF ~~ THEN BEGIN 31
  SAY @63
  IF ~~ THEN DO ~SetGlobal("BHHiredAssassin","GLOBAL",1)
~ EXIT
END

IF ~GlobalLT("BHQuenBasmarBoat","GLOBAL",2)
Global("BHHiredAssassin","GLOBAL",1)
AreaCheck("BH2020")
~ THEN BEGIN 32
  SAY @64
  IF ~~ THEN DO ~SetGlobal("BHHiredAssassin","GLOBAL",2)
SetGlobalTimer("BHAssassinPlot","Global",TEN_TURNS)
~ EXIT
END

IF ~Global("BHHiredAssassin","GLOBAL",2)
GlobalLT("BHQuenBasmarBoat","GLOBAL",2)
GlobalTimerExpired("BHAssassinPlot","Global")
AreaCheck("BH2020")
~ THEN BEGIN 33
  SAY @65
  IF ~~ THEN REPLY @66 GOTO 34
  IF ~~ THEN REPLY @67 GOTO 35
END

IF ~~ THEN BEGIN 34
  SAY @68
  IF ~~ THEN REPLY @69 GOTO 35
END

IF ~~ THEN BEGIN 35
  SAY @70
  IF ~IfValidForPartyDialogue("Imoen2")
~ THEN REPLY @71 DO ~SetGlobal("BHHiredAssassin","GLOBAL",3)
EscapeArea()
~ EXTERN ~IMOEN2J~ BASMARIMOEN
  IF ~!IfValidForPartyDialogue("Imoen2")
~ THEN REPLY @71 DO ~SetGlobal("BHHiredAssassin","GLOBAL",3)
EscapeArea()
~ EXIT
END

APPEND ~IMOEN2J~

IF ~~ THEN BEGIN BASMARIMOEN
  SAY @72
  IF ~~ THEN REPLY @73 EXIT
END

END

