- Joined
- May 2, 2016
- Messages
- 9
Housing automatic upgrade system (Complicated problem) NEED HELP!
I am currently working on a city construction game style. For now, I want to upgrade my houses automatically every amount of times.
For example, if I build a tent (the first tier of housing), the tent will be replaced with a fortified tent, 60 seconds later. This is easily done. Then, I want the fortified tent to automatically be replaced with a house after another 60 second. The complicated thing is this: I want to replace this specific building that the worker has build, but I can only see this trigger to do this: Replace last replaced unit for a house.
If I build only one tent, this system work perfectly fine. But..
The problem with this is if I build many tent, the trigger will only replace the last replaced unit, so only the last tent that has been replaced into a fortified tent will be replaced into a house. All the other fortified tent will never be replaced into a house automatically since the trigger only replace the last replaced unit.
I didn't find any solution yet. Please help me out!
Currently, here is my trigger:
I am currently working on a city construction game style. For now, I want to upgrade my houses automatically every amount of times.
For example, if I build a tent (the first tier of housing), the tent will be replaced with a fortified tent, 60 seconds later. This is easily done. Then, I want the fortified tent to automatically be replaced with a house after another 60 second. The complicated thing is this: I want to replace this specific building that the worker has build, but I can only see this trigger to do this: Replace last replaced unit for a house.
If I build only one tent, this system work perfectly fine. But..
The problem with this is if I build many tent, the trigger will only replace the last replaced unit, so only the last tent that has been replaced into a fortified tent will be replaced into a house. All the other fortified tent will never be replaced into a house automatically since the trigger only replace the last replaced unit.
I didn't find any solution yet. Please help me out!
Currently, here is my trigger:
-
Events
-
Unit - A unit Finishes construction
-
Conditions
-
(Unit-type of (Constructed structure)) Equal to Tent
-
-
Actions
-
Wait 60.00 seconds
-
Unit - Replace (Constructed structure) with a Fortified Tent using The new unit's default life and mana
-
Special Effect - Create a special effect at (Position of (Constructed structure)) using Abilities\Spells\Other\Awaken\Awaken.mdl
-
Wait 90.00 seconds
-
Unit - Replace (Last replaced unit) with a Small Farm using The new unit's default life and mana
-
Special Effect - Create a special effect at (Position of (Constructed structure)) using Abilities\Spells\Other\Awaken\Awaken.mdl
-
-
Last edited: