BEGIN ~BHWILBUR~

IF ~Global("BHBardAsksWilbur","BH2018",2)
~ 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 ~CheckStatGT(LastTalkedToBy,15,CHR)
~ THEN REPLY @6 GOTO 3
  IF ~CheckStatLT(LastTalkedToBy,16,CHR)
~ THEN REPLY @6 GOTO 5
END

IF ~~ THEN BEGIN 3
  SAY @7
  IF ~~ THEN REPLY @8 GOTO 4
END

IF ~~ THEN BEGIN 4
  SAY @9
  IF ~~ THEN REPLY @10 EXTERN ~BHBALMOR~ 29
END

IF ~~ THEN BEGIN 5
  SAY @7
  IF ~~ THEN REPLY @8 GOTO 6
END

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

IF ~~ THEN BEGIN 7
  SAY @13
  IF ~~ THEN REPLY @14 DO ~SetGlobal("BHBardAsksWilbur","BH2018",3)
SetGlobal("BHWilburTells","GLOBAL",2)
SetGlobal("BHWilburLied","GLOBAL",1)
~ EXIT
END

IF ~~ THEN BEGIN 8
  SAY @15
  IF ~~ THEN REPLY @16 EXTERN ~BHBALMOR~ 31
  IF ~~ THEN REPLY @17 GOTO 9
END

IF ~~ THEN BEGIN 9
  SAY @18
  IF ~~ THEN REPLY @19 EXTERN ~BHBALMOR~ 31
  IF ~~ THEN REPLY @20 GOTO 10
END

IF ~~ THEN BEGIN 10
  SAY @21
  IF ~~ THEN REPLY @22 DO ~SetGlobal("BHWilburTells","GLOBAL",1)
SetGlobal("BHBardAsksWilbur","BH2018",3)
~ EXIT
END
