Hello,
I would like to add some automatic VP counter to my Ticket to Ride module. The idea is this:
When I put train into a region on map, it will set calculated property Points (which will be determined from LocationName).
There will be global property called PlayerSide Points
Any time I want to know the score, I will click on GCK toobar button and it will add all the values of property Points and set global property PlayerSide Points to its value so I can show it somewhere.
You are using the expression {Layer==Train} in at least 2 places; that will compare the value of Property Layer with the value of Property Train. I believe you actually want to check if the Property Layer contains the valueTrain, which would be {Layer == "Train"}, instead.
Note that for the SumMap function, this requires double-quotes inside of double-quotes, so you need to “escape” the inner set: {SumMap(Points, "{Layer == \"Train\"}")}.
Reason I have never made it public is I made it entirely in Slovak language. Do you still have interest in the file? If yes, give me email and i will send it to you.