I don't think there's an event for detecting 'creates' or 'replaces', is there? Like my last thread, this is may be easier to understand if you've played Legion TD.
Basically, each round, a set of towers (buildable units) become units that automatically fight for the player, and reset to their positions each round as a building. The process repeats. I'm trying to replicate this same effect by having the units replaced each round using For and If's with unit-type array loops each round.
Anyway, the problem I'm having is upgrading the spells the buildings have (after being replaced) to level 2. I have triggers using the event 'finishes an upgrade' that level up the building spells, but once they're replaced they become level 1.
There are some solutions I could think to this but they all pretty much involve triggering each tower separately, and I'm trying to avoid it. Any suggestions?
Basically, each round, a set of towers (buildable units) become units that automatically fight for the player, and reset to their positions each round as a building. The process repeats. I'm trying to replicate this same effect by having the units replaced each round using For and If's with unit-type array loops each round.
Anyway, the problem I'm having is upgrading the spells the buildings have (after being replaced) to level 2. I have triggers using the event 'finishes an upgrade' that level up the building spells, but once they're replaced they become level 1.
There are some solutions I could think to this but they all pretty much involve triggering each tower separately, and I'm trying to avoid it. Any suggestions?