Hello,
The trigger below works fine but i have a problem with it. But let me shortly explain. The Trigger is for my Unit "MinerGuild". The Idea is that you can send your basic workers (MinerBrigade) into that Minerguild to upgrade them to better Workers if you have the money or they get kicked out if you dont have the money. The Minerguild has the loading ability of the Goblin Zeppelin.
Now i want that the Trigger shall start first if 2 basic worker joined the guildhouse (loaded ability). 2 MinerBrigade for 1 Work Carriage. Right now its 1 for 1 and i dont like that. Maybe someone knows a solution.
The trigger below works fine but i have a problem with it. But let me shortly explain. The Trigger is for my Unit "MinerGuild". The Idea is that you can send your basic workers (MinerBrigade) into that Minerguild to upgrade them to better Workers if you have the money or they get kicked out if you dont have the money. The Minerguild has the loading ability of the Goblin Zeppelin.
Now i want that the Trigger shall start first if 2 basic worker joined the guildhouse (loaded ability). 2 MinerBrigade for 1 Work Carriage. Right now its 1 for 1 and i dont like that. Maybe someone knows a solution.
-
Joining the Guildhouse
-
Events
-
Unit - A unit Is loaded into a transport
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to MinerBrigade
-
(Unit-type of (Transporting unit)) Equal to Miner-Guild
-
-
Actions
-
-------- Here begins a short "Story". Not necessary for the trigger --------
-
Unit - Pause (Transporting unit)
-
Game - Display to (Player group((Owner of (Triggering unit)))) the text: Workers take place ...
-
Wait 8.00 seconds
-
Game - Display to (Player group((Owner of (Triggering unit)))) the text: heated debates abou...
-
Wait 8.00 seconds
-
Game - Display to (Player group((Owner of (Triggering unit)))) the text: You are trying to s...
-
Wait 8.00 seconds
-
Game - Display to (Player group((Owner of (Triggering unit)))) the text: But the worker are ...
-
Wait 4.00 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Triggering unit)) Current lumber) Greater than or equal to 75
-
-
Then - Actions
-
-------- If you got the Money. (Lumber is money in my map) --------
-
Player - Set (Owner of (Triggering unit)).Current lumber to (((Owner of (Triggering unit)) Current lumber) - 75)
-
Game - Display to (Player group((Owner of (Triggering unit)))) the text: You are forced to a...
-
Wait 2.50 seconds
-
Set VariableSet MinerTradeLoc = (Position of (Triggering unit))
-
Unit - Remove (Triggering unit) from the game
-
Unit - Create 1 Work Carriage for (Owner of (Triggering unit)) at MinerTradeLoc facing Default building facing degrees
-
Unit - Unpause (Transporting unit)
-
Custom script: call RemoveLocation(udg_MinerTradeLoc)
-
-
Else - Actions
-
-------- If you dont got the money --------
-
Wait 2.50 seconds
-
Game - Display to (Player group((Owner of (Triggering unit)))) the text: No agreement was re...
-
Unit - Unpause (Transporting unit)
-
Unit - Order (Transporting unit) to Unload (Triggering unit)
-
-
-
-