Ability: Dance of Shadow (Hyped-up Evasion)

San-D

New Member
Reaction score
15
The idea is to create a ability which gives the learning hero a chance to evade an attack, but instead of just missing it, the evader has to be moved instantly to a random location within range of the attacker. The trigger shoul be non JASS/MUI, and should look something like:
Even
A unit (starts the effect of an ability)
Condition
??? equal to Dance of Shadow
Action
Variable - Set ??? unit as (Evader)
Variable - Set ??? unit as (Attacker)
Unit - move (Evader) instantly to random point in (region converted at (position of (Attacker)) 600, 600))

So the problem is what is the response to starts the effect of an ability, what should the comparison be, and, as a passive ability, is missing an attack due to Evasion counted as a "started effect of an ability" 600,600 ofcourse is the higth/weigth of the region
 

Exide

I am amazingly focused right now!
Reaction score
448
No, no. :p
What you do is to make the ability a fake one, a display one. With all the tooltips like: 'Gives your hero 15% evasion, blabla' - but really set the evade to 0.
Then make a trigger like:

A unit is attacked
Attacked Unit has *your ability buff* equal to true
Set random number between 1 and 100
if random number is less than or equal to 15 then do... *your move actions*

Although, that won't make the unit actually dodge the attack..
I guess you need to add a trigger so that the attacked unit recieves hp equal to damage dealt, and a floating text above the attackers head, saying 'miss'.
 

0zaru

Learning vJASS ;)
Reaction score
60
I just read this: >A unit (starts the effect of an ability)
and this
>So the problem is what is the response to starts the effect of an ability, what should the comparison be

so i answer that :p

If you want to do a passive ability then you will have to trigger when the unit moves, if a unit was attacking it etc..
 
Reaction score
333
What do you mean "evade". If you want the evasion to work like actual evasion, then you will NEED jass.
 

San-D

New Member
Reaction score
15
Yes, but how to tell the computer to move only when the attack misses?

EDIT: Here is exactly what I want - a custom ability based on EVASION. Lets say it has 1 level. there is 30% miss chance - a footman attacks the hero. first hit is landed- hero -10 HP.The next , the hero evades (30% speak up), a "miss" floating text appears above footmen. in that instant, move the hero to a random location within a rgeion. If the footman lands a hit - nothing happens, if the footman misses-move instantly!!!
 

Goober4473

TH.net Regular
Reaction score
7
I just made an ability almost exactly like this, but the unit will teleport regardless of weather or not it actually evaded, and it's an active ability. The problem is, after a unit is moved by a trigger, it stops and cancels any order it had. I'm considering making it 100% evasion, and explaining that the flickering is disorienting, and may cause a unit to stop its current action.

What I would suggest is copy evasion, and set it up how you want with percentage and levels, then have a trigger with the event that a unit learns an ability, and the condition that it's the ability learned is your evasion. Add the unit to a unit group. Then when you have a "unit is attacked" event, check to see if the attacked unit is in the group. The thing I'm not sure is how do you detect if the attacked was evaded?

Also, suggestion: Give the unit blink or the equivalent too, or give the player a zeplin, unless you want it getting stuck on the other side of a wall or up a cliff.
 

San-D

New Member
Reaction score
15
1. No walls or "stuckable" terrain on that map
2. You still don't understnd the concept (exept for the guy 1 post up)
Look my post before this one fo "detailed info"
 

MoonSlinger

I Love using Cheap Tricks... only Results matters
Reaction score
74
First,
passive skills like critical or evasion do not get detected as "casting ability"

Back to your question:
There are 2 ways of working for your case:

Method 1
You detect when your unit takes damage, and do a random check, if it passes, adjust the HP to avoid the damage and do your dance. One problem with this, spells are also treated as damage.

You need is 2 triggers. The first one adds the Unit/Hero to the event of the second:

Trigger 1
E- Unit learns a skill
C- Skill learn = dance of shadows
A-
Add to Trigger 2, event: (Triggering unit takes damage)

Trigger 2
E- <nothing>
C- (Random number between 1-100) less then X //The X is the % evasion you want
A-
set Life of triggering unit = Life of triggering unit + damage taken
move triggering unit instantly to random location within region
display "Miss"


Method 2
Stop the attack before damage is dealt. So if you avoid, the attacker would be forced to "Stop" and no damage would be dealt.

E- Unit is attacked
C- Attacked Unit has ability dance of shadow
C - (Random number between 1-100) less then X //The X is the % evasion you want
A-
Order attacking unit to "Stop"
Animation - attacking unit plays attack animation << optional
move attacked unit instantly to random location within region
display "Miss"
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top