IF
GlobalTimerNotExpired("DMWWpanickedwolves","GLOBAL")
!See([ENEMY.HUMANOID])
THEN
RESPONSE #100
EscapeArea()
END
IF
Global("DMWWWolvesHostile","GLOBAL",1)
!Allegiance(Myself,ENEMY)
AreaType(OUTDOOR)
!Detect([PC])
THEN
RESPONSE #100
Enemy()
Continue()
END
IF
Global("DMWWWolvesHostile","GLOBAL",0)
Allegiance(Myself,ENEMY)
AreaType(OUTDOOR)
!Detect([PC])
THEN
RESPONSE #100
ChangeEnemyAlly(Myself,NEUTRAL)
END
IF
Range([PC],5)
!Allegiance(Myself,ENEMY)
!GlobalTimerNotExpired("DMWWcowardlywolves","GLOBAL")
THEN
RESPONSE #200
SetGlobalTimer("DMWWcowardlywolves","GLOBAL",TWO_ROUNDS)
RESPONSE #100
Enemy()
END
IF
!Allegiance(Myself,ENEMY)
GlobalTimerNotExpired("DMWWcowardlywolves","GLOBAL")
Range([PC],20)
THEN
RESPONSE #100
RunAwayFrom([PC],30)
END
IF
!Allegiance(Myself,ENEMY)
!GlobalTimerNotExpired("wolfwander","LOCALS")
OR(2)
!See([0.0.WOLF])
Range([0.0.WOLF],20)
THEN
RESPONSE #100
SetGlobalTimer("wolfwander","LOCALS",ONE_MINUTE)
RandomWalk()
RESPONSE #100
SetGlobalTimer("wolfwander","LOCALS",ONE_MINUTE)
END
IF
Allegiance(Myself,ENEMY)
See([0.0.WOLF])
!Range([0.0.WOLF],20)
THEN
RESPONSE #100
MoveToObject(LastSeenBy(Myself))
END
IF
StateCheck(Myself,STATE_REALLY_DEAD)
!Global("hurtwolf","LOCALS",1)
AreaType(OUTDOOR)
HPPercentLT(Myself,60)
!NumCreatureGT([ENEMY],3)
THEN
RESPONSE #100
SetGlobal("hurtwolf","LOCALS",1)
SetGlobalTimer("DMWWpanickedwolves","GLOBAL",SIX_MINUTES)
RESPONSE #100
SetGlobal("hurtwolf","LOCALS",1)
END
IF
StateCheck(Myself,STATE_REALLY_DEAD)
!Global("deadwolf","LOCALS",1)
AreaType(OUTDOOR)
THEN
RESPONSE #100
SetGlobal("deadwolf","LOCALS",1)
SetGlobalTimer("DMWWpanickedwolves","GLOBAL",SIX_MINUTES)
RESPONSE #100
SetGlobal("deadwolf","LOCALS",1)
END
IF
See(NearestEnemyOf(Myself))
!Race(LastSeenBy(Myself),WOLF)
THEN
RESPONSE #100
AttackReevaluate(NearestEnemyOf(Myself),15)
END