IF StateCheck(Myself,STATE_PANIC) Range(NearestEnemyOf(Myself),10) THEN RESPONSE #100 RunAwayFromNoLeaveArea(NearestEnemyOf(Myself),15) END IF StateCheck(Myself,STATE_PANIC) THEN RESPONSE #100 RandomWalkContinuous() END IF GlobalLT("DMWW_genai_difficulty","GLOBAL",3) OR(2) DifficultyLT(NORMAL) !Global("DMWW_genai_difficulty","GLOBAL",0) !Global("removedpotions","LOCALS",1) !HasItem("dw#haspt",Myself) // Mirror THEN RESPONSE #100 SetGlobal("removedpotions","LOCALS",1) DestroyItem("potn03") // Potion of Hill Giant Strength DestroyItem("potn04") // Potion of Frost Giant Strength DestroyItem("potn05") // Potion of Fire Giant Strength DestroyItem("potn06") // Potion of Cloud Giant Strength DestroyItem("potn08") // Potion of Healing DestroyItem("potn09") // Potion of Heroism DestroyItem("potn10") // Potion of Invisibility DestroyItem("potn11") // Potion of Invulnerability DestroyItem("potn12") // Potion of Stone Giant Strength DestroyItem("potn14") // Potion of Speed DestroyItem("potn24") // Potion of Defense DestroyItem("potn34") // Potion of Magic Blocking DestroyItem("potn35") // Potion of Resilience DestroyItem("potn45") // Potion of Freedom DestroyItem("potn52") // Potion of Extra Healing Continue() END IF GlobalLT("DMWW_genai_difficulty","GLOBAL",2) OR(2) Difficulty(EASIEST) !Global("DMWW_genai_difficulty","GLOBAL",0) Heard([ANYONE],WARNALARM) !See(NearestEnemyOf(Myself)) THEN RESPONSE #100 MoveToObject(NearestEnemyOf(Myself)) END IF GlobalLT("DMWW_genai_difficulty","GLOBAL",2) OR(2) Difficulty(EASIEST) !Global("DMWW_genai_difficulty","GLOBAL",0) AttackedBy([GOODCUTOFF],DEFAULT) !Allegiance(Myself,ENEMY) THEN RESPONSE #100 Enemy() END IF OR(3) !GlobalGT("DMWW_genai_difficulty","GLOBAL",1) !Allegiance(Myself,ENEMY) StateCheck(Myself,STATE_CHARMED) OR(4) Difficulty(EASIEST) GlobalGT("DMWW_genai_difficulty","GLOBAL",0) !Allegiance(Myself,ENEMY) StateCheck(Myself,STATE_CHARMED) See(NearestEnemyOf(Myself)) Range(LastSeenBy(Myself),5) THEN RESPONSE #100 EquipMostDamagingMelee() AttackReevaluate(NearestEnemyOf(Myself),30) END IF OR(3) !GlobalGT("DMWW_genai_difficulty","GLOBAL",1) !Allegiance(Myself,ENEMY) StateCheck(Myself,STATE_CHARMED) OR(4) Difficulty(EASIEST) GlobalGT("DMWW_genai_difficulty","GLOBAL",0) !Allegiance(Myself,ENEMY) StateCheck(Myself,STATE_CHARMED) See(NearestEnemyOf(Myself)) THEN RESPONSE #100 EquipRanged() AttackReevaluate(NearestEnemyOf(Myself),30) END IF OR(3) !GlobalGT("DMWW_genai_difficulty","GLOBAL",1) !Allegiance(Myself,ENEMY) StateCheck(Myself,STATE_CHARMED) OR(4) Difficulty(EASIEST) GlobalGT("DMWW_genai_difficulty","GLOBAL",0) !Allegiance(Myself,ENEMY) StateCheck(Myself,STATE_CHARMED) AttackedBy([ANYONE],DEFAULT) THEN RESPONSE #100 Attack(LastAttackerOf(Myself)) END IF Global("validtarget","LOCALS",1) !Range(NearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",0) SetGlobalTimer("stayontarget","LOCALS",TWO_ROUNDS) ClearActions(Myself) END IF See(NearestEnemyOf(Myself)) !Range(NearestEnemyOf(Myself),5) !GlobalTimerNotExpired("castspell","LOCALS") GlobalTimerExpired("stayontarget","LOCALS") THEN RESPONSE #100 SetGlobalTimer("stayontarget","LOCALS",TWO_ROUNDS) ClearActions(Myself) END IF Global("FIN_TIME_STOP_RUNNING","GLOBAL",1) !GlobalTimerNotExpired("timestopreset","LOCALS") THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",22) SetGlobalTimer("timestopreset","LOCALS",SIX_ROUNDS) END IF AttackedBy([ENEMY.UNDEAD],DEFAULT) Allegiance(LastAttackerOf(Myself),ENEMY) General(LastAttackerOf(Myself),UNDEAD) Allegiance(Myself,ENEMY) THEN RESPONSE #100 ClearActions(LastAttackerOf(Myself)) Continue() END IF Allegiance(Myself,ENEMY) Range(Player1,30) !GlobalTimerNotExpired("thief_detection","LOCALS") CheckStatGT(Player1,65,DETECTILLUSIONS) ModalStateObject(Player1,DETECTTRAPS) THEN RESPONSE #100 SetGlobalTimer("thief_detection","LOCALS",ONE_MINUTE) Continue() END IF Allegiance(Myself,ENEMY) Range(Player2,30) !GlobalTimerNotExpired("thief_detection","LOCALS") CheckStatGT(Player2,65,DETECTILLUSIONS) ModalStateObject(Player2,DETECTTRAPS) THEN RESPONSE #100 SetGlobalTimer("thief_detection","LOCALS",ONE_MINUTE) Continue() END IF Allegiance(Myself,ENEMY) Range(Player3,30) !GlobalTimerNotExpired("thief_detection","LOCALS") CheckStatGT(Player3,65,DETECTILLUSIONS) ModalStateObject(Player3,DETECTTRAPS) THEN RESPONSE #100 SetGlobalTimer("thief_detection","LOCALS",ONE_MINUTE) Continue() END IF Allegiance(Myself,ENEMY) Range(Player4,30) !GlobalTimerNotExpired("thief_detection","LOCALS") CheckStatGT(Player4,65,DETECTILLUSIONS) ModalStateObject(Player4,DETECTTRAPS) THEN RESPONSE #100 SetGlobalTimer("thief_detection","LOCALS",ONE_MINUTE) Continue() END IF Allegiance(Myself,ENEMY) Range(Player5,30) !GlobalTimerNotExpired("thief_detection","LOCALS") CheckStatGT(Player5,65,DETECTILLUSIONS) ModalStateObject(Player5,DETECTTRAPS) THEN RESPONSE #100 SetGlobalTimer("thief_detection","LOCALS",ONE_MINUTE) Continue() END IF Allegiance(Myself,ENEMY) Range(Player6,30) !GlobalTimerNotExpired("thief_detection","LOCALS") CheckStatGT(Player6,65,DETECTILLUSIONS) ModalStateObject(Player6,DETECTTRAPS) THEN RESPONSE #100 SetGlobalTimer("thief_detection","LOCALS",ONE_MINUTE) Continue() END IF OR(2) !Global("inafight","LOCALS",1) !Allegiance(Myself,ENEMY) !Gender(Myself,SUMMONED) !Gender(Myself,20) OR(14) AttackedBy([GOODCUTOFF.0.0.0.0.SUMMONED],DEFAULT) AttackedBy([PC],DEFAULT) AttackedBy([FAMILIAR],DEFAULT) AttackedBy([ALLY],DEFAULT) AttackedBy([CONTROLLED],DEFAULT) AttackedBy([CHARMED],DEFAULT) SpellCastOnMe([GOODCUTOFF.0.0.0.0.SUMMONED],0) SpellCastOnMe([GOODCUTOFF],WIZARD_OBSCURING_MIST) // SPWI106.SPL (Obscuring Mist) SpellCastOnMe([GOODCUTOFF],WIZARD_FEEBLEMIND) // SPWI509.SPL (Feeblemind) SpellCastOnMe([GOODCUTOFF],WIZARD_CHARM_PERSON) // SPWI104.SPL (Charm Person) SpellCastOnMe([GOODCUTOFF],WIZARD_DIRE_CHARM) // SPWI316.SPL (Dire Charm) SpellCastOnMe([GOODCUTOFF],CLERIC_CHARM_PERSON) // SPPR204.SPL (Charm Person or Animal) SpellCastOnMe([GOODCUTOFF],CLERIC_MENTAL_DOMINATION) // SPPR405.SPL (Mental Domination) SpellCastOnMe([GOODCUTOFF],WIZARD_RAY_OF_ENFEEBLEMENT) // SPWI221.SPL (Ray of Enfeeblement) THEN RESPONSE #100 Enemy() SetGlobal("inafight","LOCALS",1) SetGlobalTimer("stayontarget","LOCALS",TWO_ROUNDS) SetGlobalTimer("seedefences","LOCALS",ONE_ROUND) Continue() END IF !Global("inafight","LOCALS",1) OR(9) See(NearestEnemyOf(Myself)) Heard([ANYONE],404) Heard([ANYONE],405) Heard([ANYONE],406) Heard([ANYONE],407) Heard([ANYONE],408) Heard([ANYONE],409) Heard([ANYONE],410) Heard([ANYONE],411) THEN RESPONSE #100 SetGlobal("inafight","LOCALS",1) SetGlobalTimer("stayontarget","LOCALS",TWO_ROUNDS) SetGlobalTimer("seedefences","LOCALS",ONE_ROUND) Continue() END IF Global("rest_state","LOCALS",0) Detect(NearestEnemyOf(Myself)) THEN RESPONSE #100 SetGlobal("rest_state","LOCALS",1) Continue() END IF Global("rest_state","LOCALS",1) !Detect(NearestEnemyOf(Myself)) THEN RESPONSE #100 SetGlobal("rest_state","LOCALS",2) SetGlobalTimer("rest_timer","LOCALS",EIGHT_HOURS) Continue() END IF Global("rest_state","LOCALS",2) Detect(NearestEnemyOf(Myself)) THEN RESPONSE #100 SetGlobal("rest_state","LOCALS",1) Continue() END IF Global("rest_state","LOCALS",2) GlobalTimerExpired("rest_timer","LOCALS") THEN RESPONSE #100 SetGlobal("rest_state","LOCALS",0) ApplySpell(Myself,RESTORE_FULL_HEALTH) // SPIN746.SPL (No such index) Rest() END IF Allegiance(Myself,ENEMY) !Global("DMWW_genai_difficulty","GLOBAL",1) OR(2) DifficultyGT(EASIEST) GlobalGT("DMWW_genai_difficulty","GLOBAL",0) !See(NearestEnemyOf(Myself)) OR(2) !GlobalTimerNotExpired("DMWWCuringBlindness","GLOBAL") !StateCheck(Myself,STATE_BLIND) OR(13) AttackedBy([GOODCUTOFF.0.0.0.0.SUMMONED],DEFAULT) AttackedBy([PC],DEFAULT) AttackedBy([FAMILIAR],DEFAULT) AttackedBy([ALLY],DEFAULT) AttackedBy([CONTROLLED],DEFAULT) AttackedBy([CHARMED],DEFAULT) SpellCastOnMe([GOODCUTOFF.0.0.0.0.SUMMONED],0) SpellCastOnMe([PC],0) SpellCastOnMe([FAMILIAR],0) SpellCastOnMe([ALLY],0) SpellCastOnMe([CONTROLLED],0) SpellCastOnMe([CHARMED],0) StateCheck([ENEMY],STATE_SLEEPING | STATE_PANIC | STATE_STUNNED | STATE_HELPLESS | STATE_CHARMED | STATE_FEEBLEMINDED | STATE_CONFUSED) !GlobalTimerNotExpired("whatthe","LOCALS") THEN RESPONSE #100 SetGlobalTimer("whatthe","LOCALS",TWO_ROUNDS) Continue() END IF !See(NearestEnemyOf(Myself)) !GlobalTimerNotExpired("seencloud","LOCALS") GlobalTimerNotExpired("whatthe","LOCALS") THEN RESPONSE #100 RandomWalkContinuous() END IF !Global("DMWW_genai_difficulty","GLOBAL",1) OR(2) DifficultyGT(EASIEST) GlobalGT("DMWW_genai_difficulty","GLOBAL",0) Heard([ANYONE],407) Range(LastHeardBy(Myself),20) OR(3) !CheckStatGT(Myself,99,RESISTACID) !CheckStatGT(Myself,99,RESISTFIRE) !CheckStatGT(Myself,99,RESISTELECTRICITY) OR(2) !CheckStatGT(Myself,80,RESISTMAGIC) !See(NearestEnemyOf(Myself)) THEN RESPONSE #100 SetGlobalTimer("seencloud","LOCALS",FOUR_MINUTES) RunAwayFromNoLeaveArea(LastHeardBy(Myself),30) END IF !Global("DMWW_genai_difficulty","GLOBAL",1) OR(2) DifficultyGT(EASIEST) GlobalGT("DMWW_genai_difficulty","GLOBAL",0) OR(2) Heard([ANYONE],405) Heard([ANYONE],409) Range(LastHeardBy(Myself),20) !CheckStatGT(Myself,99,RESISTFIRE) OR(2) !CheckStatGT(Myself,79,RESISTMAGIC) !See(NearestEnemyOf(Myself)) OR(2) !CheckStatGT(Myself,59,RESISTFIRE) !See(NearestEnemyOf(Myself)) THEN RESPONSE #100 SetGlobalTimer("seencloud","LOCALS",FOUR_MINUTES) RunAwayFromNoLeaveArea(LastHeardBy(Myself),30) END IF !Global("DMWW_genai_difficulty","GLOBAL",1) OR(2) DifficultyGT(EASIEST) GlobalGT("DMWW_genai_difficulty","GLOBAL",0) Heard([ANYONE],408) Range(LastHeardBy(Myself),20) !CheckStatGT(Myself,99,RESISTACID) OR(2) !CheckStatGT(Myself,80,RESISTMAGIC) !See(NearestEnemyOf(Myself)) OR(2) !CheckStatGT(Myself,59,RESISTACID) !See(NearestEnemyOf(Myself)) THEN RESPONSE #100 SetGlobalTimer("seencloud","LOCALS",FOUR_MINUTES) RunAwayFromNoLeaveArea(LastHeardBy(Myself),30) END IF !Global("DMWW_genai_difficulty","GLOBAL",1) OR(2) DifficultyGT(EASIEST) GlobalGT("DMWW_genai_difficulty","GLOBAL",0) Heard([ANYONE],404) Range(LastHeardBy(Myself),20) !General(Myself,UNDEAD) !Race(Myself,DEMONIC) OR(2) !CheckStatGT(Myself,80,RESISTMAGIC) !See(NearestEnemyOf(Myself)) THEN RESPONSE #100 SetGlobalTimer("seencloud","LOCALS",FOUR_MINUTES) RunAwayFromNoLeaveArea(LastHeardBy(Myself),30) END IF !Global("DMWW_genai_difficulty","GLOBAL",1) OR(2) DifficultyGT(EASIEST) GlobalGT("DMWW_genai_difficulty","GLOBAL",0) Heard([ANYONE],411) Range(LastHeardBy(Myself),15) !CheckStatGT(Myself,0,MINORGLOBE) !General(Myself,UNDEAD) !Race(Myself,DEMONIC) OR(2) !CheckStatGT(Myself,80,RESISTMAGIC) !See(NearestEnemyOf(Myself)) THEN RESPONSE #100 SetGlobalTimer("seencloud","LOCALS",FOUR_MINUTES) RunAwayFromNoLeaveArea(LastHeardBy(Myself),30) END IF See(Myself) !Kit(Myself,UNDEADHUNTER) !Kit(Myself,INQUISITOR) !CheckStatGT(Myself,0,CLERIC_FREE_ACTION) !CheckSpellState(Myself,STATE_ENRAGED) OR(2) !CheckSpellState(Myself,ITEM_HOLD_SEEN) !CheckSpellState(Myself,ITEM_HOLD) OR(2) !CheckSpellState(Myself,ITEM_HOLD_SEEN) !CheckSpellState(Myself,ITEM_HOLD) OR(2) !CheckSpellState(Myself,ITEM_HOLD_SEEN) !CheckSpellState(Myself,ITEM_HOLD) OR(2) !CheckSpellState(Myself,ITEM_ANTIWEB_SEEN) !CheckSpellState(Myself,ITEM_ANTIWEB) !Global("DMWW_genai_difficulty","GLOBAL",1) OR(2) DifficultyGT(EASIEST) GlobalGT("DMWW_genai_difficulty","GLOBAL",0) !CheckStatGT(Myself,0,MINORGLOBE) Heard([ANYONE],410) Range(LastHeardBy(Myself),15) OR(2) !CheckStatGT(Myself,80,RESISTMAGIC) !See(NearestEnemyOf(Myself)) THEN RESPONSE #100 SetGlobalTimer("seencloud","LOCALS",FOUR_MINUTES) RunAwayFromNoLeaveArea(LastHeardBy(Myself),30) END IF See(Myself) !Global("DMWW_genai_difficulty","GLOBAL",1) OR(2) DifficultyGT(EASIEST) GlobalGT("DMWW_genai_difficulty","GLOBAL",0) Heard([ANYONE],412) Range(LastHeardBy(Myself),20) !CheckStatGT(Myself,99,RESISTCOLD) OR(2) !CheckStatGT(Myself,80,RESISTMAGIC) !See(NearestEnemyOf(Myself)) OR(2) !CheckStatGT(Myself,59,RESISTCOLD) !See(NearestEnemyOf(Myself)) THEN RESPONSE #100 SetGlobalTimer("seencloud","LOCALS",FOUR_MINUTES) RunAwayFromNoLeaveArea(LastHeardBy(Myself),30) END IF See(NearestEnemyOf(Myself)) !Global("chasing","LOCALS",0) THEN RESPONSE #100 SetGlobal("chasing","LOCALS",0) ClearActions(Myself) END IF !GlobalTimerNotExpired("chasetarget","LOCALS") Allegiance(Myself,ENEMY) See(Player1) THEN RESPONSE #100 SetGlobalTimer("chasetarget","LOCALS",ONE_HOUR) SetGlobal("chasePC","LOCALS",1) Continue() END IF !GlobalTimerNotExpired("chasetarget","LOCALS") Allegiance(Myself,ENEMY) !See(Player1) See(Player2) THEN RESPONSE #100 SetGlobalTimer("chasetarget","LOCALS",ONE_HOUR) SetGlobal("chasePC","LOCALS",2) Continue() END IF !GlobalTimerNotExpired("chasetarget","LOCALS") Allegiance(Myself,ENEMY) !See(Player1) !See(Player2) See(Player3) THEN RESPONSE #100 SetGlobalTimer("chasetarget","LOCALS",ONE_HOUR) SetGlobal("chasePC","LOCALS",3) Continue() END IF !GlobalTimerNotExpired("chasetarget","LOCALS") Allegiance(Myself,ENEMY) !See(Player1) !See(Player2) !See(Player3) See(Player4) THEN RESPONSE #100 SetGlobalTimer("chasetarget","LOCALS",ONE_HOUR) SetGlobal("chasePC","LOCALS",4) Continue() END IF !GlobalTimerNotExpired("chasetarget","LOCALS") Allegiance(Myself,ENEMY) !See(Player1) !See(Player2) !See(Player3) !See(Player4) See(Player5) THEN RESPONSE #100 SetGlobalTimer("chasetarget","LOCALS",ONE_HOUR) SetGlobal("chasePC","LOCALS",5) Continue() END IF !GlobalTimerNotExpired("chasetarget","LOCALS") Allegiance(Myself,ENEMY) !See(Player1) !See(Player2) !See(Player3) !See(Player4) !See(Player5) See(Player6) THEN RESPONSE #100 SetGlobalTimer("chasetarget","LOCALS",ONE_HOUR) SetGlobal("chasePC","LOCALS",6) Continue() END IF Global("chasePC","LOCALS",1) StateCheck(Player1,STATE_REALLY_DEAD) THEN RESPONSE #100 SetGlobal("chasePC","LOCALS",0) Continue() END IF Global("chasePC","LOCALS",2) StateCheck(Player2,STATE_REALLY_DEAD) THEN RESPONSE #100 SetGlobal("chasePC","LOCALS",0) Continue() END IF Global("chasePC","LOCALS",3) StateCheck(Player3,STATE_REALLY_DEAD) THEN RESPONSE #100 SetGlobal("chasePC","LOCALS",0) Continue() END IF Global("chasePC","LOCALS",4) StateCheck(Player4,STATE_REALLY_DEAD) THEN RESPONSE #100 SetGlobal("chasePC","LOCALS",0) Continue() END IF Global("chasePC","LOCALS",5) StateCheck(Player5,STATE_REALLY_DEAD) THEN RESPONSE #100 SetGlobal("chasePC","LOCALS",0) Continue() END IF Global("chasePC","LOCALS",6) StateCheck(Player6,STATE_REALLY_DEAD) THEN RESPONSE #100 SetGlobal("chasePC","LOCALS",0) Continue() END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn34",Myself) // Potion of Magic Blocking !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) !Global("takendefence","LOCALS",1) !CheckStatGT(Myself,13,LEVEL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173517) // Quaffs potion of magic protection UseItem("dw#ptn34",Myself) // Potion of Magic Blocking SetGlobal("takendefence","LOCALS",1) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn35",Myself) // Potion of Resilience !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) !Global("takendefence","LOCALS",1) !CheckStatGT(Myself,13,LEVEL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173518) // Quaffs potion of magic shielding UseItem("dw#ptn35",Myself) // Potion of Resilience SetGlobal("takendefence","LOCALS",1) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn21",Myself) // Potion of Clarity !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) !Global("takendefence","LOCALS",1) !CheckStatGT(Myself,13,LEVEL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173519) // Quaffs potion of clarity UseItem("dw#ptn21",Myself) // Potion of Clarity SetGlobal("takendefence","LOCALS",1) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn45",Myself) // Potion of Freedom !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) !Global("takendefence","LOCALS",1) !CheckStatGT(Myself,13,LEVEL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173520) // Quaffs potion of freedom UseItem("dw#ptn45",Myself) // Potion of Freedom SetGlobal("takendefence","LOCALS",1) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn34",Myself) // Potion of Magic Blocking !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) !Global("takendefence","LOCALS",1) !CheckStatGT(Myself,13,LEVEL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173517) // Quaffs potion of magic protection UseItem("potn34",Myself) // Potion of Magic Blocking SetGlobal("takendefence","LOCALS",1) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn35",Myself) // Potion of Resilience !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) !Global("takendefence","LOCALS",1) !CheckStatGT(Myself,13,LEVEL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173518) // Quaffs potion of magic shielding UseItem("potn35",Myself) // Potion of Resilience SetGlobal("takendefence","LOCALS",1) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn21",Myself) // Potion of Clarity !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) !Global("takendefence","LOCALS",1) !CheckStatGT(Myself,13,LEVEL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173519) // Quaffs potion of clarity UseItem("potn21",Myself) // Potion of Clarity SetGlobal("takendefence","LOCALS",1) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn45",Myself) // Potion of Freedom !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) !Global("takendefence","LOCALS",1) !CheckStatGT(Myself,13,LEVEL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173520) // Quaffs potion of freedom UseItem("potn45",Myself) // Potion of Freedom SetGlobal("takendefence","LOCALS",1) END IF See(NearestEnemyOf(Myself)) Global("inafight","LOCALS",1) !GlobalTimerNotExpired("castspell","LOCALS") !StateCheck(Myself,STATE_INVISIBLE) Allegiance(Myself,ENEMY) !Allegiance(NearestEnemyOf(Myself),ENEMY) !StateCheck(NearestEnemyOf(Myself),STATE_IMMOBILE) !StateCheck(NearestEnemyOf(Myself),STATE_FEEBLEMINDED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) CanEquipRanged() Range(NearestEnemyOf(Myself),6) !GlobalTimerNotExpired("runonce","LOCALS") THEN RESPONSE #100 SetGlobalTimer("stayontarget","LOCALS",TWO_ROUNDS) SetGlobal("validtarget","LOCALS",0) SetInterrupt(FALSE) RunAwayFromNoLeaveArea(NearestEnemyOf(Myself),60) SetInterrupt(TRUE) SetGlobalTimer("runonce","LOCALS",THREE_ROUNDS) END IF See(SecondNearestEnemyOf(Myself)) Global("inafight","LOCALS",1) !GlobalTimerNotExpired("castspell","LOCALS") !StateCheck(Myself,STATE_INVISIBLE) Allegiance(Myself,ENEMY) !Allegiance(SecondNearestEnemyOf(Myself),ENEMY) !StateCheck(SecondNearestEnemyOf(Myself),STATE_IMMOBILE) !StateCheck(SecondNearestEnemyOf(Myself),STATE_FEEBLEMINDED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) CanEquipRanged() Range(SecondNearestEnemyOf(Myself),6) !GlobalTimerNotExpired("runonce","LOCALS") THEN RESPONSE #100 SetGlobalTimer("stayontarget","LOCALS",TWO_ROUNDS) SetGlobal("validtarget","LOCALS",0) SetInterrupt(FALSE) RunAwayFromNoLeaveArea(NearestEnemyOf(Myself),60) SetInterrupt(TRUE) SetGlobalTimer("runonce","LOCALS",THREE_ROUNDS) END IF See(ThirdNearestEnemyOf(Myself)) Global("inafight","LOCALS",1) !GlobalTimerNotExpired("castspell","LOCALS") !StateCheck(Myself,STATE_INVISIBLE) Allegiance(Myself,ENEMY) !Allegiance(ThirdNearestEnemyOf(Myself),ENEMY) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_IMMOBILE) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_FEEBLEMINDED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) CanEquipRanged() Range(ThirdNearestEnemyOf(Myself),6) !GlobalTimerNotExpired("runonce","LOCALS") THEN RESPONSE #100 SetGlobalTimer("stayontarget","LOCALS",TWO_ROUNDS) SetGlobal("validtarget","LOCALS",0) SetInterrupt(FALSE) RunAwayFromNoLeaveArea(NearestEnemyOf(Myself),60) SetInterrupt(TRUE) SetGlobalTimer("runonce","LOCALS",THREE_ROUNDS) END IF See(NearestEnemyOf(Myself)) Global("inafight","LOCALS",1) !GlobalTimerNotExpired("castspell","LOCALS") !StateCheck(Myself,STATE_INVISIBLE) Allegiance(Myself,ENEMY) !Allegiance(NearestEnemyOf(Myself),ENEMY) !StateCheck(NearestEnemyOf(Myself),STATE_IMMOBILE) !StateCheck(NearestEnemyOf(Myself),STATE_FEEBLEMINDED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) CanEquipRanged() Range(NearestEnemyOf(Myself),6) GlobalTimerNotExpired("runonce","LOCALS") !Global("melee","LOCALS",1) THEN RESPONSE #100 SetGlobalTimer("stayontarget","LOCALS",TWO_ROUNDS) SetGlobal("validtarget","LOCALS",0) SetGlobal("melee","LOCALS",1) ClearActions(Myself) END IF See(SecondNearestEnemyOf(Myself)) Global("inafight","LOCALS",1) !GlobalTimerNotExpired("castspell","LOCALS") !StateCheck(Myself,STATE_INVISIBLE) Allegiance(Myself,ENEMY) !Allegiance(SecondNearestEnemyOf(Myself),ENEMY) !StateCheck(SecondNearestEnemyOf(Myself),STATE_IMMOBILE) !StateCheck(SecondNearestEnemyOf(Myself),STATE_FEEBLEMINDED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) CanEquipRanged() Range(SecondNearestEnemyOf(Myself),6) GlobalTimerNotExpired("runonce","LOCALS") !Global("melee","LOCALS",1) THEN RESPONSE #100 SetGlobalTimer("stayontarget","LOCALS",TWO_ROUNDS) SetGlobal("validtarget","LOCALS",0) SetGlobal("melee","LOCALS",1) ClearActions(Myself) END IF See(ThirdNearestEnemyOf(Myself)) Global("inafight","LOCALS",1) !GlobalTimerNotExpired("castspell","LOCALS") !StateCheck(Myself,STATE_INVISIBLE) Allegiance(Myself,ENEMY) !Allegiance(ThirdNearestEnemyOf(Myself),ENEMY) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_IMMOBILE) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_FEEBLEMINDED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) CanEquipRanged() Range(ThirdNearestEnemyOf(Myself),6) GlobalTimerNotExpired("runonce","LOCALS") !Global("melee","LOCALS",1) THEN RESPONSE #100 SetGlobalTimer("stayontarget","LOCALS",TWO_ROUNDS) SetGlobal("validtarget","LOCALS",0) SetGlobal("melee","LOCALS",1) ClearActions(Myself) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn17",Myself) // Elixir of Health !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) StateCheck(Myself,STATE_POISONED) !General(Myself,UNDEAD) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173506) // Quaffs elixir of health UseItem("dw#ptn17",Myself) // Elixir of Health END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn17",Myself) // Elixir of Health !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) StateCheck(Myself,STATE_POISONED) !General(Myself,UNDEAD) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173506) // Quaffs elixir of health UseItem("potn17",Myself) // Elixir of Health END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn20",Myself) // Potion of Antidote !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) StateCheck(Myself,STATE_POISONED) !General(Myself,UNDEAD) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173506) // Quaffs elixir of health UseItem("dw#ptn20",Myself) // Potion of Antidote END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn20",Myself) // Potion of Antidote !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) StateCheck(Myself,STATE_POISONED) !General(Myself,UNDEAD) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173507) // Takes antidote UseItem("potn20",Myself) // Potion of Antidote END IF !GlobalTimerNotExpired("castspell","LOCALS") HaveSpell(MONK_LAY_ON_HANDS) // SPCL815.SPL (Lay On Hands) CheckStatLT(Myself,60,SPELLFAILUREMAGE) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) HPPercentLT(Myself,50) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) Spell(Myself,MONK_LAY_ON_HANDS) // SPCL815.SPL (Lay On Hands) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn55",Myself) // Potion of Superior Healing !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) HPPercentLT(Myself,50) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173508) // Quaffs superior healing potion UseItem("dw#ptn55",Myself) // Potion of Superior Healing END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn55",Myself) // Potion of Superior Healing !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) HPPercentLT(Myself,50) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173508) // Quaffs superior healing potion UseItem("potn55",Myself) // Potion of Superior Healing END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn52",Myself) // Potion of Extra Healing !General(Myself,UNDEAD) !GlobalGT("Chapter","GLOBAL",7) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) HPPercentLT(Myself,50) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173509) // Quaffs extra-healing potion UseItem("dw#ptn52",Myself) // Potion of Extra Healing END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn52",Myself) // Potion of Extra Healing !General(Myself,UNDEAD) !GlobalGT("Chapter","GLOBAL",7) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) HPPercentLT(Myself,50) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173509) // Quaffs extra-healing potion UseItem("potn52",Myself) // Potion of Extra Healing END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn14",Myself) // Potion of Speed !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) !StateCheck(Myself,STATE_HASTED) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173510) // Applies oil of speed UseItem("dw#ptn14",Myself) // Potion of Speed END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn14",Myself) // Potion of Speed !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) !StateCheck(Myself,STATE_HASTED) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173510) // Applies oil of speed UseItem("potn14",Myself) // Potion of Speed END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn07",Myself) // Potion of Storm Giant Strength !General(Myself,UNDEAD) CheckStatLT(Myself,24,STR) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) Range(NearestEnemyOf(Myself),5) OR(3) Class(Myself,FIGHTER_ALL) Class(Myself,RANGER_ALL) Class(Myself,PALADIN_ALL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173511) // Quaffs potion of storm giant strength UseItem("dw#ptn07",Myself) // Potion of Storm Giant Strength END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn07",Myself) // Potion of Storm Giant Strength !General(Myself,UNDEAD) CheckStatLT(Myself,24,STR) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) Range(NearestEnemyOf(Myself),5) OR(3) Class(Myself,FIGHTER_ALL) Class(Myself,RANGER_ALL) Class(Myself,PALADIN_ALL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173511) // Quaffs potion of storm giant strength UseItem("potn07",Myself) // Potion of Storm Giant Strength END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn06",Myself) // Potion of Cloud Giant Strength !General(Myself,UNDEAD) CheckStatLT(Myself,23,STR) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) Range(NearestEnemyOf(Myself),5) OR(3) Class(Myself,FIGHTER_ALL) Class(Myself,RANGER_ALL) Class(Myself,PALADIN_ALL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173512) // Quaffs potion of cloud giant strength UseItem("dw#ptn06",Myself) // Potion of Cloud Giant Strength END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn06",Myself) // Potion of Cloud Giant Strength !General(Myself,UNDEAD) CheckStatLT(Myself,23,STR) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) Range(NearestEnemyOf(Myself),5) OR(3) Class(Myself,FIGHTER_ALL) Class(Myself,RANGER_ALL) Class(Myself,PALADIN_ALL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173512) // Quaffs potion of cloud giant strength UseItem("potn06",Myself) // Potion of Cloud Giant Strength END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn05",Myself) // Potion of Fire Giant Strength !General(Myself,UNDEAD) CheckStatLT(Myself,22,STR) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) Range(NearestEnemyOf(Myself),5) OR(3) Class(Myself,FIGHTER_ALL) Class(Myself,RANGER_ALL) Class(Myself,PALADIN_ALL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173513) // Quaffs potion of fire giant strength UseItem("dw#ptn05",Myself) // Potion of Fire Giant Strength END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn05",Myself) // Potion of Fire Giant Strength !General(Myself,UNDEAD) CheckStatLT(Myself,22,STR) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) Range(NearestEnemyOf(Myself),5) OR(3) Class(Myself,FIGHTER_ALL) Class(Myself,RANGER_ALL) Class(Myself,PALADIN_ALL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173513) // Quaffs potion of fire giant strength UseItem("potn05",Myself) // Potion of Fire Giant Strength END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn04",Myself) // Potion of Frost Giant Strength !General(Myself,UNDEAD) CheckStatLT(Myself,21,STR) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) Range(NearestEnemyOf(Myself),5) OR(3) Class(Myself,FIGHTER_ALL) Class(Myself,RANGER_ALL) Class(Myself,PALADIN_ALL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173514) // Quaffs potion of frost giant strength UseItem("dw#ptn04",Myself) // Potion of Frost Giant Strength END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn04",Myself) // Potion of Frost Giant Strength !General(Myself,UNDEAD) CheckStatLT(Myself,21,STR) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) Range(NearestEnemyOf(Myself),5) OR(3) Class(Myself,FIGHTER_ALL) Class(Myself,RANGER_ALL) Class(Myself,PALADIN_ALL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173514) // Quaffs potion of frost giant strength UseItem("potn04",Myself) // Potion of Frost Giant Strength END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn12",Myself) // Potion of Stone Giant Strength !General(Myself,UNDEAD) CheckStatLT(Myself,20,STR) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) Range(NearestEnemyOf(Myself),5) OR(3) Class(Myself,FIGHTER_ALL) Class(Myself,RANGER_ALL) Class(Myself,PALADIN_ALL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173515) // Quaffs potion of stone giant strength UseItem("dw#ptn12",Myself) // Potion of Stone Giant Strength END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn12",Myself) // Potion of Stone Giant Strength !General(Myself,UNDEAD) CheckStatLT(Myself,20,STR) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) Range(NearestEnemyOf(Myself),5) OR(3) Class(Myself,FIGHTER_ALL) Class(Myself,RANGER_ALL) Class(Myself,PALADIN_ALL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173515) // Quaffs potion of stone giant strength UseItem("potn12",Myself) // Potion of Stone Giant Strength END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn03",Myself) // Potion of Hill Giant Strength !General(Myself,UNDEAD) CheckStatLT(Myself,19,STR) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) Range(NearestEnemyOf(Myself),5) OR(3) Class(Myself,FIGHTER_ALL) Class(Myself,RANGER_ALL) Class(Myself,PALADIN_ALL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173516) // Quaffs potion of hill giant strength UseItem("dw#ptn03",Myself) // Potion of Hill Giant Strength END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn03",Myself) // Potion of Hill Giant Strength !General(Myself,UNDEAD) CheckStatLT(Myself,19,STR) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) Range(NearestEnemyOf(Myself),5) OR(3) Class(Myself,FIGHTER_ALL) Class(Myself,RANGER_ALL) Class(Myself,PALADIN_ALL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173516) // Quaffs potion of hill giant strength UseItem("potn03",Myself) // Potion of Hill Giant Strength END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn34",Myself) // Potion of Magic Blocking !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) !Global("takendefence","LOCALS",1) CheckStatGT(Myself,13,LEVEL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173517) // Quaffs potion of magic protection UseItem("dw#ptn34",Myself) // Potion of Magic Blocking SetGlobal("takendefence","LOCALS",1) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn35",Myself) // Potion of Resilience !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) !Global("takendefence","LOCALS",1) CheckStatGT(Myself,13,LEVEL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173518) // Quaffs potion of magic shielding UseItem("dw#ptn35",Myself) // Potion of Resilience SetGlobal("takendefence","LOCALS",1) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn21",Myself) // Potion of Clarity !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) !Global("takendefence","LOCALS",1) CheckStatGT(Myself,13,LEVEL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173519) // Quaffs potion of clarity UseItem("dw#ptn21",Myself) // Potion of Clarity SetGlobal("takendefence","LOCALS",1) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn45",Myself) // Potion of Freedom !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) !Global("takendefence","LOCALS",1) CheckStatGT(Myself,13,LEVEL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173520) // Quaffs potion of freedom UseItem("dw#ptn45",Myself) // Potion of Freedom SetGlobal("takendefence","LOCALS",1) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn34",Myself) // Potion of Magic Blocking !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) !Global("takendefence","LOCALS",1) CheckStatGT(Myself,13,LEVEL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173517) // Quaffs potion of magic protection UseItem("potn34",Myself) // Potion of Magic Blocking SetGlobal("takendefence","LOCALS",1) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn35",Myself) // Potion of Resilience !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) !Global("takendefence","LOCALS",1) CheckStatGT(Myself,13,LEVEL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173518) // Quaffs potion of magic shielding UseItem("potn35",Myself) // Potion of Resilience SetGlobal("takendefence","LOCALS",1) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn21",Myself) // Potion of Clarity !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) !Global("takendefence","LOCALS",1) CheckStatGT(Myself,13,LEVEL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173519) // Quaffs potion of clarity UseItem("potn21",Myself) // Potion of Clarity SetGlobal("takendefence","LOCALS",1) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn45",Myself) // Potion of Freedom !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) !Global("takendefence","LOCALS",1) CheckStatGT(Myself,13,LEVEL) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173520) // Quaffs potion of freedom UseItem("potn45",Myself) // Potion of Freedom SetGlobal("takendefence","LOCALS",1) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn41",Myself) // Potion of Power !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) Global("heroptn","LOCALS",0) Range(NearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173521) // Quaffs potion of power UseItem("dw#ptn41",Myself) // Potion of Power SetGlobal("heroptn","LOCALS",1) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn41",Myself) // Potion of Power !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) Global("heroptn","LOCALS",0) Range(NearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173521) // Quaffs potion of power UseItem("potn41",Myself) // Potion of Power SetGlobal("heroptn","LOCALS",1) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn09",Myself) // Potion of Heroism !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) Global("heroptn","LOCALS",0) Range(NearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173522) // Quaffs potion of heroism UseItem("dw#ptn09",Myself) // Potion of Heroism SetGlobal("heroptn","LOCALS",1) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn09",Myself) // Potion of Heroism !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) Global("heroptn","LOCALS",0) Range(NearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173522) // Quaffs potion of heroism UseItem("potn09",Myself) // Potion of Heroism SetGlobal("heroptn","LOCALS",1) END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn24",Myself) // Potion of Defense !General(Myself,UNDEAD) CheckStatGT(Myself,0,ARMORCLASS) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173523) // Quaffs potion of defense UseItem("dw#ptn24",Myself) // Potion of Defense END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn24",Myself) // Potion of Defense !General(Myself,UNDEAD) CheckStatGT(Myself,0,ARMORCLASS) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173523) // Quaffs potion of defense UseItem("potn24",Myself) // Potion of Defense END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn28",Myself) // Potion of Fortitude !General(Myself,UNDEAD) CheckStatLT(Myself,15,CON) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173524) // Quaffs potion of fortitude UseItem("dw#ptn28",Myself) // Potion of Fortitude END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn28",Myself) // Potion of Fortitude !General(Myself,UNDEAD) CheckStatLT(Myself,15,CON) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173524) // Quaffs potion of fortitude UseItem("potn28",Myself) // Potion of Fortitude END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn42",Myself) // Potion of Regeneration !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173525) // Quaffs potion of regeneration UseItem("dw#ptn42",Myself) // Potion of Regeneration END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn42",Myself) // Potion of Regeneration !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_INVISIBLE) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173525) // Quaffs potion of regeneration UseItem("potn42",Myself) // Potion of Regeneration END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("dw#ptn08",Myself) // Potion of Healing !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) !General(Myself,UNDEAD) HPPercentLT(Myself,75) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173526) // Quaffs healing potion UseItem("dw#ptn08",Myself) // Potion of Healing END IF !GlobalTimerNotExpired("castspell","LOCALS") HasItem("potn08",Myself) // Potion of Healing !General(Myself,UNDEAD) OR(2) Global("DMWW_genai_difficulty","GLOBAL",0) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) OR(2) DifficultyGT(EASY) GlobalGT("DMWW_genai_difficulty","GLOBAL",2) !General(Myself,UNDEAD) HPPercentLT(Myself,75) THEN RESPONSE #100 SetGlobalTimer("castspell","LOCALS",ONE_ROUND) DisplayStringHead(Myself,173526) // Quaffs healing potion UseItem("potn08",Myself) // Potion of Healing END IF Global("DMWWtestgenai","GLOBAL",1) THEN RESPONSE #100 NoAction() END IF Global("inafight","LOCALS",1) Global("RR#NOPND","GLOBAL",0) !AreaType(OUTDOOR) !Range(NearestEnemyOf(Myself),30) Range(NearestDoor,15) OpenState(NearestDoor,FALSE) THEN RESPONSE #100 MoveToObject(NearestDoor) OpenDoor(NearestDoor) END IF !Global("chasing","LOCALS",0) See(NearestEnemyOf(Myself)) THEN RESPONSE #100 SetGlobal("chasing","LOCALS",0) Continue() END IF ActionListEmpty() Global("inafight","LOCALS",1) Allegiance(Myself,ENEMY) !See(NearestEnemyOf(Myself)) Global("chasing","LOCALS",0) !Global("chasePC","LOCALS",0) THEN RESPONSE #100 SetGlobalTimer("chasetimer","LOCALS",8) SetGlobal("chasing","LOCALS",1) END IF !See(NearestEnemyOf(Myself)) GlobalTimerExpired("chasetimer","LOCALS") !Global("inafight","LOCALS",0) !Global("chasePC","LOCALS",0) THEN RESPONSE #100 SetGlobal("inafight","LOCALS",0) SetGlobal("chasePC","LOCALS",0) END IF !See(NearestEnemyOf(Myself)) !Detect(Player1) !StateCheck(Player1,STATE_INVISIBLE) !CheckStatGT(Player1,0,SANCTUARY) ActionListEmpty() GlobalTimerNotExpired("chasetimer","LOCALS") Global("chasePC","LOCALS",1) THEN RESPONSE #100 MoveToObject(Player1) END IF !See(NearestEnemyOf(Myself)) !Detect(Player2) !StateCheck(Player2,STATE_INVISIBLE) !CheckStatGT(Player2,0,SANCTUARY) ActionListEmpty() GlobalTimerNotExpired("chasetimer","LOCALS") Global("chasePC","LOCALS",2) THEN RESPONSE #100 MoveToObject(Player2) END IF !See(NearestEnemyOf(Myself)) !Detect(Player3) !StateCheck(Player3,STATE_INVISIBLE) !CheckStatGT(Player3,0,SANCTUARY) ActionListEmpty() GlobalTimerNotExpired("chasetimer","LOCALS") Global("chasePC","LOCALS",3) THEN RESPONSE #100 MoveToObject(Player3) END IF !See(NearestEnemyOf(Myself)) !Detect(Player4) !StateCheck(Player4,STATE_INVISIBLE) !CheckStatGT(Player4,0,SANCTUARY) ActionListEmpty() GlobalTimerNotExpired("chasetimer","LOCALS") Global("chasePC","LOCALS",4) THEN RESPONSE #100 MoveToObject(Player4) END IF !See(NearestEnemyOf(Myself)) !Detect(Player5) !StateCheck(Player5,STATE_INVISIBLE) !CheckStatGT(Player5,0,SANCTUARY) ActionListEmpty() GlobalTimerNotExpired("chasetimer","LOCALS") Global("chasePC","LOCALS",5) THEN RESPONSE #100 MoveToObject(Player5) END IF !See(NearestEnemyOf(Myself)) !Detect(Player6) !StateCheck(Player6,STATE_INVISIBLE) !CheckStatGT(Player6,0,SANCTUARY) ActionListEmpty() GlobalTimerNotExpired("chasetimer","LOCALS") Global("chasePC","LOCALS",6) THEN RESPONSE #100 MoveToObject(Player6) END IF See(LastTargetedBy(Myself)) Global("validtarget","LOCALS",1) OR(2) !WeaponEffectiveVs(LastTargetedBy(Myself),MAINHAND) !WeaponCanDamage(LastTargetedBy(Myself),MAINHAND) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",0) ClearActions(Myself) END IF !StateCheck([PC.0.0.MAGE],STATE_INVISIBLE) See([PC.0.0.MAGE]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.MAGE],ENEMY) !StateCheck([PC.0.0.MAGE],STATE_IMMOBILE) !StateCheck([PC.0.0.MAGE],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.MAGE],0,HELD) !StateCheck([PC.0.0.MAGE],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.MAGE],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.MAGE],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.MAGE],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.MAGE],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.MAGE],0,STONESKINS) !HPPercentGT([PC.0.0.MAGE],20) Range([PC.0.0.MAGE],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.MAGE]) END IF !StateCheck([PC.0.0.MAGE_THIEF],STATE_INVISIBLE) See([PC.0.0.MAGE_THIEF]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.MAGE_THIEF],ENEMY) !StateCheck([PC.0.0.MAGE_THIEF],STATE_IMMOBILE) !StateCheck([PC.0.0.MAGE_THIEF],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.MAGE_THIEF],0,HELD) !StateCheck([PC.0.0.MAGE_THIEF],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.MAGE_THIEF],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.MAGE_THIEF],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.MAGE_THIEF],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.MAGE_THIEF],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.MAGE_THIEF],0,STONESKINS) !HPPercentGT([PC.0.0.MAGE_THIEF],20) Range([PC.0.0.MAGE_THIEF],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.MAGE_THIEF]) END IF !StateCheck([PC.0.0.MAGE_ALL],STATE_INVISIBLE) See([PC.0.0.MAGE_ALL]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.MAGE_ALL],ENEMY) !StateCheck([PC.0.0.MAGE_ALL],STATE_IMMOBILE) !StateCheck([PC.0.0.MAGE_ALL],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.MAGE_ALL],0,HELD) !StateCheck([PC.0.0.MAGE_ALL],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.MAGE_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.MAGE_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.MAGE_ALL],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.MAGE_ALL],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.MAGE_ALL],0,STONESKINS) !HPPercentGT([PC.0.0.MAGE_ALL],20) Range([PC.0.0.MAGE_ALL],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.MAGE_ALL]) END IF !StateCheck([PC.0.0.THIEF],STATE_INVISIBLE) See([PC.0.0.THIEF]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.THIEF],ENEMY) !StateCheck([PC.0.0.THIEF],STATE_IMMOBILE) !StateCheck([PC.0.0.THIEF],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.THIEF],0,HELD) !StateCheck([PC.0.0.THIEF],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.THIEF],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.THIEF],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.THIEF],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.THIEF],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.THIEF],0,STONESKINS) !HPPercentGT([PC.0.0.THIEF],20) Range([PC.0.0.THIEF],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.THIEF]) END IF !StateCheck([PC.0.0.BARD],STATE_INVISIBLE) See([PC.0.0.BARD]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.BARD],ENEMY) !StateCheck([PC.0.0.BARD],STATE_IMMOBILE) !StateCheck([PC.0.0.BARD],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.BARD],0,HELD) !StateCheck([PC.0.0.BARD],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.BARD],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.BARD],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.BARD],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.BARD],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.BARD],0,STONESKINS) !HPPercentGT([PC.0.0.BARD],20) Range([PC.0.0.BARD],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.BARD]) END IF !StateCheck([PC.0.0.THIEF_ALL],STATE_INVISIBLE) See([PC.0.0.THIEF_ALL]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.THIEF_ALL],ENEMY) !StateCheck([PC.0.0.THIEF_ALL],STATE_IMMOBILE) !StateCheck([PC.0.0.THIEF_ALL],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.THIEF_ALL],0,HELD) !StateCheck([PC.0.0.THIEF_ALL],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.THIEF_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.THIEF_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.THIEF_ALL],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.THIEF_ALL],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.THIEF_ALL],0,STONESKINS) !HPPercentGT([PC.0.0.THIEF_ALL],20) Range([PC.0.0.THIEF_ALL],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.THIEF_ALL]) END IF !StateCheck([PC.0.0.CLERIC],STATE_INVISIBLE) See([PC.0.0.CLERIC]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.CLERIC],ENEMY) !StateCheck([PC.0.0.CLERIC],STATE_IMMOBILE) !StateCheck([PC.0.0.CLERIC],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.CLERIC],0,HELD) !StateCheck([PC.0.0.CLERIC],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.CLERIC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.CLERIC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.CLERIC],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.CLERIC],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.CLERIC],0,STONESKINS) !HPPercentGT([PC.0.0.CLERIC],20) Range([PC.0.0.CLERIC],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.CLERIC]) END IF !StateCheck([PC],STATE_INVISIBLE) See([PC]) Allegiance(Myself,ENEMY) !Allegiance([PC],ENEMY) !StateCheck([PC],STATE_IMMOBILE) !StateCheck([PC],STATE_FEEBLEMINDED) !CheckStatGT([PC],0,HELD) !StateCheck([PC],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC],100,RESISTCRUSHING) OR(2) CheckStatLT([PC],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC],0,STONESKINS) !HPPercentGT([PC],20) Range([PC],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC]) END IF !StateCheck(SecondNearest([PC]),STATE_INVISIBLE) See(SecondNearest([PC])) Allegiance(Myself,ENEMY) !Allegiance(SecondNearest([PC]),ENEMY) !StateCheck(SecondNearest([PC]),STATE_IMMOBILE) !StateCheck(SecondNearest([PC]),STATE_FEEBLEMINDED) !CheckStatGT(SecondNearest([PC]),0,HELD) !StateCheck(SecondNearest([PC]),STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs(SecondNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(SecondNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(SecondNearest([PC]),100,RESISTCRUSHING) OR(2) CheckStatLT(SecondNearest([PC]),75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT(SecondNearest([PC]),0,STONESKINS) !HPPercentGT(SecondNearest([PC]),20) Range(SecondNearest([PC]),4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound(SecondNearest([PC])) END IF !StateCheck(ThirdNearest([PC]),STATE_INVISIBLE) See(ThirdNearest([PC])) Allegiance(Myself,ENEMY) !Allegiance(ThirdNearest([PC]),ENEMY) !StateCheck(ThirdNearest([PC]),STATE_IMMOBILE) !StateCheck(ThirdNearest([PC]),STATE_FEEBLEMINDED) !CheckStatGT(ThirdNearest([PC]),0,HELD) !StateCheck(ThirdNearest([PC]),STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs(ThirdNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(ThirdNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(ThirdNearest([PC]),100,RESISTCRUSHING) OR(2) CheckStatLT(ThirdNearest([PC]),75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT(ThirdNearest([PC]),0,STONESKINS) !HPPercentGT(ThirdNearest([PC]),20) Range(ThirdNearest([PC]),4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound(ThirdNearest([PC])) END IF !StateCheck([PC.0.0.MAGE],STATE_INVISIBLE) See([PC.0.0.MAGE]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.MAGE],ENEMY) !StateCheck([PC.0.0.MAGE],STATE_IMMOBILE) !StateCheck([PC.0.0.MAGE],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.MAGE],0,HELD) !StateCheck([PC.0.0.MAGE],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.MAGE],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.MAGE],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.MAGE],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.MAGE],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.MAGE],0,STONESKINS) !HPPercentGT([PC.0.0.MAGE],50) Range([PC.0.0.MAGE],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.MAGE]) END IF !StateCheck([PC.0.0.MAGE_THIEF],STATE_INVISIBLE) See([PC.0.0.MAGE_THIEF]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.MAGE_THIEF],ENEMY) !StateCheck([PC.0.0.MAGE_THIEF],STATE_IMMOBILE) !StateCheck([PC.0.0.MAGE_THIEF],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.MAGE_THIEF],0,HELD) !StateCheck([PC.0.0.MAGE_THIEF],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.MAGE_THIEF],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.MAGE_THIEF],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.MAGE_THIEF],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.MAGE_THIEF],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.MAGE_THIEF],0,STONESKINS) !HPPercentGT([PC.0.0.MAGE_THIEF],50) Range([PC.0.0.MAGE_THIEF],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.MAGE_THIEF]) END IF !StateCheck([PC.0.0.MAGE_ALL],STATE_INVISIBLE) See([PC.0.0.MAGE_ALL]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.MAGE_ALL],ENEMY) !StateCheck([PC.0.0.MAGE_ALL],STATE_IMMOBILE) !StateCheck([PC.0.0.MAGE_ALL],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.MAGE_ALL],0,HELD) !StateCheck([PC.0.0.MAGE_ALL],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.MAGE_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.MAGE_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.MAGE_ALL],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.MAGE_ALL],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.MAGE_ALL],0,STONESKINS) !HPPercentGT([PC.0.0.MAGE_ALL],50) Range([PC.0.0.MAGE_ALL],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.MAGE_ALL]) END IF !StateCheck([PC.0.0.THIEF],STATE_INVISIBLE) See([PC.0.0.THIEF]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.THIEF],ENEMY) !StateCheck([PC.0.0.THIEF],STATE_IMMOBILE) !StateCheck([PC.0.0.THIEF],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.THIEF],0,HELD) !StateCheck([PC.0.0.THIEF],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.THIEF],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.THIEF],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.THIEF],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.THIEF],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.THIEF],0,STONESKINS) !HPPercentGT([PC.0.0.THIEF],50) Range([PC.0.0.THIEF],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.THIEF]) END IF !StateCheck([PC.0.0.BARD],STATE_INVISIBLE) See([PC.0.0.BARD]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.BARD],ENEMY) !StateCheck([PC.0.0.BARD],STATE_IMMOBILE) !StateCheck([PC.0.0.BARD],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.BARD],0,HELD) !StateCheck([PC.0.0.BARD],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.BARD],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.BARD],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.BARD],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.BARD],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.BARD],0,STONESKINS) !HPPercentGT([PC.0.0.BARD],50) Range([PC.0.0.BARD],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.BARD]) END IF !StateCheck([PC.0.0.THIEF_ALL],STATE_INVISIBLE) See([PC.0.0.THIEF_ALL]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.THIEF_ALL],ENEMY) !StateCheck([PC.0.0.THIEF_ALL],STATE_IMMOBILE) !StateCheck([PC.0.0.THIEF_ALL],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.THIEF_ALL],0,HELD) !StateCheck([PC.0.0.THIEF_ALL],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.THIEF_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.THIEF_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.THIEF_ALL],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.THIEF_ALL],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.THIEF_ALL],0,STONESKINS) !HPPercentGT([PC.0.0.THIEF_ALL],50) Range([PC.0.0.THIEF_ALL],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.THIEF_ALL]) END IF !StateCheck([PC.0.0.CLERIC],STATE_INVISIBLE) See([PC.0.0.CLERIC]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.CLERIC],ENEMY) !StateCheck([PC.0.0.CLERIC],STATE_IMMOBILE) !StateCheck([PC.0.0.CLERIC],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.CLERIC],0,HELD) !StateCheck([PC.0.0.CLERIC],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.CLERIC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.CLERIC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.CLERIC],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.CLERIC],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.CLERIC],0,STONESKINS) !HPPercentGT([PC.0.0.CLERIC],50) Range([PC.0.0.CLERIC],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.CLERIC]) END IF !StateCheck([PC],STATE_INVISIBLE) See([PC]) Allegiance(Myself,ENEMY) !Allegiance([PC],ENEMY) !StateCheck([PC],STATE_IMMOBILE) !StateCheck([PC],STATE_FEEBLEMINDED) !CheckStatGT([PC],0,HELD) !StateCheck([PC],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC],100,RESISTCRUSHING) OR(2) CheckStatLT([PC],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC],0,STONESKINS) !HPPercentGT([PC],50) Range([PC],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC]) END IF !StateCheck(SecondNearest([PC]),STATE_INVISIBLE) See(SecondNearest([PC])) Allegiance(Myself,ENEMY) !Allegiance(SecondNearest([PC]),ENEMY) !StateCheck(SecondNearest([PC]),STATE_IMMOBILE) !StateCheck(SecondNearest([PC]),STATE_FEEBLEMINDED) !CheckStatGT(SecondNearest([PC]),0,HELD) !StateCheck(SecondNearest([PC]),STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs(SecondNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(SecondNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(SecondNearest([PC]),100,RESISTCRUSHING) OR(2) CheckStatLT(SecondNearest([PC]),75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT(SecondNearest([PC]),0,STONESKINS) !HPPercentGT(SecondNearest([PC]),50) Range(SecondNearest([PC]),4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound(SecondNearest([PC])) END IF !StateCheck(ThirdNearest([PC]),STATE_INVISIBLE) See(ThirdNearest([PC])) Allegiance(Myself,ENEMY) !Allegiance(ThirdNearest([PC]),ENEMY) !StateCheck(ThirdNearest([PC]),STATE_IMMOBILE) !StateCheck(ThirdNearest([PC]),STATE_FEEBLEMINDED) !CheckStatGT(ThirdNearest([PC]),0,HELD) !StateCheck(ThirdNearest([PC]),STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs(ThirdNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(ThirdNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(ThirdNearest([PC]),100,RESISTCRUSHING) OR(2) CheckStatLT(ThirdNearest([PC]),75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT(ThirdNearest([PC]),0,STONESKINS) !HPPercentGT(ThirdNearest([PC]),50) Range(ThirdNearest([PC]),4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound(ThirdNearest([PC])) END IF !StateCheck([PC.0.0.MAGE],STATE_INVISIBLE) See([PC.0.0.MAGE]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.MAGE],ENEMY) !StateCheck([PC.0.0.MAGE],STATE_IMMOBILE) !StateCheck([PC.0.0.MAGE],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.MAGE],0,HELD) !StateCheck([PC.0.0.MAGE],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.MAGE],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.MAGE],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.MAGE],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.MAGE],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.MAGE],0,STONESKINS) Range([PC.0.0.MAGE],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.MAGE]) END IF !StateCheck([PC.0.0.MAGE_THIEF],STATE_INVISIBLE) See([PC.0.0.MAGE_THIEF]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.MAGE_THIEF],ENEMY) !StateCheck([PC.0.0.MAGE_THIEF],STATE_IMMOBILE) !StateCheck([PC.0.0.MAGE_THIEF],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.MAGE_THIEF],0,HELD) !StateCheck([PC.0.0.MAGE_THIEF],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.MAGE_THIEF],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.MAGE_THIEF],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.MAGE_THIEF],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.MAGE_THIEF],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.MAGE_THIEF],0,STONESKINS) Range([PC.0.0.MAGE_THIEF],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.MAGE_THIEF]) END IF !StateCheck([PC.0.0.MAGE_ALL],STATE_INVISIBLE) See([PC.0.0.MAGE_ALL]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.MAGE_ALL],ENEMY) !StateCheck([PC.0.0.MAGE_ALL],STATE_IMMOBILE) !StateCheck([PC.0.0.MAGE_ALL],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.MAGE_ALL],0,HELD) !StateCheck([PC.0.0.MAGE_ALL],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.MAGE_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.MAGE_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.MAGE_ALL],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.MAGE_ALL],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.MAGE_ALL],0,STONESKINS) Range([PC.0.0.MAGE_ALL],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.MAGE_ALL]) END IF !StateCheck([PC.0.0.THIEF],STATE_INVISIBLE) See([PC.0.0.THIEF]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.THIEF],ENEMY) !StateCheck([PC.0.0.THIEF],STATE_IMMOBILE) !StateCheck([PC.0.0.THIEF],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.THIEF],0,HELD) !StateCheck([PC.0.0.THIEF],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.THIEF],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.THIEF],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.THIEF],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.THIEF],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.THIEF],0,STONESKINS) Range([PC.0.0.THIEF],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.THIEF]) END IF !StateCheck([PC.0.0.BARD],STATE_INVISIBLE) See([PC.0.0.BARD]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.BARD],ENEMY) !StateCheck([PC.0.0.BARD],STATE_IMMOBILE) !StateCheck([PC.0.0.BARD],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.BARD],0,HELD) !StateCheck([PC.0.0.BARD],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.BARD],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.BARD],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.BARD],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.BARD],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.BARD],0,STONESKINS) Range([PC.0.0.BARD],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.BARD]) END IF !StateCheck([PC.0.0.THIEF_ALL],STATE_INVISIBLE) See([PC.0.0.THIEF_ALL]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.THIEF_ALL],ENEMY) !StateCheck([PC.0.0.THIEF_ALL],STATE_IMMOBILE) !StateCheck([PC.0.0.THIEF_ALL],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.THIEF_ALL],0,HELD) !StateCheck([PC.0.0.THIEF_ALL],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.THIEF_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.THIEF_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.THIEF_ALL],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.THIEF_ALL],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.THIEF_ALL],0,STONESKINS) Range([PC.0.0.THIEF_ALL],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.THIEF_ALL]) END IF !StateCheck([PC.0.0.CLERIC],STATE_INVISIBLE) See([PC.0.0.CLERIC]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.CLERIC],ENEMY) !StateCheck([PC.0.0.CLERIC],STATE_IMMOBILE) !StateCheck([PC.0.0.CLERIC],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.CLERIC],0,HELD) !StateCheck([PC.0.0.CLERIC],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC.0.0.CLERIC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.CLERIC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.CLERIC],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.CLERIC],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC.0.0.CLERIC],0,STONESKINS) Range([PC.0.0.CLERIC],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.CLERIC]) END IF !StateCheck([PC],STATE_INVISIBLE) See([PC]) Allegiance(Myself,ENEMY) !Allegiance([PC],ENEMY) !StateCheck([PC],STATE_IMMOBILE) !StateCheck([PC],STATE_FEEBLEMINDED) !CheckStatGT([PC],0,HELD) !StateCheck([PC],STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs([PC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC],100,RESISTCRUSHING) OR(2) CheckStatLT([PC],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT([PC],0,STONESKINS) Range([PC],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC]) END IF !StateCheck(SecondNearest([PC]),STATE_INVISIBLE) See(SecondNearest([PC])) Allegiance(Myself,ENEMY) !Allegiance(SecondNearest([PC]),ENEMY) !StateCheck(SecondNearest([PC]),STATE_IMMOBILE) !StateCheck(SecondNearest([PC]),STATE_FEEBLEMINDED) !CheckStatGT(SecondNearest([PC]),0,HELD) !StateCheck(SecondNearest([PC]),STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs(SecondNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(SecondNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(SecondNearest([PC]),100,RESISTCRUSHING) OR(2) CheckStatLT(SecondNearest([PC]),75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT(SecondNearest([PC]),0,STONESKINS) Range(SecondNearest([PC]),4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound(SecondNearest([PC])) END IF !StateCheck(ThirdNearest([PC]),STATE_INVISIBLE) See(ThirdNearest([PC])) Allegiance(Myself,ENEMY) !Allegiance(ThirdNearest([PC]),ENEMY) !StateCheck(ThirdNearest([PC]),STATE_IMMOBILE) !StateCheck(ThirdNearest([PC]),STATE_FEEBLEMINDED) !CheckStatGT(ThirdNearest([PC]),0,HELD) !StateCheck(ThirdNearest([PC]),STATE_MIRRORIMAGE) OR(2) WeaponEffectiveVs(ThirdNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(ThirdNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(ThirdNearest([PC]),100,RESISTCRUSHING) OR(2) CheckStatLT(ThirdNearest([PC]),75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") !CheckStatGT(ThirdNearest([PC]),0,STONESKINS) Range(ThirdNearest([PC]),4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound(ThirdNearest([PC])) END IF !StateCheck([PC.0.0.MAGE],STATE_INVISIBLE) See([PC.0.0.MAGE]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.MAGE],ENEMY) !StateCheck([PC.0.0.MAGE],STATE_IMMOBILE) !StateCheck([PC.0.0.MAGE],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.MAGE],0,HELD) OR(2) WeaponEffectiveVs([PC.0.0.MAGE],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.MAGE],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.MAGE],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.MAGE],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") Range([PC.0.0.MAGE],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.MAGE]) END IF !StateCheck([PC.0.0.MAGE_THIEF],STATE_INVISIBLE) See([PC.0.0.MAGE_THIEF]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.MAGE_THIEF],ENEMY) !StateCheck([PC.0.0.MAGE_THIEF],STATE_IMMOBILE) !StateCheck([PC.0.0.MAGE_THIEF],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.MAGE_THIEF],0,HELD) OR(2) WeaponEffectiveVs([PC.0.0.MAGE_THIEF],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.MAGE_THIEF],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.MAGE_THIEF],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.MAGE_THIEF],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") Range([PC.0.0.MAGE_THIEF],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.MAGE_THIEF]) END IF !StateCheck([PC.0.0.MAGE_ALL],STATE_INVISIBLE) See([PC.0.0.MAGE_ALL]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.MAGE_ALL],ENEMY) !StateCheck([PC.0.0.MAGE_ALL],STATE_IMMOBILE) !StateCheck([PC.0.0.MAGE_ALL],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.MAGE_ALL],0,HELD) OR(2) WeaponEffectiveVs([PC.0.0.MAGE_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.MAGE_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.MAGE_ALL],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.MAGE_ALL],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") Range([PC.0.0.MAGE_ALL],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.MAGE_ALL]) END IF !StateCheck([PC.0.0.THIEF],STATE_INVISIBLE) See([PC.0.0.THIEF]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.THIEF],ENEMY) !StateCheck([PC.0.0.THIEF],STATE_IMMOBILE) !StateCheck([PC.0.0.THIEF],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.THIEF],0,HELD) OR(2) WeaponEffectiveVs([PC.0.0.THIEF],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.THIEF],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.THIEF],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.THIEF],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") Range([PC.0.0.THIEF],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.THIEF]) END IF !StateCheck([PC.0.0.BARD],STATE_INVISIBLE) See([PC.0.0.BARD]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.BARD],ENEMY) !StateCheck([PC.0.0.BARD],STATE_IMMOBILE) !StateCheck([PC.0.0.BARD],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.BARD],0,HELD) OR(2) WeaponEffectiveVs([PC.0.0.BARD],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.BARD],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.BARD],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.BARD],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") Range([PC.0.0.BARD],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.BARD]) END IF !StateCheck([PC.0.0.THIEF_ALL],STATE_INVISIBLE) See([PC.0.0.THIEF_ALL]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.THIEF_ALL],ENEMY) !StateCheck([PC.0.0.THIEF_ALL],STATE_IMMOBILE) !StateCheck([PC.0.0.THIEF_ALL],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.THIEF_ALL],0,HELD) OR(2) WeaponEffectiveVs([PC.0.0.THIEF_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.THIEF_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.THIEF_ALL],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.THIEF_ALL],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") Range([PC.0.0.THIEF_ALL],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.THIEF_ALL]) END IF !StateCheck([PC.0.0.CLERIC],STATE_INVISIBLE) See([PC.0.0.CLERIC]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.CLERIC],ENEMY) !StateCheck([PC.0.0.CLERIC],STATE_IMMOBILE) !StateCheck([PC.0.0.CLERIC],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.CLERIC],0,HELD) OR(2) WeaponEffectiveVs([PC.0.0.CLERIC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.CLERIC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.CLERIC],100,RESISTCRUSHING) OR(2) CheckStatLT([PC.0.0.CLERIC],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") Range([PC.0.0.CLERIC],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC.0.0.CLERIC]) END IF !StateCheck([PC],STATE_INVISIBLE) See([PC]) Allegiance(Myself,ENEMY) !Allegiance([PC],ENEMY) !StateCheck([PC],STATE_IMMOBILE) !StateCheck([PC],STATE_FEEBLEMINDED) !CheckStatGT([PC],0,HELD) OR(2) WeaponEffectiveVs([PC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC],100,RESISTCRUSHING) OR(2) CheckStatLT([PC],75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") Range([PC],4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound([PC]) END IF !StateCheck(SecondNearest([PC]),STATE_INVISIBLE) See(SecondNearest([PC])) Allegiance(Myself,ENEMY) !Allegiance(SecondNearest([PC]),ENEMY) !StateCheck(SecondNearest([PC]),STATE_IMMOBILE) !StateCheck(SecondNearest([PC]),STATE_FEEBLEMINDED) !CheckStatGT(SecondNearest([PC]),0,HELD) OR(2) WeaponEffectiveVs(SecondNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(SecondNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(SecondNearest([PC]),100,RESISTCRUSHING) OR(2) CheckStatLT(SecondNearest([PC]),75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") Range(SecondNearest([PC]),4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound(SecondNearest([PC])) END IF !StateCheck(ThirdNearest([PC]),STATE_INVISIBLE) See(ThirdNearest([PC])) Allegiance(Myself,ENEMY) !Allegiance(ThirdNearest([PC]),ENEMY) !StateCheck(ThirdNearest([PC]),STATE_IMMOBILE) !StateCheck(ThirdNearest([PC]),STATE_FEEBLEMINDED) !CheckStatGT(ThirdNearest([PC]),0,HELD) OR(2) WeaponEffectiveVs(ThirdNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(ThirdNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(ThirdNearest([PC]),100,RESISTCRUSHING) OR(2) CheckStatLT(ThirdNearest([PC]),75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") Range(ThirdNearest([PC]),4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound(ThirdNearest([PC])) END IF !StateCheck(NearestEnemyOf(Myself),STATE_INVISIBLE) See(NearestEnemyOf(Myself)) Allegiance(Myself,ENEMY) !Allegiance(NearestEnemyOf(Myself),ENEMY) !StateCheck(NearestEnemyOf(Myself),STATE_IMMOBILE) !StateCheck(NearestEnemyOf(Myself),STATE_FEEBLEMINDED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) OR(2) WeaponEffectiveVs(NearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(NearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(NearestEnemyOf(Myself),100,RESISTCRUSHING) OR(2) CheckStatLT(NearestEnemyOf(Myself),75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") Range(NearestEnemyOf(Myself),4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound(NearestEnemyOf(Myself)) END IF !StateCheck(SecondNearestEnemyOf(Myself),STATE_INVISIBLE) See(SecondNearestEnemyOf(Myself)) Allegiance(Myself,ENEMY) !Allegiance(SecondNearestEnemyOf(Myself),ENEMY) !StateCheck(SecondNearestEnemyOf(Myself),STATE_IMMOBILE) !StateCheck(SecondNearestEnemyOf(Myself),STATE_FEEBLEMINDED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) OR(2) WeaponEffectiveVs(SecondNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(SecondNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(SecondNearestEnemyOf(Myself),100,RESISTCRUSHING) OR(2) CheckStatLT(SecondNearestEnemyOf(Myself),75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") Range(SecondNearestEnemyOf(Myself),4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound(SecondNearestEnemyOf(Myself)) END IF !StateCheck(ThirdNearestEnemyOf(Myself),STATE_INVISIBLE) See(ThirdNearestEnemyOf(Myself)) Allegiance(Myself,ENEMY) !Allegiance(ThirdNearestEnemyOf(Myself),ENEMY) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_IMMOBILE) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_FEEBLEMINDED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) OR(2) WeaponEffectiveVs(ThirdNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(ThirdNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(ThirdNearestEnemyOf(Myself),100,RESISTCRUSHING) OR(2) CheckStatLT(ThirdNearestEnemyOf(Myself),75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") Range(ThirdNearestEnemyOf(Myself),4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound(ThirdNearestEnemyOf(Myself)) END IF !StateCheck(NearestEnemyOf(Myself),STATE_INVISIBLE) See(NearestEnemyOf(Myself)) Allegiance(Myself,ENEMY) !Allegiance(NearestEnemyOf(Myself),ENEMY) OR(2) WeaponEffectiveVs(NearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(NearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(NearestEnemyOf(Myself),100,RESISTCRUSHING) OR(2) CheckStatLT(NearestEnemyOf(Myself),75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") Range(NearestEnemyOf(Myself),4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound(NearestEnemyOf(Myself)) END IF !StateCheck(SecondNearestEnemyOf(Myself),STATE_INVISIBLE) See(SecondNearestEnemyOf(Myself)) Allegiance(Myself,ENEMY) !Allegiance(SecondNearestEnemyOf(Myself),ENEMY) OR(2) WeaponEffectiveVs(SecondNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(SecondNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(SecondNearestEnemyOf(Myself),100,RESISTCRUSHING) OR(2) CheckStatLT(SecondNearestEnemyOf(Myself),75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") Range(SecondNearestEnemyOf(Myself),4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound(SecondNearestEnemyOf(Myself)) END IF !StateCheck(ThirdNearestEnemyOf(Myself),STATE_INVISIBLE) See(ThirdNearestEnemyOf(Myself)) Allegiance(Myself,ENEMY) !Allegiance(ThirdNearestEnemyOf(Myself),ENEMY) OR(2) WeaponEffectiveVs(ThirdNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(ThirdNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(ThirdNearestEnemyOf(Myself),100,RESISTCRUSHING) OR(2) CheckStatLT(ThirdNearestEnemyOf(Myself),75,RESISTCRUSHING) GlobalTimerNotExpired("targetcompromise","LOCALS") Range(ThirdNearestEnemyOf(Myself),4) THEN RESPONSE #100 SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",1) EquipMostDamagingMelee() AttackOneRound(ThirdNearestEnemyOf(Myself)) END IF !CanEquipRanged() ActionListEmpty() Allegiance(Myself,ENEMY) !GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 SetGlobalTimer("targetcompromise","LOCALS",FOUR_ROUNDS) END IF See(NearestEnemyOf(Myself)) OR(13) CheckSpellState(Player1,PROTECTION_FROM_NORMAL_MISSILES) CheckStat(Player1,1,CLERIC_PHYSICAL_MIRROR) CheckSpellState(Player2,PROTECTION_FROM_NORMAL_MISSILES) CheckStat(Player2,1,CLERIC_PHYSICAL_MIRROR) CheckSpellState(Player3,PROTECTION_FROM_NORMAL_MISSILES) CheckStat(Player3,1,CLERIC_PHYSICAL_MIRROR) CheckSpellState(Player4,PROTECTION_FROM_NORMAL_MISSILES) CheckStat(Player4,1,CLERIC_PHYSICAL_MIRROR) CheckSpellState(Player5,PROTECTION_FROM_NORMAL_MISSILES) CheckStat(Player5,1,CLERIC_PHYSICAL_MIRROR) CheckSpellState(Player6,PROTECTION_FROM_NORMAL_MISSILES) CheckStat(Player6,1,CLERIC_PHYSICAL_MIRROR) PartyHasItem("shld24") // Reflection Shield +1 !Global("DMWWinitialiseseePNM","LOCALS",1) THEN RESPONSE #100 SetGlobal("DMWWinitialiseseePNM","LOCALS",1) SetGlobalTimer("DMWWseePNM","LOCALS",ONE_ROUND) RESPONSE #100 SetGlobal("DMWWinitialiseseePNM","LOCALS",1) SetGlobalTimer("DMWWseePNM","LOCALS",3) END IF ActionListEmpty() !StateCheck([PC],STATE_INVISIBLE) See([PC]) Allegiance(Myself,ENEMY) !Allegiance([PC],ENEMY) !StateCheck([PC],STATE_IMMOBILE) !StateCheck([PC],STATE_FEEBLEMINDED) !CheckStatGT([PC],0,HELD) OR(2) !CheckSpellState([PC],PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT([PC],0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",[PC]) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs([PC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC],100,RESISTMISSILE) OR(2) CheckStatLT([PC],75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") HPPercentLT([PC],40) THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate([PC],30) RESPONSE #50 Continue() END IF ActionListEmpty() !StateCheck(SecondNearest([PC]),STATE_INVISIBLE) See(SecondNearest([PC])) Allegiance(Myself,ENEMY) !Allegiance(SecondNearest([PC]),ENEMY) !StateCheck(SecondNearest([PC]),STATE_IMMOBILE) !StateCheck(SecondNearest([PC]),STATE_FEEBLEMINDED) !CheckStatGT(SecondNearest([PC]),0,HELD) OR(2) !CheckSpellState(SecondNearest([PC]),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(SecondNearest([PC]),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",SecondNearest([PC])) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(SecondNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(SecondNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(SecondNearest([PC]),100,RESISTMISSILE) OR(2) CheckStatLT(SecondNearest([PC]),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") HPPercentLT(SecondNearest([PC]),40) THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(SecondNearest([PC]),30) RESPONSE #50 Continue() END IF ActionListEmpty() !StateCheck(ThirdNearest([PC]),STATE_INVISIBLE) See(ThirdNearest([PC])) Allegiance(Myself,ENEMY) !Allegiance(ThirdNearest([PC]),ENEMY) !StateCheck(ThirdNearest([PC]),STATE_IMMOBILE) !StateCheck(ThirdNearest([PC]),STATE_FEEBLEMINDED) !CheckStatGT(ThirdNearest([PC]),0,HELD) OR(2) !CheckSpellState(ThirdNearest([PC]),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(ThirdNearest([PC]),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",ThirdNearest([PC])) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(ThirdNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(ThirdNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(ThirdNearest([PC]),100,RESISTMISSILE) OR(2) CheckStatLT(ThirdNearest([PC]),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") HPPercentLT(ThirdNearest([PC]),40) THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(ThirdNearest([PC]),30) RESPONSE #50 Continue() END IF ActionListEmpty() !StateCheck(FourthNearest([PC]),STATE_INVISIBLE) See(FourthNearest([PC])) Allegiance(Myself,ENEMY) !Allegiance(FourthNearest([PC]),ENEMY) !StateCheck(FourthNearest([PC]),STATE_IMMOBILE) !StateCheck(FourthNearest([PC]),STATE_FEEBLEMINDED) !CheckStatGT(FourthNearest([PC]),0,HELD) OR(2) !CheckSpellState(FourthNearest([PC]),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(FourthNearest([PC]),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",FourthNearest([PC])) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(FourthNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(FourthNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(FourthNearest([PC]),100,RESISTMISSILE) OR(2) CheckStatLT(FourthNearest([PC]),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") HPPercentLT(FourthNearest([PC]),40) THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(FourthNearest([PC]),30) RESPONSE #50 Continue() END IF ActionListEmpty() !StateCheck(FifthNearest([PC]),STATE_INVISIBLE) See(FifthNearest([PC])) Allegiance(Myself,ENEMY) !Allegiance(FifthNearest([PC]),ENEMY) !StateCheck(FifthNearest([PC]),STATE_IMMOBILE) !StateCheck(FifthNearest([PC]),STATE_FEEBLEMINDED) !CheckStatGT(FifthNearest([PC]),0,HELD) OR(2) !CheckSpellState(FifthNearest([PC]),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(FifthNearest([PC]),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",FifthNearest([PC])) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(FifthNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(FifthNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(FifthNearest([PC]),100,RESISTMISSILE) OR(2) CheckStatLT(FifthNearest([PC]),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") HPPercentLT(FifthNearest([PC]),40) THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(FifthNearest([PC]),30) RESPONSE #50 Continue() END IF ActionListEmpty() !StateCheck(SixthNearest([PC]),STATE_INVISIBLE) See(SixthNearest([PC])) Allegiance(Myself,ENEMY) !Allegiance(SixthNearest([PC]),ENEMY) !StateCheck(SixthNearest([PC]),STATE_IMMOBILE) !StateCheck(SixthNearest([PC]),STATE_FEEBLEMINDED) !CheckStatGT(SixthNearest([PC]),0,HELD) OR(2) !CheckSpellState(SixthNearest([PC]),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(SixthNearest([PC]),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",SixthNearest([PC])) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(SixthNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(SixthNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(SixthNearest([PC]),100,RESISTMISSILE) OR(2) CheckStatLT(SixthNearest([PC]),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") HPPercentLT(SixthNearest([PC]),40) THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(SixthNearest([PC]),30) RESPONSE #50 Continue() END IF ActionListEmpty() !StateCheck([PC.0.0.MAGE_ALL],STATE_INVISIBLE) See([PC.0.0.MAGE_ALL]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.MAGE_ALL],ENEMY) !StateCheck([PC.0.0.MAGE_ALL],STATE_IMMOBILE) !StateCheck([PC.0.0.MAGE_ALL],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.MAGE_ALL],0,HELD) OR(2) !CheckSpellState([PC.0.0.MAGE_ALL],PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT([PC.0.0.MAGE_ALL],0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",[PC.0.0.MAGE_ALL]) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs([PC.0.0.MAGE_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.MAGE_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.MAGE_ALL],100,RESISTMISSILE) OR(2) CheckStatLT([PC.0.0.MAGE_ALL],75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate([PC.0.0.MAGE_ALL],30) RESPONSE #50 Continue() END IF ActionListEmpty() !StateCheck([PC.0.0.CLERIC_ALL],STATE_INVISIBLE) See([PC.0.0.CLERIC_ALL]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.CLERIC_ALL],ENEMY) !StateCheck([PC.0.0.CLERIC_ALL],STATE_IMMOBILE) !StateCheck([PC.0.0.CLERIC_ALL],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.CLERIC_ALL],0,HELD) OR(2) !CheckSpellState([PC.0.0.CLERIC_ALL],PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT([PC.0.0.CLERIC_ALL],0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",[PC.0.0.CLERIC_ALL]) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs([PC.0.0.CLERIC_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.CLERIC_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.CLERIC_ALL],100,RESISTMISSILE) OR(2) CheckStatLT([PC.0.0.CLERIC_ALL],75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate([PC.0.0.CLERIC_ALL],30) RESPONSE #50 Continue() END IF ActionListEmpty() !StateCheck([PC.0.0.DRUID_ALL],STATE_INVISIBLE) See([PC.0.0.DRUID_ALL]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.DRUID_ALL],ENEMY) !StateCheck([PC.0.0.DRUID_ALL],STATE_IMMOBILE) !StateCheck([PC.0.0.DRUID_ALL],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.DRUID_ALL],0,HELD) OR(2) !CheckSpellState([PC.0.0.DRUID_ALL],PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT([PC.0.0.DRUID_ALL],0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",[PC.0.0.DRUID_ALL]) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs([PC.0.0.DRUID_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.DRUID_ALL],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.DRUID_ALL],100,RESISTMISSILE) OR(2) CheckStatLT([PC.0.0.DRUID_ALL],75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate([PC.0.0.DRUID_ALL],30) RESPONSE #50 Continue() END IF ActionListEmpty() !StateCheck([PC.0.0.BARD],STATE_INVISIBLE) See([PC.0.0.BARD]) Allegiance(Myself,ENEMY) !Allegiance([PC.0.0.BARD],ENEMY) !StateCheck([PC.0.0.BARD],STATE_IMMOBILE) !StateCheck([PC.0.0.BARD],STATE_FEEBLEMINDED) !CheckStatGT([PC.0.0.BARD],0,HELD) OR(2) !CheckSpellState([PC.0.0.BARD],PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT([PC.0.0.BARD],0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",[PC.0.0.BARD]) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs([PC.0.0.BARD],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC.0.0.BARD],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC.0.0.BARD],100,RESISTMISSILE) OR(2) CheckStatLT([PC.0.0.BARD],75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate([PC.0.0.BARD],30) RESPONSE #50 Continue() END IF ActionListEmpty() !StateCheck([PC],STATE_INVISIBLE) See([PC]) !HasItem("morsword",[PC]) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance([PC],ENEMY) !StateCheck([PC],STATE_IMMOBILE) !StateCheck([PC],STATE_FEEBLEMINDED) !CheckStatGT([PC],0,HELD) OR(2) !CheckSpellState([PC],PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT([PC],0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",[PC]) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs([PC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC],100,RESISTMISSILE) OR(2) CheckStatLT([PC],75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate([PC],30) END IF ActionListEmpty() !StateCheck(SecondNearest([PC]),STATE_INVISIBLE) See(SecondNearest([PC])) !HasItem("morsword",SecondNearest([PC])) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(SecondNearest([PC]),ENEMY) !StateCheck(SecondNearest([PC]),STATE_IMMOBILE) !StateCheck(SecondNearest([PC]),STATE_FEEBLEMINDED) !CheckStatGT(SecondNearest([PC]),0,HELD) OR(2) !CheckSpellState(SecondNearest([PC]),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(SecondNearest([PC]),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",SecondNearest([PC])) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(SecondNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(SecondNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(SecondNearest([PC]),100,RESISTMISSILE) OR(2) CheckStatLT(SecondNearest([PC]),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(SecondNearest([PC]),30) END IF ActionListEmpty() !StateCheck(ThirdNearest([PC]),STATE_INVISIBLE) See(ThirdNearest([PC])) !HasItem("morsword",ThirdNearest([PC])) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(ThirdNearest([PC]),ENEMY) !StateCheck(ThirdNearest([PC]),STATE_IMMOBILE) !StateCheck(ThirdNearest([PC]),STATE_FEEBLEMINDED) !CheckStatGT(ThirdNearest([PC]),0,HELD) OR(2) !CheckSpellState(ThirdNearest([PC]),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(ThirdNearest([PC]),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",ThirdNearest([PC])) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(ThirdNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(ThirdNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(ThirdNearest([PC]),100,RESISTMISSILE) OR(2) CheckStatLT(ThirdNearest([PC]),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(ThirdNearest([PC]),30) END IF ActionListEmpty() !StateCheck(FourthNearest([PC]),STATE_INVISIBLE) See(FourthNearest([PC])) !HasItem("morsword",FourthNearest([PC])) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(FourthNearest([PC]),ENEMY) !StateCheck(FourthNearest([PC]),STATE_IMMOBILE) !StateCheck(FourthNearest([PC]),STATE_FEEBLEMINDED) !CheckStatGT(FourthNearest([PC]),0,HELD) OR(2) !CheckSpellState(FourthNearest([PC]),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(FourthNearest([PC]),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",FourthNearest([PC])) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(FourthNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(FourthNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(FourthNearest([PC]),100,RESISTMISSILE) OR(2) CheckStatLT(FourthNearest([PC]),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(FourthNearest([PC]),30) END IF ActionListEmpty() !StateCheck(FifthNearest([PC]),STATE_INVISIBLE) See(FifthNearest([PC])) !HasItem("morsword",FifthNearest([PC])) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(FifthNearest([PC]),ENEMY) !StateCheck(FifthNearest([PC]),STATE_IMMOBILE) !StateCheck(FifthNearest([PC]),STATE_FEEBLEMINDED) !CheckStatGT(FifthNearest([PC]),0,HELD) OR(2) !CheckSpellState(FifthNearest([PC]),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(FifthNearest([PC]),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",FifthNearest([PC])) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(FifthNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(FifthNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(FifthNearest([PC]),100,RESISTMISSILE) OR(2) CheckStatLT(FifthNearest([PC]),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(FifthNearest([PC]),30) END IF ActionListEmpty() !StateCheck(SixthNearest([PC]),STATE_INVISIBLE) See(SixthNearest([PC])) !HasItem("morsword",SixthNearest([PC])) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(SixthNearest([PC]),ENEMY) !StateCheck(SixthNearest([PC]),STATE_IMMOBILE) !StateCheck(SixthNearest([PC]),STATE_FEEBLEMINDED) !CheckStatGT(SixthNearest([PC]),0,HELD) OR(2) !CheckSpellState(SixthNearest([PC]),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(SixthNearest([PC]),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",SixthNearest([PC])) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(SixthNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(SixthNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(SixthNearest([PC]),100,RESISTMISSILE) OR(2) CheckStatLT(SixthNearest([PC]),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(SixthNearest([PC]),30) END IF ActionListEmpty() !StateCheck(NearestEnemyOf(Myself),STATE_INVISIBLE) See(NearestEnemyOf(Myself)) !HasItem("morsword",NearestEnemyOf(Myself)) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(NearestEnemyOf(Myself),ENEMY) !StateCheck(NearestEnemyOf(Myself),STATE_IMMOBILE) !StateCheck(NearestEnemyOf(Myself),STATE_FEEBLEMINDED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) OR(2) !CheckSpellState(NearestEnemyOf(Myself),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(NearestEnemyOf(Myself),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",NearestEnemyOf(Myself)) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(NearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(NearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(NearestEnemyOf(Myself),100,RESISTMISSILE) OR(2) CheckStatLT(NearestEnemyOf(Myself),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(NearestEnemyOf(Myself),30) END IF ActionListEmpty() !StateCheck(SecondNearestEnemyOf(Myself),STATE_INVISIBLE) See(SecondNearestEnemyOf(Myself)) !HasItem("morsword",SecondNearestEnemyOf(Myself)) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(SecondNearestEnemyOf(Myself),ENEMY) !StateCheck(SecondNearestEnemyOf(Myself),STATE_IMMOBILE) !StateCheck(SecondNearestEnemyOf(Myself),STATE_FEEBLEMINDED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) OR(2) !CheckSpellState(SecondNearestEnemyOf(Myself),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(SecondNearestEnemyOf(Myself),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",SecondNearestEnemyOf(Myself)) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(SecondNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(SecondNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(SecondNearestEnemyOf(Myself),100,RESISTMISSILE) OR(2) CheckStatLT(SecondNearestEnemyOf(Myself),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(SecondNearestEnemyOf(Myself),30) END IF ActionListEmpty() !StateCheck(ThirdNearestEnemyOf(Myself),STATE_INVISIBLE) See(ThirdNearestEnemyOf(Myself)) !HasItem("morsword",ThirdNearestEnemyOf(Myself)) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(ThirdNearestEnemyOf(Myself),ENEMY) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_IMMOBILE) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_FEEBLEMINDED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) OR(2) !CheckSpellState(ThirdNearestEnemyOf(Myself),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",ThirdNearestEnemyOf(Myself)) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(ThirdNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(ThirdNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(ThirdNearestEnemyOf(Myself),100,RESISTMISSILE) OR(2) CheckStatLT(ThirdNearestEnemyOf(Myself),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(ThirdNearestEnemyOf(Myself),30) END IF ActionListEmpty() !StateCheck(FourthNearestEnemyOf(Myself),STATE_INVISIBLE) See(FourthNearestEnemyOf(Myself)) !HasItem("morsword",FourthNearestEnemyOf(Myself)) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(FourthNearestEnemyOf(Myself),ENEMY) !StateCheck(FourthNearestEnemyOf(Myself),STATE_IMMOBILE) !StateCheck(FourthNearestEnemyOf(Myself),STATE_FEEBLEMINDED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) OR(2) !CheckSpellState(FourthNearestEnemyOf(Myself),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(FourthNearestEnemyOf(Myself),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",FourthNearestEnemyOf(Myself)) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(FourthNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(FourthNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(FourthNearestEnemyOf(Myself),100,RESISTMISSILE) OR(2) CheckStatLT(FourthNearestEnemyOf(Myself),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(FourthNearestEnemyOf(Myself),30) END IF ActionListEmpty() !StateCheck(FifthNearestEnemyOf(Myself),STATE_INVISIBLE) See(FifthNearestEnemyOf(Myself)) !HasItem("morsword",FifthNearestEnemyOf(Myself)) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(FifthNearestEnemyOf(Myself),ENEMY) !StateCheck(FifthNearestEnemyOf(Myself),STATE_IMMOBILE) !StateCheck(FifthNearestEnemyOf(Myself),STATE_FEEBLEMINDED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) OR(2) !CheckSpellState(FifthNearestEnemyOf(Myself),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(FifthNearestEnemyOf(Myself),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",FifthNearestEnemyOf(Myself)) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(FifthNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(FifthNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(FifthNearestEnemyOf(Myself),100,RESISTMISSILE) OR(2) CheckStatLT(FifthNearestEnemyOf(Myself),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(FifthNearestEnemyOf(Myself),30) END IF ActionListEmpty() !StateCheck(SixthNearestEnemyOf(Myself),STATE_INVISIBLE) See(SixthNearestEnemyOf(Myself)) !HasItem("morsword",SixthNearestEnemyOf(Myself)) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(SixthNearestEnemyOf(Myself),ENEMY) !StateCheck(SixthNearestEnemyOf(Myself),STATE_IMMOBILE) !StateCheck(SixthNearestEnemyOf(Myself),STATE_FEEBLEMINDED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) OR(2) !CheckSpellState(SixthNearestEnemyOf(Myself),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(SixthNearestEnemyOf(Myself),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",SixthNearestEnemyOf(Myself)) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(SixthNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(SixthNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(SixthNearestEnemyOf(Myself),100,RESISTMISSILE) OR(2) CheckStatLT(SixthNearestEnemyOf(Myself),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(SixthNearestEnemyOf(Myself),30) END IF ActionListEmpty() !StateCheck([PC],STATE_INVISIBLE) See([PC]) !HasItem("morsword",[PC]) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance([PC],ENEMY) OR(2) !CheckSpellState([PC],PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT([PC],0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",[PC]) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs([PC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage([PC],MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT([PC],100,RESISTMISSILE) OR(2) CheckStatLT([PC],75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate([PC],30) END IF ActionListEmpty() !StateCheck(SecondNearest([PC]),STATE_INVISIBLE) See(SecondNearest([PC])) !HasItem("morsword",SecondNearest([PC])) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(SecondNearest([PC]),ENEMY) OR(2) !CheckSpellState(SecondNearest([PC]),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(SecondNearest([PC]),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",SecondNearest([PC])) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(SecondNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(SecondNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(SecondNearest([PC]),100,RESISTMISSILE) OR(2) CheckStatLT(SecondNearest([PC]),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(SecondNearest([PC]),30) END IF ActionListEmpty() !StateCheck(ThirdNearest([PC]),STATE_INVISIBLE) See(ThirdNearest([PC])) !HasItem("morsword",ThirdNearest([PC])) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(ThirdNearest([PC]),ENEMY) OR(2) !CheckSpellState(ThirdNearest([PC]),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(ThirdNearest([PC]),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",ThirdNearest([PC])) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(ThirdNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(ThirdNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(ThirdNearest([PC]),100,RESISTMISSILE) OR(2) CheckStatLT(ThirdNearest([PC]),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(ThirdNearest([PC]),30) END IF ActionListEmpty() !StateCheck(FourthNearest([PC]),STATE_INVISIBLE) See(FourthNearest([PC])) !HasItem("morsword",FourthNearest([PC])) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(FourthNearest([PC]),ENEMY) OR(2) !CheckSpellState(FourthNearest([PC]),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(FourthNearest([PC]),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",FourthNearest([PC])) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(FourthNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(FourthNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(FourthNearest([PC]),100,RESISTMISSILE) OR(2) CheckStatLT(FourthNearest([PC]),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(FourthNearest([PC]),30) END IF ActionListEmpty() !StateCheck(FifthNearest([PC]),STATE_INVISIBLE) See(FifthNearest([PC])) !HasItem("morsword",FifthNearest([PC])) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(FifthNearest([PC]),ENEMY) OR(2) !CheckSpellState(FifthNearest([PC]),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(FifthNearest([PC]),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",FifthNearest([PC])) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(FifthNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(FifthNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(FifthNearest([PC]),100,RESISTMISSILE) OR(2) CheckStatLT(FifthNearest([PC]),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(FifthNearest([PC]),30) END IF ActionListEmpty() !StateCheck(SixthNearest([PC]),STATE_INVISIBLE) See(SixthNearest([PC])) !HasItem("morsword",SixthNearest([PC])) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(SixthNearest([PC]),ENEMY) OR(2) !CheckSpellState(SixthNearest([PC]),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(SixthNearest([PC]),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",SixthNearest([PC])) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(SixthNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(SixthNearest([PC]),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(SixthNearest([PC]),100,RESISTMISSILE) OR(2) CheckStatLT(SixthNearest([PC]),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(SixthNearest([PC]),30) END IF ActionListEmpty() !StateCheck(NearestEnemyOf(Myself),STATE_INVISIBLE) See(NearestEnemyOf(Myself)) !HasItem("morsword",NearestEnemyOf(Myself)) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(NearestEnemyOf(Myself),ENEMY) OR(2) !CheckSpellState(NearestEnemyOf(Myself),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(NearestEnemyOf(Myself),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",NearestEnemyOf(Myself)) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(NearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(NearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(NearestEnemyOf(Myself),100,RESISTMISSILE) OR(2) CheckStatLT(NearestEnemyOf(Myself),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(NearestEnemyOf(Myself),30) END IF ActionListEmpty() !StateCheck(SecondNearestEnemyOf(Myself),STATE_INVISIBLE) See(SecondNearestEnemyOf(Myself)) !HasItem("morsword",SecondNearestEnemyOf(Myself)) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(SecondNearestEnemyOf(Myself),ENEMY) OR(2) !CheckSpellState(SecondNearestEnemyOf(Myself),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(SecondNearestEnemyOf(Myself),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",SecondNearestEnemyOf(Myself)) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(SecondNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(SecondNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(SecondNearestEnemyOf(Myself),100,RESISTMISSILE) OR(2) CheckStatLT(SecondNearestEnemyOf(Myself),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(SecondNearestEnemyOf(Myself),30) END IF ActionListEmpty() !StateCheck(ThirdNearestEnemyOf(Myself),STATE_INVISIBLE) See(ThirdNearestEnemyOf(Myself)) !HasItem("morsword",ThirdNearestEnemyOf(Myself)) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(ThirdNearestEnemyOf(Myself),ENEMY) OR(2) !CheckSpellState(ThirdNearestEnemyOf(Myself),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",ThirdNearestEnemyOf(Myself)) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(ThirdNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(ThirdNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(ThirdNearestEnemyOf(Myself),100,RESISTMISSILE) OR(2) CheckStatLT(ThirdNearestEnemyOf(Myself),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(ThirdNearestEnemyOf(Myself),30) END IF ActionListEmpty() !StateCheck(FourthNearestEnemyOf(Myself),STATE_INVISIBLE) See(FourthNearestEnemyOf(Myself)) !HasItem("morsword",FourthNearestEnemyOf(Myself)) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(FourthNearestEnemyOf(Myself),ENEMY) OR(2) !CheckSpellState(FourthNearestEnemyOf(Myself),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(FourthNearestEnemyOf(Myself),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",FourthNearestEnemyOf(Myself)) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(FourthNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(FourthNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(FourthNearestEnemyOf(Myself),100,RESISTMISSILE) OR(2) CheckStatLT(FourthNearestEnemyOf(Myself),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(FourthNearestEnemyOf(Myself),30) END IF ActionListEmpty() !StateCheck(FifthNearestEnemyOf(Myself),STATE_INVISIBLE) See(FifthNearestEnemyOf(Myself)) !HasItem("morsword",FifthNearestEnemyOf(Myself)) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(FifthNearestEnemyOf(Myself),ENEMY) OR(2) !CheckSpellState(FifthNearestEnemyOf(Myself),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(FifthNearestEnemyOf(Myself),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",FifthNearestEnemyOf(Myself)) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(FifthNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(FifthNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(FifthNearestEnemyOf(Myself),100,RESISTMISSILE) OR(2) CheckStatLT(FifthNearestEnemyOf(Myself),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(FifthNearestEnemyOf(Myself),30) END IF ActionListEmpty() !StateCheck(SixthNearestEnemyOf(Myself),STATE_INVISIBLE) See(SixthNearestEnemyOf(Myself)) !HasItem("morsword",SixthNearestEnemyOf(Myself)) // Magical Sword +3 Allegiance(Myself,ENEMY) !Allegiance(SixthNearestEnemyOf(Myself),ENEMY) OR(2) !CheckSpellState(SixthNearestEnemyOf(Myself),PROTECTION_FROM_NORMAL_MISSILES) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !CheckStatGT(SixthNearestEnemyOf(Myself),0,CLERIC_PHYSICAL_MIRROR) GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) !HasItemEquiped("shld24",SixthNearestEnemyOf(Myself)) // Reflection Shield +1 GlobalTimerNotExpired("DMWWseePNM","LOCALS") OR(2) WeaponEffectiveVs(SixthNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") OR(2) WeaponCanDamage(SixthNearestEnemyOf(Myself),MAINHAND) GlobalTimerNotExpired("seedefences","LOCALS") CheckStatLT(SixthNearestEnemyOf(Myself),100,RESISTMISSILE) OR(2) CheckStatLT(SixthNearestEnemyOf(Myself),75,RESISTMISSILE) GlobalTimerNotExpired("targetcompromise","LOCALS") THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(SixthNearestEnemyOf(Myself),30) END IF !StateCheck(NearestEnemyOf(Myself),STATE_INVISIBLE) ActionListEmpty() See(NearestEnemyOf(Myself)) Allegiance(Myself,ENEMY) THEN RESPONSE #100 EquipMostDamagingMelee() SetGlobal("melee","LOCALS",1) AttackOneRound(NearestEnemyOf(Myself)) END IF ActionListEmpty() !StateCheck(LastSeenBy(Myself),STATE_INVISIBLE) Allegiance(Myself,ENEMY) OR(6) See(Player1) See(Player2) See(Player3) See(Player4) See(Player5) See(Player6) THEN RESPONSE #100 EquipRanged() SetGlobal("validtarget","LOCALS",1) SetGlobal("melee","LOCALS",0) AttackReevaluate(LastSeenBy(Myself),30) END