Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: Duality
« on: March 06, 2006, 09:10:28 PM »

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 :)