• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Bladestorm spell

Status
Not open for further replies.
Level 25
Joined
Mar 23, 2008
Messages
1,813
Hey, ive done this spell for a m8, first i did it when the unit was attacked, but he wanted it to do when the unit attacked and when ive changed it inte when the unit attacking, it aint working, can someone tell me whats the prob?

Heres the learning bit:
  • Events
    • Unit - A unit Learns a skill
  • Conditions
    • (Learned Hero Skill) Equal to Passive Bladestorm Learn
  • Actions
    • Trigger - Run Learned <gen> (ignoring conditions)
And heres the action:
  • Events
    • Time - Every 0.10 seconds of game time
    • Unit - A unit Is attacked
  • Conditions
    • (Unit-type of (Attacking unit)) Equal to Blademaster
  • Actions
    • Unit - Add Bladestorm to (Attacking unit)
    • Unit - Order (Attacking unit) to Orc Blademaster - Bladestorm
    • Trigger - Turn off (This trigger)
    • Wait 5.00 seconds
    • Trigger - Run (This trigger) (checking conditions)
 
Level 25
Joined
Mar 23, 2008
Messages
1,813
Well heres the trigger when it triggered by the unit was attacked:

  • Events
    • Unit - A unit Learns a skill
  • Conditions
    • (Learned Hero Skill) Equal to Passive Bladestorm Learn
  • Actions
    • Trigger - Run Learned <gen> (ignoring conditions)
  • Events
    • Time - Every 0.10 seconds of game time
    • Unit - A unit Is attacked
  • Conditions
    • (Unit-type of (Attacked unit)) Equal to Blademaster
  • Actions
    • Unit - Add Bladestorm to (Attacked unit)
    • Unit - Order (Attacked unit) to Orc Blademaster - Bladestorm
    • Trigger - Turn off (This trigger)
    • Wait 5.00 seconds
    • Trigger - Run (This trigger) (checking conditions)
This works completly fine, but if i remove the interval stuff, it doesnt, so i dont know how to fix it without it.
 
Level 5
Joined
Aug 27, 2007
Messages
138
Event responses don't run when you "Run" the trigger. Those only happen when a unit fires the event that causes the trigger to run.

In other words, when you run the trigger, there's no unit being atttacked, no attacking being done, and therefore there will be no attacking unit. Instead of running the trigger, turn it on instead. It should be off by default.

The periodic event is not necessary. Every 10 seconds, this will fire, but there's no attacking unit, so nothing will happen.

Also, you're using attacked unit, where you should use attacking unit.

Try this:

  • Events
  • Unit - A unit Is attacked
  • Conditions
  • (Unit-type of (Attacking unit)) Equal to Blademaster
  • Level of (your passive spell) for (Attacking unit) Greater than or equal to 1
  • Actions
  • Unit - Add Bladestorm to (Attacking unit)
  • Unit - Order (Attacking unit) to Orc Blademaster - Bladestorm
  • Trigger - Turn off (This trigger)
  • Wait 5.00 seconds
  • Trigger - Turn on (This trigger)
As I mentioned in the other thread, it really would be better if you played the blademaster's spin animation so you wouldn't have to worry about any abilities at all.
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
no, it does NOT work "completly fine"(about fagge's trigger).
The whole Unit - Add Bladestorm to (Attacking unit) is rather bad to be done, since you never remove it.
 
Level 21
Joined
Aug 9, 2006
Messages
2,384
The right spell is attached, you can change in the condition the attacked to attacking if you want, it will work too, and my trigger is 100 times more efficient my friend, good luck on your way to a mapmaker.

Nvm, dont change attacked to attacking, it will cause an bug, you need a other way, if you want i can do that way for you too.
 

Attachments

  • Bladestorm.w3x
    17 KB · Views: 93
Level 25
Joined
Mar 23, 2008
Messages
1,813
I dont think this ever occured on my map, but im not sure, with your spell, i can use it whenever i want. About one sec after he is attacked :/ And thats not good.. Can you fix that? And plz be nice and do a attacking too :). And one last: Why is the icon an evasion icon? :O
-----------------------------
Edit: You dont need to do an attacking, i got it working by myself, but still i can use the bladestorm and i cant have it like that :p
 
Last edited:
Level 12
Joined
Apr 27, 2008
Messages
1,228
Einstein, try changing the icon of the ability you want, and not something else.
P.s. Can you even see the difference between a unit and a hero ability?
 
Status
Not open for further replies.
Top