- Joined
- May 20, 2009
- Messages
- 822
I wonder how well this can be pulled off.
So far, this is what I have:
Use a copy of Charge Gold & Lumber, set all the UI stuff to look like it's the "Build Exit" button.
When the order goes out for Charge Gold/Lumber, reset the players gold and add a Build Tiny Building ability to the structure, and then Force UI Key for the hotkey for it.
When the order goes out for the Build Tiny Building, subtract the gold again.
That's just to build it, though. For it to work with Multiple exits, I figured I'd determine the units loaded into the Main Tunnel building, and whenever an exit that is linked to the building, via indexing, is ordered to "Unload" units with a Channel copy, it'll unload the units from the main tunnels cargo hold and teleport them to the exit that issued the first unload order.
But to link the two units together, I don't know...
So far, this is what I have:
Use a copy of Charge Gold & Lumber, set all the UI stuff to look like it's the "Build Exit" button.
When the order goes out for Charge Gold/Lumber, reset the players gold and add a Build Tiny Building ability to the structure, and then Force UI Key for the hotkey for it.
When the order goes out for the Build Tiny Building, subtract the gold again.
That's just to build it, though. For it to work with Multiple exits, I figured I'd determine the units loaded into the Main Tunnel building, and whenever an exit that is linked to the building, via indexing, is ordered to "Unload" units with a Channel copy, it'll unload the units from the main tunnels cargo hold and teleport them to the exit that issued the first unload order.
But to link the two units together, I don't know...
Last edited: