BEGIN ~CBSCCW02~

IF ~Global("Cb_SpokeWithEmbarassedCowls","AR1000",0)
Global("CbHelpingMelinda","GLOBAL",0)~ THEN BEGIN 0
  SAY @1
  IF ~~ THEN EXIT
END

IF ~Global("Cb_SpokeWithEmbarassedCowls","AR1000",1)
Global("CbHelpingMelinda","GLOBAL",0)~ THEN BEGIN 1
  SAY @2
  IF ~~ THEN EXIT
END

IF ~Global("CbHelpingMelinda","GLOBAL",1)
Global("Cb_CowlsDenyMelinda","AR1000",0)~ THEN BEGIN 2
  SAY @3
  IF ~~ THEN REPLY @4 GOTO 3
  IF ~~ THEN REPLY @5 GOTO 4
  IF ~GlobalGT("JaheiraCursed","GLOBAL",0)
GlobalLT("JaheiraCursed","GLOBAL",8)~ THEN REPLY @6 GOTO 5
  IF ~~ THEN REPLY @7 GOTO 6
END

IF ~~ THEN BEGIN 3
  SAY @8
  IF ~~ THEN DO ~SetGlobal("Cb_CowlsDenyMelinda","AR1000",1)~ EXIT
END

IF ~~ THEN BEGIN 4
  SAY @9
  IF ~~ THEN DO ~SetGlobal("Cb_CowlsDenyMelinda","AR1000",1)~ EXIT
END

IF ~~ THEN BEGIN 5
  SAY @10
  IF ~~ THEN DO ~SetGlobal("Cb_CowlsDenyMelinda","AR1000",1)~ EXIT
END

IF ~~ THEN BEGIN 6
  SAY @11
  IF ~~ THEN DO ~SetGlobal("Cb_CowlsDenyMelinda","AR1000",1)~ EXIT
END

IF ~Global("CbHelpingMelinda","GLOBAL",1)
Global("Cb_CowlsDenyMelinda","AR1000",1)~ THEN BEGIN 7
  SAY @12
  IF ~~ THEN REPLY @13 GOTO 8
END

IF ~~ THEN BEGIN 8
  SAY @14
  IF ~~ THEN REPLY @15 GOTO 9
  IF ~~ THEN REPLY @16 GOTO 4
END

IF ~~ THEN BEGIN 9
  SAY @17
  IF ~~ THEN REPLY @18 GOTO 10
  IF ~~ THEN REPLY @19 GOTO 11
  IF ~~ THEN REPLY @20 GOTO 12
END

IF ~~ THEN BEGIN 10
  SAY @21
  IF ~~ THEN EXIT
END

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

IF ~~ THEN BEGIN 12
  SAY @23
  IF ~~ THEN GOTO 13
END

IF ~~ THEN BEGIN 13
  SAY @24
  IF ~~ THEN REPLY @25 GOTO 14
END

IF ~~ THEN BEGIN 14
  SAY @26
  IF ~~ THEN REPLY @27 GOTO 15
  IF ~~ THEN REPLY @28 GOTO 16
END

IF ~~ THEN BEGIN 15
  SAY @29
  IF ~~ THEN REPLY @30 GOTO 19
  IF ~~ THEN REPLY @31 GOTO 20
  IF ~Global("Cb_optionchoose","LOCALS",0)~ THEN REPLY @32 DO ~SetGlobal("Cb_optionchoose","LOCALS",1)~ GOTO 16
  IF ~Global("Cb_optionchoose","LOCALS",1)~ THEN REPLY @32 GOTO 17
END

IF ~~ THEN BEGIN 16
  SAY @33
  IF ~~ THEN REPLY @34 GOTO 15
  IF ~~ THEN REPLY @35 GOTO 17
END

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

IF ~~ THEN BEGIN 18
  SAY @37
  IF ~~ THEN DO ~Wait(2)
SetGlobal("Cb_CowlsKillPC","AR1000",1)
ChangeEnemyAlly("CBSCCW01",ENEMY)
ChangeEnemyAlly("CBSCCW02",ENEMY)~ EXIT
END

IF ~~ THEN BEGIN 19
  SAY @38
  IF ~~ THEN REPLY @28 GOTO 16
END

IF ~~ THEN BEGIN 20
  SAY @39
  IF ~~ THEN REPLY @40 GOTO 23
  IF ~~ THEN REPLY @41 GOTO 21
END

IF ~~ THEN BEGIN 21
  SAY @42
  IF ~~ THEN REPLY @43 GOTO 24
  IF ~~ THEN REPLY @44 GOTO 22
  IF ~~ THEN REPLY @45 GOTO 24
END

IF ~~ THEN BEGIN 22
  SAY @46
  IF ~~ THEN GOTO 18
END

IF ~~ THEN BEGIN 23
  SAY @47
  IF ~~ THEN REPLY @43 GOTO 24
  IF ~~ THEN REPLY @44 GOTO 22
  IF ~~ THEN REPLY @45 GOTO 24
END

IF ~~ THEN BEGIN 24
  SAY @48
  IF ~~ THEN REPLY @49 GOTO 28
  IF ~~ THEN REPLY @50 GOTO 30
  IF ~~ THEN REPLY @51 GOTO 25
END

IF ~~ THEN BEGIN 25
  SAY @52
  IF ~~ THEN GOTO 26
END

IF ~~ THEN BEGIN 26
  SAY @53
  IF ~~ THEN GOTO 27
END

IF ~~ THEN BEGIN 27
  SAY @54
  IF ~~ THEN REPLY @49 GOTO 28
  IF ~~ THEN REPLY @50 GOTO 30
END

IF ~~ THEN BEGIN 28
  SAY @55
  IF ~~ THEN REPLY @56 GOTO 29
  IF ~~ THEN REPLY @57 GOTO 33
END

IF ~~ THEN BEGIN 29
  SAY @58
  IF ~~ THEN REPLY @57 GOTO 33
  IF ~~ THEN REPLY @59 GOTO 30
  IF ~~ THEN REPLY @51 GOTO 25
END

IF ~~ THEN BEGIN 30
  SAY @60
  IF ~~ THEN REPLY @61 GOTO 31
END

IF ~~ THEN BEGIN 31
  SAY @62
  IF ~~ THEN REPLY @63 GOTO 32
END

IF ~~ THEN BEGIN 32
  SAY @64
  IF ~~ THEN DO ~SetGlobal("CbHelpingMelinda","GLOBAL",2)~ EXIT
END

IF ~~ THEN BEGIN 33
  SAY @65
  IF ~~ THEN GOTO 34
END

IF ~~ THEN BEGIN 34
  SAY @66
  IF ~~ THEN REPLY @67 GOTO 32
END
