I recently started using the SC2 editor and am now getting the hang of it fairly well.
I was wondering if it was possible to change a single units stat using triggers while not changing other same type units stats too.
Specifically whether I can make a mineral field using triggers and then set the mineral amount(Stats-Amount under Minerals behavior) to a random number and repeat to make multiple random amount mineral fields.
If anyone could help with this it would be great, Thank You. Alternatively, in data an event at creation to set it to a random number if able.
Thank you for your advice, I must of misunderstood catalogs as I thought they changed all units of that types stats. I will attempt to do that and if it doesn't work use a behavior as suggested above. I will post again if neither method works. Edit: I ended up creating multiple mineral field behaviors with different values for each, deleting the default and applying a random one of my new behaviors using a trigger.
I just checked the wiki, from the description I think I'm mistaken. Catalogs allow you to change on a player by player basis, not a unit by unit basis. Yaksman's answer I believe should be correct, as I do recall using such a function to mod unit stats before.
Rollback Post to RevisionRollBack
Works AoS2CoderBoss Bars+Custom boss barsGXMLDialog XML parser Project WCoderRandNAligning dialog labels