1) Use the "Unit - Replace" trigger whenever your hero casts the spell summon bear.
Replace the summoned bear with a new unit you have created that is based off of a normal unit like forexample footman.
You can see how it is done in this map:
http://www.epicwar.com/maps/56184/
For each gate you have 2 buildings, 1 building where the gate is open, 1 building where the gate is closed.
Then you have 1 morph ability that morphs between those 2 buildings, closing and opening the gate.
Temp_Group is the name of a unit-group variable.
In world editor press F4 to open Trigger Editor.
In Trigger Editor press crtl+B to open variables.
In variables press crtl+N to create a new variable.
Variable name: Temp_Group
Variable type: Unit Group
Press OK
Should work now
I found a method now if anyone else is interested:
Events
Unit - A unit Is issued an order with no target
Conditions
((Ordered unit) is A structure) Equal to True
(Unit-type of (Ordered unit)) Not equal to Altar of Kings
(Unit-type of (Ordered...
Thanks, but don't work.
Because triggering unit = Barracks ( or building training the unit ).
I need to get the unit-type of the unit trained by the building before training is finished.
Iam sure there is a custom script which makes this possible.
Set Temp_Group = Units of type Farm matching (Matching Unit) belongs to (Picked Player) equal to true
^^Is this possible to make?? In my world editor I don't have the option "Units of Type Matching Condition".
Here is how I would do it:
Trigger
Events
Time - Every 20.00...
I want a unit to in some cases be trained instantly, but Iam missing 2 triggers that are not in the world editor!!!
Main Question:
Do you know how I can make it so that a unit is trained instantly the secound I click to train that unit?
Do you know any ways to recognize "training unit"...