[messages] [Module Design] GKC and location==$location$?

Sebaestschjin sebastian.naehring at gmail.com
Sun May 11 22:27:08 CEST 2014

The problem with the condition is that it will be evaluated in the
context of the game piece that receives the command, not in the context
of the triggering game piece. This means that the value of $location$ is
always the location of the receiving game piece, so your condition is
always true.
To do what you intend, you would have to use a GlobalProperty (lets call
it GKCLocation). When your GKC fires first set the value of this GP to
the location of the piece that trigger the GKC. Then change your
condition to "location=$GKCLocation$" and it should work as intended.

Read this topic online here:

More information about the messages mailing list