• 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.

why is only 1 unit reviving ?

Status
Not open for further replies.
Level 6
Joined
Sep 24, 2015
Messages
174
well, somebody helped me with this trigger but somehow it creates only 1 unit and not every unit owned by trigerring player -.-

I don't know where is the probleme...

  • Revive
    • Event
      • Unit - A unit owned by Neutal Hostile Dies
    • Conditions
    • Actions
      • Set tmppt = (Position of (Triggering unit))
      • Unit - Create 1 (Unit-type of (Triggering unit)) for (Owner of (Triggering unit)) at tmppt facing Orientation building default degrees
      • Custom script: call RemoveLocation(udg_tmppt)
 
Level 6
Joined
Sep 24, 2015
Messages
174
So I have to replicate this or?

Because i sent this map to dr super good , you have it too ( if you didn't delete it) he tried that trigger, it worked fine for him.

but it works not for me ; hmmm i wonder why :/

Maybe there is aagain a syntax problem when you turn it in JASS.
 
here is the map but please delete it after...

View attachment 149369

I don't see the Revive trigger. What is it under?

The revive trigger you showed above just recreates the unit that died on the spot it died on. Only one unit can obviously trigger this event, so it will only spawn one unit. When you say it only creates 1 unit, do you mean that the event only runs once and stops working, or what I explained?
 
Level 6
Joined
Sep 24, 2015
Messages
174
I don't see the Revive trigger. What is it under?

The revive trigger you showed above just recreates the unit that died on the spot it died on. Only one unit can obviously trigger this event, so it will only spawn one unit. When you say it only creates 1 unit, do you mean that the event only runs once and stops working, or what I explained?

It's in the folder (Gold suppliers)---->revive

I want that if any unit on the map owned by neutral hostile player dies it creates all the time when it dies another one unit of the same type.
 
Level 6
Joined
Sep 24, 2015
Messages
174
And your problem is that it doesn't create them after the trigger ran one time?

Not really it recreates infinitly only for one unit but not for the others and i don't know why...

the trigger works only for one unit.
 
Not really it recreates infinitly only for one unit but not for the others and i don't know why...

the trigger works only for one unit.

Are you sure the units dying are actually owned by Neutral Hostile?

You can also put down some debug messages and have it display the name of the unit dying + the owner of that triggering unit.
 
Level 6
Joined
Sep 24, 2015
Messages
174
Are you sure the units dying are actually owned by Neutral Hostile?

You can also put down some debug messages and have it display the name of the unit dying + the owner of that triggering unit.


also yes they are owned by neutral hostile you can check it on the map by double clicking on them.

And what you mean with debug message, have you got an exemple cause i never did such a thing.
 
Level 6
Joined
Sep 24, 2015
Messages
174
Also i did the debug message and the trigger is runing 1 time for 2 units and endless time for another one...
And the owner is Player 13 for the 3 units.

Why is that happening to me...:goblin_cry:
 
Also i did the debug message and the trigger is runing 1 time for 2 units and endless time for another one...
And the owner is Player 13 for the 3 units.

Why is that happening to me...:goblin_cry:

Welp I found the source of the problem. They were being recreated, but they were just being moved by this trigger.

  • GoldSupplier not blinkable at start
    • Events
      • Unit - A unit enters Gold supplier vamp cannot enter <gen>
    • Conditions
      • (Unit-type of (Entering unit)) Not equal to Gold supplier - small (1/3 gold)
    • Actions
      • Unit - Move (Entering unit) instantly to (Center of Gold supplierand portal builder cant enter <gen>)

The middle coin, which was the coin only appearing to be "recreated," was the only one that actually didn't meet the condition, thus not getting moved.
 
Status
Not open for further replies.
Top