| 04-05-2004, 05:10 AM | #1 |
Corpse Explosion -Have user pick a corpse -Expload picked corpse Redemption Aura -Pick all corpses in an area up -Give hp/mana to casting unit per corpse Ok it sounds easy but: How do I enable the user to select a single corpse? -I thought something based off of devour would work, it just seems to run to the nearest corpse though and not allow the user to pick one -I thought a store corpse unit would do what I want but I can't find one with that ability, help? How do I "pick up" all the corpses in an area? -The spell raise dead (wc3 undead knight hero ult) and revive (wc3 pally ult) picks up 6 corpses and then revives them, how do i pick up x corpses and do y based on the x corpses i picked up? _______________________ |--] Thanks For Helping [--| |______________________| |
| 04-08-2004, 01:01 AM | #2 |
not a single reply?! what am i doing wrong.. :o |
| 04-08-2004, 05:07 AM | #3 |
ok first for CE, what you should do is something like, base the spell of serpent ward, and then have a trigger like: E: a unit begins channeling an ability C: ability being cast equal to yourability A: if (number of units in (units in (range) matching condition ((matching unit) is dead equal to true)) greater than or equal to 1) then do (pick closest unit script stuff) damage stuff you want here damage stuff you want here remove the corpse stuff here etc. anyways, someone wrote a (rather memory intensive, but usable) function that gets the closest unit to a point, you can use that to get the closest corpse that they targeted. As for redemption aura, if you recall correctly, it was a %age chance that it would redeem each time it checked (once every 2 seconds i think) but it could check a corpse multiple times. i suggest a periodic event, with the condition for the event being an integer count of the number of units in range of the paladin, and also a boolean using a variable to indicate whether he has aura active or not. |
