This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
How would I go about making a trigger where let's say for example a "Supply Depot" gives the player money, and the more depots you have the more money you make (like 1 makes 1 mineral, 2 makes 2 etc)
I imagine it's easier than I'm thinking it is.
Pick each unit in unit group -> Supply depots -> All players
Modify player property -> picked player -> minerals -> add -> 1
Quote from TyaArcade: GoPick each unit in unit group -> Supply depots -> All players Modify player property -> picked player -> minerals -> add -> 1
Thanks.
So this trigger would make it where the more depots you have the money doubles right? (just trying to make sure)
In that case do add minerals -> pow(2, count of units in unit group (supply depots) - 1) for all players
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
Quote from stratostygo: Go@TyaArcade: Go Thanks. So this trigger would make it where the more depots you have the money doubles right? (just trying to make sure)
@TyaArcade: Go
Yeah. No further changes are needed. It'll repeat multiple times if a player has multiple depots, or whatever other structure you decide to use.
Cool, thanks for the assist.
You might want to add some sort of condition that the building isn't under construction. There might even be a flag for it.
Why not just use a Buff behaviour that uses a periodic Modify Player effect instead?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
How would I go about making a trigger where let's say for example a "Supply Depot" gives the player money, and the more depots you have the more money you make (like 1 makes 1 mineral, 2 makes 2 etc)
I imagine it's easier than I'm thinking it is.
Pick each unit in unit group -> Supply depots -> All players
Modify player property -> picked player -> minerals -> add -> 1
Thanks.
So this trigger would make it where the more depots you have the money doubles right? (just trying to make sure)
In that case do add minerals -> pow(2, count of units in unit group (supply depots) - 1) for all players
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
Yeah. No further changes are needed. It'll repeat multiple times if a player has multiple depots, or whatever other structure you decide to use.
@TyaArcade: Go
Cool, thanks for the assist.
You might want to add some sort of condition that the building isn't under construction. There might even be a flag for it.
Why not just use a Buff behaviour that uses a periodic Modify Player effect instead?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg