IF
See(Player1)
Global("X#WyliamChat","LOCALS",0)
THEN
RESPONSE #100
Dialogue(Player1)
SetGlobal("X#WyliamChat","LOCALS",1)
END

IF
See(NearestEnemyOf(Myself))
HaveSpell(WIZARD_MIRROR_IMAGE)
Global("X#WyliamPrepped","LOCALS",0)
THEN
RESPONSE #100
Spell(Myself,WIZARD_MIRROR_IMAGE)
SetGlobal("X#WyliamPrepped","LOCALS",1)
END

IF
See(NearestEnemyOf(Myself))
HaveSpell(WIZARD_MAGIC_MISSILE)
THEN
RESPONSE #100
Spell(NearestEnemyOf(Myself),WIZARD_MAGIC_MISSILE)
END

IF
See(NearestEnemyOf(Myself))
THEN
RESPONSE #100
Attack(NearestEnemyOf(Myself))
END
