I've done it! Evasive Strikes one little problem left...

  • Thread starter Thread starter Ruination
  • Start date Start date
R

Ruination

Guest
So I've made an ability with a chance to blink behind an enemy and you know...tear it a new one. One little detail remains, and that is that I don't want him doing more than one of these at a time, so that the animations are cut short. I want to limit it so that it isn't triggered again while the animation for the current one is still playing. How can I do that?

Here's the trigger...and thanks.

Code:
Evasive Strikes
    Events
        Unit - A unit Is attacked
    Conditions
        (Random integer number between 1 and 20) Less than or equal to 1
    Actions
        Set EvadedTarget = (Attacking unit)
        Set EvasiveStriker = (Attacked unit)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Evasive Strikes [evasion] for EvasiveStriker) Equal to 1
            Then - Actions
                Wait 0.10 seconds
                Unit - Pause EvasiveStriker
                Unit - Pause EvadedTarget
                Unit - Add Evasion Strikes Crit and Evade  to EvasiveStriker
                Unit - Set Level of Evasion Strikes Crit and Evade  for EvasiveStriker to (Level of Evasive Strikes [evasion] for EvasiveStriker)
                Special Effect - Create a special effect attached to the origin of EvasiveStriker using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
                Unit - Move EvasiveStriker instantly to ((Position of EvadedTarget) offset by 90.00 towards ((Facing of EvadedTarget) - 180.00) degrees), facing (Position of EvadedTarget)
                Animation - Play EvasiveStriker's attack slam animation
                Wait 0.70 seconds
                Unit - Order (Attacked unit) to damage (Attacking unit) for 1000.00 using attack type Hero and damage type Universal.
                Special Effect - Create a special effect attached to the origin of EvadedTarget using Objects\Spawnmodels\Human\HumanBlood\HumanBloodLarge0.mdl
                Unit - Remove Evasion Strikes Crit and Evade  from EvasiveStriker
                Unit - Unpause EvadedTarget
                Unit - Unpause EvasiveStriker
                Animation - Reset EvasiveStriker's animation
            Else - Actions
                Do nothing
 
Trigger - Turn off (This trigger)
Wait (Game-Time) 3 seconds*Cooldown*
Trigger - Turn on (This trigger)

Add those to the end of the ability trigger :P
 
Brilliant once again Rad, ty.

Okay one LAST problem now. It would seem that the blink effect is playing but my hero isn't moving. Quite a lot its doing this actually. Its not when a unit dies either, in case it was because he wanted to move behind something that stopped attacking him that moment--thats not the case. It is working every few seconds as it should, but in between its showing several blink effects and adding the crit/evade ability, but my hero isn't being moved behind any targets. Why is this happening?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top