[messages] [Module General Discussion] Re: Properties from another map

DrNostromo drnostromo at drnostromo.com
Sun Jan 15 17:47:51 MST 2012


> $deck1_numPieces$ is the correct expression, unfortunately it can not
> be
> read across maps - only in the map that contains the deck


True ...but you may be able to set the cards to trigger a Set Global
Property trait when they are drawn. Create a Global Property called
something like Deck1CardCount and set the GP to $deck1_numPieces$
whenever a card is drawn. Then have your text label display
$Deck1CardCount$

If the card is being drawn to a different map than the map containing
deck1, create an invisible At-Start stack piece on Map 1 to control the
SGP. Then have the card send a Global Key Command to the At-Start stack
piece to trigger the SGP.

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


More information about the messages mailing list