• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Wind Walk is canceled-now do actions, how??

Status
Not open for further replies.
Level 13
Joined
Mar 4, 2009
Messages
1,156
what im trying to do is that when unit has wind walk and if he attack or casts a spell that i can do action

i tried with this trigger but its not working good

  • WW BRAK
    • Events
      • Unit - A unit Is issued an order with no target
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • ((Triggering unit) has buff Wind Walk) Equal to True
    • Actions
      • Wait 0.22 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) has buff Wind Walk) Not equal to True
        • Then - Actions
          • Game - Display to (All players) the text:Wind Walk canceled.....
        • Else - Actions
events
Unit - A unit Is attacked (while he has Wind Walk buff)
Unit - A unit start effect of an ability (while he has Wind Walk buff)
Unit - A unit cancels casting an ability (ability being cast equal to Wind walk)
are not working :ugly: (Blizzard´s trigger removes the wind walk buff before my trigger and condition (attacking unit has buff Wind Walk) is not working than)
 
You can run a periodic event of whether your unit has this Wind Walk buff or not.
E.g.
  • Trigger1
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • Ability being cast Equal to Wind Walk
  • Actions
    • Set Caster1 = (Triggering unit)
    • Trigger - Turn on Trigger2 <gen>
  • Trigger2
  • Events
    • Time - Every 1.00 second of game-time
  • Conditions
  • Actions
    • If/ Then/ Else
      • If (Conditions)
        • (Caster1) has buff Wind Walk Equal to False
      • Then (Actions)
        • Trigger - Turn off this trigger
        • Set Caster1 = No unit
        • (Rest actions here)
        • ...
      • Else (Actions)
 
Level 13
Joined
Mar 4, 2009
Messages
1,156
You can run a periodic event of whether your unit has this Wind Walk buff or not.
E.g.
  • Trigger1
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • Ability being cast Equal to Wind Walk
  • Actions
    • Set Caster1 = (Triggering unit)
    • Trigger - Turn on Trigger2 <gen>
  • Trigger2
  • Events
    • Time - Every 1.00 second of game-time
  • Conditions
  • Actions
    • If/ Then/ Else
      • If (Conditions)
        • (Caster1) has buff Wind Walk Equal to False
      • Then (Actions)
        • Trigger - Turn off this trigger
        • Set Caster1 = No unit
        • (Rest actions here)
        • ...
      • Else (Actions)
Good if you don´t have a lot of units
thx you gived me an idea :grin:

i need condition
issued order equal to <cast spell>
(but i don´t know is it <cast spell>)
and i need issued order equal to attack

than i could
wait for conditon Caster1 has buff of type Wind Walk not Equal to true checking every 0.20 seconds
 
Hm, why not following my trigger? Yours instantly turns any hope for MUI enhancement into a NO. Wait till condition, no mate, try for the best effect with the same "pain". The one i gave you can be turned into MUI. The wait you use won't do the trick. Anyway, if you are so stubborn, don't use "A unit is issued an order" event, just have the starts the effect of an ability. Or, you can use the "Wait (Level of Wind Walk for (Triggering unit) * (X))" X = The base wind walk duration, e.g. for a duration of 15/30/45/60, this will go "Wait (((Level of (Wind Walk) for (Triggering unit)) * (15))". By the time the duration ends, the unit will no longer have the buff, unless you wanna add 1 more second to make sure it doesn't have the buff, e.g. "Wait (((Level of (Wind Walk) for (Triggering unit)) * (15)) + 1)"
 
Level 12
Joined
Mar 26, 2005
Messages
790
what im trying to do is that when unit has wind walk and if he attack or casts a spell that i can do action

i tried with this trigger but its not working good

  • WW BRAK
    • Events
      • Unit - A unit Is issued an order with no target
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • ((Triggering unit) has buff Wind Walk) Equal to True
    • Actions
      • Wait 0.22 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) has buff Wind Walk) Not equal to True
        • Then - Actions
          • Game - Display to (All players) the text:Wind Walk canceled.....
        • Else - Actions

of course it is not working good, becouse just when unit goes somewhere, trigger executes.
And of course it executes right then when he just click there, and not when he really atacks.

I would make something like this
Unit is attacked
Attacking unit has BUFF
Game-Display ....

unit begins casting an ability
casting unit has BUFF
Game-Display

I dont know how it is about buff on wind walk, but it can works
 
Level 13
Joined
Mar 4, 2009
Messages
1,156
of course it is not working good, becouse just when unit goes somewhere, trigger executes.
And of course it executes right then when he just click there, and not when he really atacks.

I would make something like this
Unit is attacked
Attacking unit has BUFF
Game-Display ....

unit begins casting an ability
casting unit has BUFF
Game-Display

I dont know how it is about buff on wind walk, but it can works
i said already,it cant work (Blizzard´s trigger removes buff faster)
 
Level 12
Joined
Mar 26, 2005
Messages
790
moment, and if you give to unit another buff?

I dont know, like if he cast wind walk, make dummy, and issue it to cast some "none doing spell" with buff on him, and then check if he has this second buff
 
Level 13
Joined
Mar 4, 2009
Messages
1,156
moment, and if you give to unit another buff?

I dont know, like if he cast wind walk, make dummy, and issue it to cast some "none doing spell" with buff on him, and then check if he has this second buff
i already made something like that but i will give you rap anyway

needed 3 triggers but works nice

WW BREAK is bonus life gain (+0)

  • WW START
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Wind Stealth
    • Actions
      • Unit - Add <WW BREAK> to (Casting unit)
  • WW BRAK CAST
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Not equal to Wind Stealth
      • (Level of <WW BREAK> for (Casting unit)) Equal to 1
    • Actions
  • WW BRAK ATT
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Level of <WW BREAK> for (Attacking unit)) Equal to 1
    • Actions
-Thread solved
 
Level 12
Joined
Mar 26, 2005
Messages
790
i already made something like that but i will give you rap anyway

needed 3 triggers but works nice

WW BREAK is bonus life gain (+0)

  • WW START
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Wind Stealth
    • Actions
      • Unit - Add <WW BREAK> to (Casting unit)
  • WW BRAK CAST
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Not equal to Wind Stealth
      • (Level of <WW BREAK> for (Casting unit)) Equal to 1
    • Actions
  • WW BRAK ATT
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Level of <WW BREAK> for (Attacking unit)) Equal to 1
    • Actions
-Thread solved

i dont need rap, I hate rap, rock is better

but i thing this will bug

where do you have that the WW BREAK will dissapear when Windwalk ends?
 
Level 13
Joined
Nov 4, 2006
Messages
1,239
  • add to windwalkgroup
    • Events
      • Unit - A unit starts the Effect of an ability
    • Conditions
      • Ability being cast equal to windwalk
    • Actions
      • Unit Group - Add (Triggering unit) to windwalkgroup
      • Wait 19.99 seconds (duration of windwalk -0.01)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Conditions
          • ((Triggering unit) has buff windwalk) Gleich True
        • 'THEN'-Actions
          • Einheitengruppe - Remove (Triggering unit) from windwalkgroup
        • 'ELSE'-Actions

  • windwalk cancel
    • Events
      • Unit - A unit is being attacked
    • Conditions
      • ((Attacking unit) is in windwalkgroup) Gleich True
    • Actions
      • Unit Group - Remove (Attacking unit) from windwalkgroup
      • -------- put your actions here --------
i didn't test it though, but i guess it's what you want

Edit: just saw it, when your WW has unlimited duration, you don't need the wait and the if/then/else in the first trigger
 
Status
Not open for further replies.
Top