So I am using Vassal 3.2.2. Am I missing something or is there not a way to sum the total of Dynamic Properties in a deck (without writing Java code, which I have no clue how to do)?
I have a cards A, B & C. I set Dynamic Properties and set a CardValue of 2, 4 & 9 (respectively). I toss those cards into a VictoryPoint deck and just want a simple stack item with a text label that says “VP = 15”. I have tried everything and can’t get it to work.
As each card goes into the deck, you must transfer its value of the Dynamic
property for that card to a Global property using increment by option. You
display the value of the Global Property.
So I am using Vassal 3.2.2. Am I missing something or is there not a way to
sum the total of Dynamic Properties in a deck (without writing Java code,
which I have no clue how to do)?
I have a cards A, B & C. I set Dynamic Properties and set a CardValue of 2,
4 & 9 (respectively). I toss those cards into a VictoryPoint deck and just
want a simple stack item with a text label that says “VP = 15”. I have tried
everything and can’t get it to work.
Well, I think I have the idea, but it’s not working. I’m getting an error: “Set Global Property (): Unable to locate Global Property named 0”
I have setup a prototype that when you right click you can send a card to a player’s Victory pile with a trigger action. It sends the key command “CTRL SHIFT 1”.
Then I have “Set Global Properties” that watches for “CTRL SHIFT 1” and that sets “{VPTotalPlayer1}” (which I have as a Global Property) by increment value of “$VPValue$”. Not sure why I am getting the error.
I too was having similar problems with the “Set Global Property (): Unable to locate Global Property named 0” error.
The issue is that when you use the “Expression Builder” button to insert the global property, it automatically adds the curly brackets {} around the gp name. Thus you have to manually remove the brackets or add the quotation marks to get it to work.
The Expression Builder always returns an expression (i.e. something in {}). And generally, this is exactly what you want, EXCEPT in this particular case which is the one place where the Expression Builder is used to return the name of a Property. In which case you still want an Expression returned as normal EXCEPT when your expression consists of a single Property reference, in which case you want that to be the property name ({“propname”}, simplified to propname).
Whew! I can see what I need to to do, but it will take a bit of coding. Leave it with me.