BEGIN X#XANQ

APPEND ~%XAN_JOINED%~

IF ~%BGT_VAR% Global("X#XanQuest1","GLOBAL",4)~ THEN BEGIN XANQU1.1
SAY @0
IF ~~ THEN REPLY @1 EXTERN ~X#CHOP~ CHOPXAN4
IF ~Gender(Player1, FEMALE)~ THEN REPLY @2 EXTERN ~X#CHOP~ CHOPXAN4
IF ~~ THEN REPLY @3 DO ~SetGlobal("X#XanQuest1","GLOBAL",5) ActionOverride("X#CHOP", Enemy()) ActionOverride("X#CRU11", Enemy())~ EXIT
IF ~~ THEN REPLY @4 EXTERN ~X#CHOP~ CHOPXAN4
END

IF ~%BGT_VAR% Global("X#XanQuest1","GLOBAL",10)~ THEN BEGIN XanTrickPC
SAY @5
IF ~~ THEN REPLY @6 DO ~SetGlobal("X#XanQuest1","GLOBAL",11)~ EXTERN ~X#DAVI~ DAVI5.1
IF ~~ THEN REPLY @7 DO ~SetGlobal("X#XanQuest1","GLOBAL",11)~ EXTERN ~X#DAVI~ DAVI5.1
IF ~~ THEN REPLY @8 DO ~SetGlobal("X#XanQuest1","GLOBAL",11)~ EXTERN ~X#DAVI~ DAVI5.2
IF ~~ THEN REPLY @9 DO ~SetGlobal("X#XanQuest1","GLOBAL",11)~ EXTERN ~X#DAVI~ DAVI5.2
END

END

CHAIN3 ~%XAN_JOINED%~ TrickChain
@10
== ~X#DAVI~ @11
== ~%XAN_JOINED%~ @12
== ~X#DAVI~ @13
DO ~SetGlobal("X#XanQuest1","GLOBAL",9)~
EXIT
