I think you would want to use a regular expression
$Dice_result$ ~= 10|3 && $Color$ ~=Red|Blue
[mailto:email@example.com] On Behalf Of pgeerkens
Sent: Wednesday, February 23, 2011 5:05 PM
Subject: Re: [messages] [Module Design] Re: Trigger as Listener?
I believe you need to set this up with complex variables, so that the test
looks something like this:
$Mod_Dice_Result$ = 10_3 && $Mod_Color$ = Red_Blue
With earlier tests setting Mod_Dice_Result and Mod_Color
At this time there is no provision for brackets, or precedence, in the
[mailto:firstname.lastname@example.org] On Behalf Of mycenae
Sent: Wednesday, February 23, 2011 4:39 PM
Subject: [messages] [Module Design] Re: Trigger as Listener?
Thanks, Pieter, that actually works beautifully! I got it to work in a
So now there’s an additional complication. The GKC that checks for the
die roll result should also check a certain on each affected piece and
only affect the ones of a certain color. So I’d like to put a complex
property check in the GKC ‘Matching Properties’ box, but I’m not sure of
the syntax of the statement to make sure it’s evaluated right. Would it
use parentheses? Wavy brackets? Square brackets?
The raw statement would look something like this:
$Dice_result$ = 3 || $Dice_result$ = 10 && $Color$=Red || $Color$ = Blue
This is intended to tell the GKC, if the result is a 3 or a 10, and the
piece is Red or Blue, fire.
How would this get punctuated? It doesn’t seem to be documented.
Read this topic online here: