[messages] [Module Design] Check which boards are in the game

PunTheHun vassal at flyhi.de
Tue Feb 21 18:00:10 CET 2017


Splendid, it works. For reference:

The startup command sends the command key "startup_command" to all
pieces. On each board there is an at-start-stack with overlay pieces;
one of the pieces per board reacts to the command (in its "set global
property" trait) and sets a module-level GP "HasMap>name>" to 1 (start
value was 0) __if__ the board is in play (otherwise it can't because
there is no piece to react to the command).

By querying the GPs I can automatically place certain overlays (by
calculating the layer they should show). The module is still Advanced
Civ, and the overlays are, for example, those starting zones that change
with the game board configuration.

_______________________________________________
Read this topic online here:
http://www.vassalengine.org/forum/viewtopic.php?p=53105#p53105


More information about the messages mailing list