- Joined
- Feb 27, 2009
- Messages
- 115
Bizarrely, I haven't figured out a solution to the simple problem of swapping one building out with another. As for units, it is easily done. But buildings? I can't get it to work.
I'm trying to change the towers based on someone's research. So if you research Y, the towers go from guard towers to something like cannon towers.
I have tried the direct approach of Replace Unit to each of the towers. But the game ignores this.
I have been successful in making it change with this type of trigger:
Event: Unit (X Tower) comes in 9999999 range of another unit (some indestructible I have in the map)
Condition: Whatever
Action: Replace Triggering Unit with Y Tower.
This trigger only works when the map initializes. However, if I turn it on later it does not work. Why? I have no idea.
I have no idea what DOES work which is very frustrating.
Do you have any ideas? What trigger should I be using to swap buildings in mid-game?
I'm trying to change the towers based on someone's research. So if you research Y, the towers go from guard towers to something like cannon towers.
I have tried the direct approach of Replace Unit to each of the towers. But the game ignores this.
I have been successful in making it change with this type of trigger:
Event: Unit (X Tower) comes in 9999999 range of another unit (some indestructible I have in the map)
Condition: Whatever
Action: Replace Triggering Unit with Y Tower.
This trigger only works when the map initializes. However, if I turn it on later it does not work. Why? I have no idea.
I have no idea what DOES work which is very frustrating.
Do you have any ideas? What trigger should I be using to swap buildings in mid-game?