HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Casting bloodlust on every unit within area

03-02-2008, 09:51 PM#1
Fluff
I have a building that I would like to have cast a bloodlust based spell on all friendly (player owned or ally, either one will work) units within range of 1200 of the building at 18:00 every night. I've tried some GUI things but they only will cast the ability on one unit. I set the ability to cooldown of 0 and mana cost 0. I think I need some JASS help for this one, and hopefully it will be simple.

It has to be a loop because it needs to have different buildings from different players do this all at once. I have variables for Temple[unitarray] and Number of Temples (integer). Here's what I need:

Loop for Temple[0] to Temple[Number of Temples-1]
Cast bloodlust on every friendly unit within 1200 of Temple[x] at 1800
03-02-2008, 10:07 PM#2
Rising_Dusk
Quote:
I set the ability to cooldown of 0 and mana cost 0.
Make sure your building has a 0.00 cast backswing and animation cast time. That's important. You can do this in GUI, too. If you need an example, I'd be glad to whip some GUI up.
03-03-2008, 11:19 AM#3
Anitarf
Depending on what effects of the bloodlust you need, there might be an AoE spell that does the same thing; for movement speed bonus, the scroll of speed ability. For move and attack speed, I think silence can do those both. For unit size... well, you really need bloodlust for that. :)
03-03-2008, 04:45 PM#4
RolePlaynGamer
have a event that detects when it's 18:00. Then give the tower the ability and make it use on everyone in range. You could set the cooldown and mana to 0. Then remove the ability.