• 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] How can this be so stupid...

Status
Not open for further replies.
Level 22
Joined
Feb 4, 2005
Messages
3,971
All I wanted was to make after a creep/passive except for the 2 types of farmer dies, to be animated. The dumb dummy doesn't want to cast...



I made the dummy visible and it appears at the position of the dying unit. I set the dummy: attacks disabled, invulnerable, movement (not set to 0 but it didn't move to cancel it), hp regen: -3 with hit points 12, I tried with 1000 hp, so that it doesn't die and still won't cast.

I'm using the same dummy for another order - archimond - dark portal in another trigger and it casts it. This is simple and doesn't work...

Animate Dead: number of corpses: 1; aoe, cast range and duration hero/unit: 100000, cooldown: 0, mana cost: 0; Targets allowed, buff : default

It used to work when I did E: unit dies, A: 'Pick every unit in entire map and if (all these conditions) + dying unit = picked unit --> same actions. Now it doesn't work.

And yes the dummy has the ability, I didn't miss to add it. If I do it manually, it casts, so tehre are no problem with the ability, it does it the way I want but the stupid command doesn't work. I kill 2 gnolls and if I click on the 1st dummy that appears it animates the 1st, then if I click the 2nd dummy that appears, it animates the 2nd, but it won't cast automatically...
 
Level 23
Joined
Nov 29, 2006
Messages
2,482
Looking at all the facts you tell, there shouldn't be any problem as far as I can see.

Oh wait... I know why

When a unit is dying, the event is played. But! A dying unit leaves only a corpse after its death animation (which is between 1-4 seconds normally). So basically it works since you trigger it yourself. It takes some time for you to pess the button right?

Dark Portal is not requiring this:p
 
Level 22
Joined
Feb 4, 2005
Messages
3,971
Yes but if I click the ability myself, the animated appears almost immediately. I actually tried using wait XX secodns before the command, I also tried adding 3 second casting time (without action Wait XX seconds) but there is no difference. Could someone make it work and even upload a map with it here, I will try it later and whoever makes it work will get some +rep points. Thx.
 
Level 23
Joined
Nov 29, 2006
Messages
2,482
Why not skip using the animate dead ability. If now, the duration of the summon is 100000 I suppose you want it to stay alive.
I can do a custom "animate dead" like trigger if you wish to. Will that due??

Edit: I couldn't wait for your approval so I did one anyways:p

  • Animate Dead
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A structure) Equal to False
      • ((Owner of (Triggering unit)) Equal to Neutral Hostile) or ((Owner of (Triggering unit)) Equal to Neutral Passive)
      • (Unit-type of (Triggering unit)) Not equal to Villager (Male)
      • (Unit-type of (Triggering unit)) Not equal to Villager (Male 2)
      • ((Triggering unit) is Mechanical) Equal to False
    • Actions
      • Wait 3.00 seconds
      • Set AnimateDead_Point = (Position of (Triggering unit))
      • Special Effect - Create a special effect at AnimateDead_Point using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
      • Special Effect - Destroy (Last created special effect)
      • Unit - Create 1 (Unit-type of (Triggering unit)) for Player 9 (Gray) at AnimateDead_Point facing (Facing of (Triggering unit)) degrees
      • Unit - Remove (Triggering unit) from the game
      • Animation - Change (Last created unit)'s vertex coloring to (100.00%, 25.00%, 25.00%) with 0.00% transparency
      • Unit - Make (Last created unit) Explode on death
      • Custom script: call RemoveLocation(udg_AnimateDead_Point)
[highlight]Make sure that "Automatically create unknown values" is marked in the world editor preferences window[/code]

Here is the trigger in a map for easy copy 'n paste
And well, just change the wait/color/things (shouldnt be neccessary), for your own needs. If you don't want the corpse to explode on death, just remove that action. Simply add expiration timer/invulerability on the unit if you want too as well...

/regards
 

Attachments

  • AnimateDead_trigger.w3x
    16.8 KB · Views: 39
Last edited:
Level 22
Joined
Feb 4, 2005
Messages
3,971
Sure, if it could be done. However, I would like it to have all the features an animated unit has: In my ability I selected NOT to be invulnerable. I want it also: to have reddish color, to have an endless duration, to explode on death. I don't know what other features the animated units have. But I thought fixing my simple triggers would be better. I might still try at the end of the day to use the Pick every unit and try to fix my ability but if it doesn't I'll be with the one you made. I still think if my trigger could be made to work, it would be the best.
-----------------------------------------------


EDIT


Sorry, didn't know you did it now. I will try it later and give you rep points also reply to say if it is ok. Thx in advance.
 
Last edited:
Level 22
Joined
Feb 4, 2005
Messages
3,971
I tried again with pick every unit and again didn't work. Your triggers though do it best and without the need of a dumb unit. Thanks!
reputation_0.5pos.gif
 
Status
Not open for further replies.
Top