Edit: Never mind, teach me to try and figure out this when I should be sleeping. It doesn't work. And I can't delete this post.
I may have figured out how to check for nearby targets in area of effect spells (but probably not) but I'm not near my computer and I wont be near it for at least a few days.
If someone could test the code I would appreciate it.
I realize that if an enemy is standing on the other side of the mage it wont work, but that's for future though. I just want to know if this works.
if
See(NearestEnemyOf(MySelf()))
Then
Response #100
SetTokenObject("centraltarget", NearestEnemyOf(Myself()))
End
If
Range(SecondNearestEnemyOf(NearestEnemy("centralTarget")), 15)
Then
response #100
ReallyForceSpell("centraltarget", WIZARD_FIREBALL)
End
Thanks
