TwoNails
Squire
posted 12-30-17 01:37 PM CT (US)
Hello !
I'm currently trying to build a map where players 2 to 6 have tp try to destroy the highest amount of buildings from player 1 before the end of a timer.
So player 1 has this gigantic city and what i'd like to find is a way to have some sort of "destroy any object" as a condition instead of creating one thousand "destroy (selected) object" triggers (one for each blue building, for each non blue player) which would both take far too much time and is likely to crash the game.
Or any way to simply count the number of building a given player has destroyed during the game.
I feel like the tool just isn't there in the Editor and like there's just no way around that without something like Trigger Studio, but the thing is I'm playing on the Steam HD version so I'm not even sure if Trigger Studio works with that.
Anyway, thank you for any help you could provide.
genghis quan
Squire
posted 12-31-17 07:18 PM
CT (US)
1 / 1
I use Trigger studio for this with steam version on my GOT Wars To Come scenario.
I'm assuming the other two players are allies? Because this would count razings of any player's buildings.
Trigger - raze counter
Looping on
Starting on
Condition - Accumulate attribute - P# Razings - (1)
Effect - send tribute p# razings (1) to gaia or irrelevant player
(This allows it to reset after every raze. The player receiving these "razes" keeps them, so you could also add bonuses if you wanted for 10,25,50 razes etc.)
Effect - whatever you're using to count. Could be adding hp to a unit like the kill counter(king unit) in the older CBA.
Once you set these triggers in TS, don't even click on them in the in-game trigger editor, they break instantly.