I have a use case where I need to both count and sum a particular property value of pieces. I am using “Set Global Property” (“Set Value directly”, triggering on the “Update” key command) for both.
Count works great, but Sum doesn’t appear to work. I’ve tried multiple permutations, but so far haven’t been able to get it to work.
(Note I find it odd that these two very similar expressions, reverse the order of property and map name).
CountMap(“Main Map”,WorldCount,“{Owner=="Red"}”)
SumMap(WorldCount,“Main Map”,“{Owner == "Red"}”)
Any help appreciated…