- Joined
- Apr 17, 2009
- Messages
- 3,572
Hey Guys,
I'm working on a Jungle Survivor map.
I have made a tent, you can construct with an item in your inventory.
The tent has the ability of the Orc house, so units can enter the tent.
Now I wanted the units to have increased life points regeneration when they enter the tent, so I made a trigger, with which I add the "Ring of Regeneration - Ability", when they get loaded in the tent.
All works fine, but then I tried to make a trigger, that removes the ability when they leave the tent (left click on the icon of the unit in the tent).
But I couldn't find any actions that can detect if a unit leaves the tent (or gets unloaded).
I already tried "A unit enters Playable Map Area", but it doesn't work.
I also tried this:
Without succes.
Please help me!
+2 rep for every useful help and credits for the one who solves my problem.
I'm working on a Jungle Survivor map.
I have made a tent, you can construct with an item in your inventory.
The tent has the ability of the Orc house, so units can enter the tent.
Now I wanted the units to have increased life points regeneration when they enter the tent, so I made a trigger, with which I add the "Ring of Regeneration - Ability", when they get loaded in the tent.
-
Healing Inside Tent Activate
-
Ereignisse
-
Einheit - A unit Wird in einen Transporter geladen.
-
-
Bedingungen
-
Aktionen
-
Set HealingInsideTent_Unit = (Triggering unit)
-
Einheit - Add Healing (Inside the Tent) to (Triggering unit)
-
-
All works fine, but then I tried to make a trigger, that removes the ability when they leave the tent (left click on the icon of the unit in the tent).
But I couldn't find any actions that can detect if a unit leaves the tent (or gets unloaded).
I already tried "A unit enters Playable Map Area", but it doesn't work.
I also tried this:
-
Healing Inside Tent Deactivate
-
Ereignisse
-
Einheit - A unit Erhält einen Befehl ohne Ziel
-
-
Bedingungen
-
(Issued order) Gleich (Order(unload))
-
-
Aktionen
-
Einheit - Remove Healing (Inside the Tent) from HealingInsideTent_Unit
-
-
Without succes.
Please help me!
+2 rep for every useful help and credits for the one who solves my problem.