• 0

    posted a message on Replacing all units of a type

    @HandLMaps: Go

    This would work, except for the fact that I cannot specify the original tower selection. I cant find any way of specifying "Select X tower" without player input.

    Posted in: Galaxy Scripting
  • 0

    posted a message on Replacing all units of a type

    Gentlemen and/or ladies:

    I am working on a tower defense map where the creeps actually attack, so I want built towers to respawn at the start of every round. The best way I have figured out how to do this is to have 3 "towers" per type of tower. One is a "plan", that the builder builds. When the round starts, the "plan" is replaced with the real building. When the real building is destroyed, it is replaced by an invisible copy (hopefully with no footprint to prevent weird pathing issues, havent figured out how to do that yet). At the end of the round, the invisible copy is replaced by the plan again, so it will respawn for the next round.

    I added a "Replace" action on a trigger, and while it lets me choose what X will be replaced with, I can find no way of specifying X as "All bunker plan towers", for example. Every option seems to rely on "triggering unit", of which there wont be any, since the trigger is the start of the round.

    Thanks in advance.

    Posted in: Galaxy Scripting
  • To post a comment, please or register a new account.