• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Windwalk required spell

Status
Not open for further replies.
Level 6
Joined
Jul 22, 2009
Messages
214
SOLVED


I want to create a spell that can only be casted if the unit is under the effects of windwalk ability but I absolutly don't know how to do this. I've tried to do something like

  • Spell
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • ((Casting unit) has buff Wind Walk) Equal to True
          • (Ability being cast) Equal to Shadow Strike
    • Actions
But when It remove the buff before casting the spell.

I will very appreciate if someone can help me.

EDIT: Can you test it before reply a theory about this.
 
Last edited:
Level 10
Joined
Dec 12, 2010
Messages
569
It removes the Wind Walk buff before the spell is casted because when you cast a spell and you are "Wind Walking", the Wind Walk buff is removed. Attacking or casting a spell will cancel Wind Walk.

However, you could try using the Event:

Unit - A unit begins casting an ability

instead. That might work.
 
Level 6
Joined
Jul 22, 2009
Messages
214
Well, that is kind of rude, saying that to me like I'm not going to read it. Could have just said it doesn't work.

Sorry if you take it like this, but what you said me to do doesn't work, so I'm juste asking if someone(you can be a part of this someone) have a better idea
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
  • test
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(berserk))
      • ((Triggering unit) has buff Wind Walk) Equal to True
    • Actions
      • Game - Display to (All players) the text: Windwalk
      • Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
Use that event, detect the order, do the actions. I believe the order you want to detect is shadowstrike.
 
Level 6
Joined
Jul 22, 2009
Messages
214
Thanks chobibo.

If someone want to know how it's work check the attached map
 

Attachments

  • spellTEST.w3x
    10.8 KB · Views: 51
Status
Not open for further replies.
Top