Hello! I have had an issue with the world editor. I am trying to create a trigger where upon the death of a unit, a peasant in a region is created and will construct a barracks. I was able to create the peasant without an issue, but I cannot figure out how to order him to begin constructing a barracks. Is this possible? If so, how? Here is my current trigger:
Cruel Warden Death
Events
Unit - Cruel Warden (Default) 0017 <gen> Dies
Conditions
Actions
Destructible - Kill Cage 0001 <gen>
Unit - Create 1 Gary the Peasant for Player 6 (Orange) at (Center of Cage Region 1 <gen>) facing Default building facing degrees
Cinematic - Send transmission to (All players) from a Player 1 (Red).Peasant named Gary the Peasant at (Center of Cage Region 1 <gen>): Play No sound and display Thank you for freei.... Modify duration: Add 0.00 seconds and Wait
Player - Add 500 to Player 6 (Orange).Current gold
Player - Add 200 to Player 6 (Orange).Current lumber
Unit - Order (Last created unit) to build a Barracks at (Center of Barracks Region <gen>)
Cruel Warden Death
Events
Unit - Cruel Warden (Default) 0017 <gen> Dies
Conditions
Actions
Destructible - Kill Cage 0001 <gen>
Unit - Create 1 Gary the Peasant for Player 6 (Orange) at (Center of Cage Region 1 <gen>) facing Default building facing degrees
Cinematic - Send transmission to (All players) from a Player 1 (Red).Peasant named Gary the Peasant at (Center of Cage Region 1 <gen>): Play No sound and display Thank you for freei.... Modify duration: Add 0.00 seconds and Wait
Player - Add 500 to Player 6 (Orange).Current gold
Player - Add 200 to Player 6 (Orange).Current lumber
Unit - Order (Last created unit) to build a Barracks at (Center of Barracks Region <gen>)