• 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] Attack

Status
Not open for further replies.
Level 12
Joined
Apr 27, 2008
Messages
1,228
There are several orb items in the game already.
They have orb abilities. Those abilities enable attacks. For instance attack 2.
Make your unit. Set up its stats and set the attacks enabled to none.
Then make the ability and set the attacks enabled to attack 1.
Done.
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
For instance Orb of lightning.
It is an item present in melee games.
By default it enables attack 2 of the unit that has it. In melee games that is an attack that can target air units.

Now, if you make an ability based on that, but it enables attack 1. Then make an item and add that ability to it.
Then make a unit(unless you already have one) and in the Object editor go to the unit, the field that says Attacks Enabled and set it to none.

And that is about it.
Or you can do it with triggers, but this is far simpler.
 
Last edited:
Just for the case that this isn't working...

  • E: A unit is attacked
  • C: <Attacking Unit> has not <your item>
  • A: Order <Attacking Unit> to <stop>
Should work ;)

the buffer delay in wc3 by default is .25 seconds and as such this will cause a loop (and a funny animation) by any unit that attacks without the item, if there are only a few units this will be okay, but for an RTS style game this will mess plenty up (units wont be able to run away unless told to)
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
Hm I am not sure, as I never really used those orb skills :D

The orb abilities modify the missile art.
But I am not certain if they will modify the art of attack 1. I am certain they will for attack 2. But there is no way to change the animation with them.
Though if the model your unit has the proper animations, you can make a trigger like this:
A unit is attacked
Play Attacker's alternative animation

Edit:
YO, 1000 post :p
 
Status
Not open for further replies.
Top