So, I’m working on a module, that I figure to keep track of a bunch of derived values.
Fine enough, whip up a display where they can be shown, hook text labels up to them for display.
However, the values that control this can change a bunch during a turn, and the derived statistics are only evaluated/change at the start of that player’s turn.
Okay, set up a turn tracker, and have global triggers, one for each side, to go off at the start of each side’s turn.
Problem: Match Properties {Phase==“Move”} works; Match Properties {Side==“Black”} works. No variation of {Phase==“Move”&&Side==“Black”} works. (Does the turn tracker have this as a limitation? I can’t get anything other than a one-variable comparison to work here.)
Okay, set the trigger to fire at the start of every turn, then set up the piece that displays the value to only fire it’s calculation if the current turn is for the correct side.
And… I can’t get that to work either. I can verify the Global Hotkey fires. I can verify the Global Key Command hooked to it fires. But I can’t get the Trigger Action to go off (I added a Report Action to what it will fire: nothing happens), even if I don’t filter it for matching properties.
Current details:
Global Key Command (in the same map as the display pieces):
Key Command: ReCalc
Matching Properties: {Calculated==Yes} [possibly not needed here, since the scope of possible pieces should be small]
Hotkey: StartTurn [which is the command from the Global Hotkey]
On the actual Single Piece:
Trigger Action:
Watch for these Keystrokes: ReCalc
Perform these Keystrokes: B-Set; Test
Marker:
Calculated = Yes
Report Action:
Report on these keystrokes: ReCalc; Test
If I put a report on the Global Hotkey, I see it in the chat log. If I put one on the Global Key Command, I see it in the chat log. I just can’t get anything to report (or do anything else) in the piece itself.