BEGIN ACNECRO1
BEGIN ACNECRO2
BEGIN ACNECRO3

CHAIN
IF ~AreaCheck("ACCEM1")Global("ACCEM1","LOCALS",0)~ THEN ACNECRO3 1
@0 DO ~SetGlobal("ACCEM1","LOCALS",1)CreateVisualEffect("SPRAISED",[1555.452])Wait(4)CreateCreature("%SKELWA02%",[1555.452],0)ForceSpell(Myself,DRYAD_TELEPORT)~
==ACBREJ IF ~InParty("ACBRE")Detect("ACBRE")!StateCheck("ACBRE",CD_STATE_NOTVALID)~ THEN @1
==%VICONIA_BANTER% IF ~InParty("VICONIA")Detect("VICONIA")!StateCheck("VICONIA",CD_STATE_NOTVALID)~ THEN @2
==%AJANTIS_BANTER% IF ~InParty("AJANTIS")Detect("AJANTIS")!StateCheck("AJANTIS",CD_STATE_NOTVALID)~ THEN @3
==%MINSC_BANTER% IF ~InParty("MINSC")Detect("MINSC")!StateCheck("MINSC",CD_STATE_NOTVALID)~ THEN @4
==%IMOEN_BANTER% IF ~InParty("%IMOEN_DV%")Detect("%IMOEN_DV%")!StateCheck("%IMOEN_DV%",CD_STATE_NOTVALID)~ THEN @5
EXIT

CHAIN
IF ~AreaCheck("ACCEM2")Global("ACCEM1","LOCALS",0)~ THEN ACNECRO3 2
@6 DO ~SetGlobal("ACCEM1","LOCALS",1)~
==ACNECRO2 @7
==ACNECRO1 @8
==%AJANTIS_BANTER% IF ~InParty("AJANTIS")Detect("AJANTIS")!StateCheck("AJANTIS",CD_STATE_NOTVALID)~ THEN @9
==%KAGAIN_BANTER% IF ~InParty("KAGAIN")Detect("KAGAIN")!StateCheck("KAGAIN",CD_STATE_NOTVALID)~ THEN @10
END
IF ~~ THEN DO ~ActionOverride("ACNECRO1",ENEMY())ActionOverride("ACNECRO1",ApplySpell(Myself,WIZARD_STONE_SKIN))ActionOverride("ACNECRO2",ENEMY())ActionOverride("ACNECRO2",ApplySpell(Myself,WIZARD_STONE_SKIN))ActionOverride("ACNECRO3",ENEMY())ActionOverride("ACNECRO3",ReallyForceSpell(Myself,WIZARD_SHADOW_DOOR))~ EXIT

CHAIN
IF ~Global("ACNECROGIVEUP","LOCALS",1)~ THEN ACNECRO2 3
@11 DO ~SetGlobal("ACNECROGIVEUP","LOCALS",3)DestroyItem("MINHP1")ActionOverride("ACNECRO3",DestroyItem("MINHP1"))~
==ACNECRO3 IF ~!StateCheck("ACNECRO3",CD_STATE_NOTVALID)~ THEN @12 DO ~ReallyForceSpell(Myself,DRYAD_TELEPORT)~
==ACNECRO2 IF ~!StateCheck("ACNECRO2",CD_STATE_NOTVALID)~ THEN @13 DO ~ReallyForceSpell(Myself,DRYAD_TELEPORT)~
EXIT

CHAIN
IF ~Global("ACNECROGIVEUP","LOCALS",1)~ THEN ACNECRO3 3
@11 DO ~SetGlobal("ACNECROGIVEUP","LOCALS",3)DestroyItem("MINHP1")ActionOverride("ACNECRO2",DestroyItem("MINHP1"))~
==ACNECRO2 IF ~!StateCheck("ACNECRO3",CD_STATE_NOTVALID)~ THEN @12 DO ~ReallyForceSpell(Myself,DRYAD_TELEPORT)~
==ACNECRO3 IF ~!StateCheck("ACNECRO2",CD_STATE_NOTVALID)~ THEN @13 DO ~ReallyForceSpell(Myself,DRYAD_TELEPORT)~
EXIT

CHAIN
IF ~Global("ACNECROGIVEUP","LOCALS",2)~ THEN ACNECRO3 4
@14 DO ~SetGlobal("ACNECROGIVEUP","LOCALS",3)DestroyItem("MINHP1")ActionOverride("ACNECRO2",DestroyItem("MINHP1"))~
==ACNECRO2 IF ~!StateCheck("ACNECRO3",CD_STATE_NOTVALID)~ THEN @12 DO ~ReallyForceSpell(Myself,DRYAD_TELEPORT)~
==ACNECRO3 IF ~!StateCheck("ACNECRO2",CD_STATE_NOTVALID)~ THEN @13 DO ~ReallyForceSpell(Myself,DRYAD_TELEPORT)~
EXIT