| 05-02-2007, 04:06 PM | #1 |
I've search around the forum for this ability, but so far I've only found evasion example. If someone has one, I'd be glad to credit you for the use :) Otherwise, here's what I've got so far: I want the Miss red message to be shown over the head of the attacker. I want the miss chance to stack with evasion, damage reduction and if it can be done, stack with other miss chance effect. Since it's an aura, I want it to be an area of affect around the hero. I have'nt coded anything yet, but I've thought about three way of doing this, and I'd like your expert opinion on which would be the easiest and fastest one :) I could check on attack if the attacker has the aura debuff and if so, give him the critical at 0 damage so his attack deals no damage and create a floating text over it's head saying he actually missed. I suspect this would lag a lot to add an on attack trigger and possibly create issue my noob self don't know about yet :) I could create a dummy unit that cast a Cloud spell over the aura area each second that would last let's say 2 seconds so that anyone in the area get the debuff as long as it's in the aura but that expire soon after they exit it. Again, I'm not sure about the lag it would cause to have a spell casted each second. And I'm not sure if I can create a dummy that will follow the hero step by step. I could create a periodic trigger that would give the Hardened Skin with a certain percent chance to negate all damage to the allies that enter the aura and remove it from those that are not inside. I would probably loose the miss message this way and I'm not sure how it would stack with other defensive buffs. And again, the lag is bothering me. Right now, I would probably try the dummy caster one first. If you would have to create a miss chance aura, which method would you use ? |
| 05-03-2007, 02:25 AM | #2 |
Get every unit in playable map with the ability evadeaura set TEMPAura = (Picked Unit) Get each unit within 600 of (TEMPAura) and do actions add buff evasion to picked unit make sure that buff evasion has a life of about 1 sec. |
| 05-03-2007, 03:45 AM | #3 |
Ah HA! I made just the very spell for Baron Crinkle a while ago. The thread about it can be found here. I'm pretty sure that's what he ended up doing; it detects when a unit misses and determines if it will create a pseudo-miss. It cannot genuinely set the units % chance to miss to a specific value, but it can (and does) increase it by a set amount. If the attack should "miss", the unit is ordered to stop, it plays its attack animation, and is damaged. Then is re-issued its order to attack (if it was present before the unit was ordered to stop), etc. A "miss" is calculated not as the damage happens but at the start of the attack; same for critical strike. Try it; if you create a critical strike with a 100% chance which you add to units when they initiate an attack, the unit will never critical strike. |
| 05-03-2007, 03:50 AM | #4 |
Ugh, please. Don't do it that way, you're trying to code against the WC3 engine. Just make a dummy unit that's always at the aura-owner's position cast curse on a 0 second cooldown for 4 second durations (Aura refresh time) on all foes within range. Easy, done, perfect WC3 UI. Please don't overcomplicate stuff. :P |
| 05-03-2007, 03:51 AM | #5 |
Referring to me, Rising_Dusk? I suppose that is overcomplicated for what he needs; he doesn't need the extra damage when they miss. Oh well. Listen to Dusk. |
| 05-03-2007, 11:44 AM | #6 |
| 05-03-2007, 03:01 PM | #7 |
Why not use dummy unit? Would picking every unit on the entire map every 0.01 and 2 seconds be faster than casting a spell in an area every 4 seconds ? Also, I'm trying to make a miss chance aura that stack with evasion, is there a passive ability that give miss chance? Because if I add a % chance to do 0 damage to enemies, I won't get the Miss message and if I give a dodge ability to allies, it won't stack with other evasion. |
| 05-03-2007, 03:07 PM | #8 | |
Quote:
Come on, that isn't even funny. That also requires two triggers in your case and might not even work 100% of the time. If you want it to stack with evasion, use my method of casting curse on nearby foes. That will work the best, trust me. |
| 05-03-2007, 03:31 PM | #9 |
Giving units evasion is not the same as making the miss...different problems, so different problems. He wants them to miss - not to evade. I'd like to point out to make sure you give the dummy unit 0 casting time and 0 casting animation time as well. |
| 05-03-2007, 03:42 PM | #10 |
Oh thanks about the animation time, I would probably have forgot about this :) |
| 05-03-2007, 04:00 PM | #11 | |
Quote:
I know that giving evasion is different... thats why my trigger doesnt calculate chance to evade... I say, just try all our suggestions and use what you like the best, i like my way, but use what you like. I believe that there is an evasion stack in gameplay constants or give it a evasion spell that is a different base or something.... |
| 05-03-2007, 04:24 PM | #12 | |
Quote:
Why are you adding an evasion ability then...? Your triggers are also vastly leaky and ineffecient. |
| 05-03-2007, 09:24 PM | #13 |
And won't necessarily work because they use nested ForGroups. |
| 05-03-2007, 09:34 PM | #14 |
Ok, since this thread is active unlike the other one, I'll throw a few questions into the mix:
|
| 05-03-2007, 11:59 PM | #15 | |
Quote:
|
