# Properties from another map

**URL:** <https://forum.vassalengine.org/t/properties-from-another-map/4587>\
**Category:** Module Discussion\
**Created:** [January 15, 2012, 6:15pm UTC](https://forum.vassalengine.org/t/properties-from-another-map/4587 "2012-01-15T18:15:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HealingAura](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/h/76d3ee/32.png) [@HealingAura](https://forum.vassalengine.org/u/HealingAura)\
**Post date:** [January 15, 2012, 6:15pm UTC](https://forum.vassalengine.org/t/properties-from-another-map/4587/1 "2012-01-15T18:15:41Z")

</div>

In my module, map1 contains a deck “deck1”.  
In map2 I want to create a text label to count the number of cards in deck1 but when I try “$deck1\_numPieces$” or “$map1\_deck1\_numPieces$”.  
How can you do that?

---

<div class="post-metadata">

**Author:** ![mycenae](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/m/35a633/32.png) [@mycenae](https://forum.vassalengine.org/u/mycenae)\
**Post date:** [January 15, 2012, 6:36pm UTC](https://forum.vassalengine.org/t/properties-from-another-map/4587/2 "2012-01-15T18:36:34Z")

</div>

I think text labels can only display properties on a piece, or global properties.

---

<div class="post-metadata">

**Author:** ![HealingAura](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/h/76d3ee/32.png) [@HealingAura](https://forum.vassalengine.org/u/HealingAura)\
**Post date:** [January 15, 2012, 7:19pm UTC](https://forum.vassalengine.org/t/properties-from-another-map/4587/3 "2012-01-15T19:19:14Z")

</div>

the text label is on a single piece that is in a at-start-stack

---

<div class="post-metadata">

**Author:** ![Tim\_M](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/tim_m/32/2_2.png) [@Tim\_M](https://forum.vassalengine.org/u/Tim_M)\
**Post date:** [January 15, 2012, 7:24pm UTC](https://forum.vassalengine.org/t/properties-from-another-map/4587/4 "2012-01-15T19:24:54Z")

</div>

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

-----Original Message-----  
From: [messages-bounces@vassalengine.org](mailto:messages-bounces@vassalengine.org)  
[[mailto:messages-bounces@vassalengine.org](mailto:messages-bounces@vassalengine.org)] On Behalf Of HealingAura  
Sent: Sunday, January 15, 2012 12:16 PM  
To: [messages@vassalengine.org](mailto:messages@vassalengine.org)  
Subject: [messages] [Module General Discussion] Properties from another map

In my module, map1 contains a deck “deck1”.  
In map2 I want to create a text label to count the number of cards in  
deck1 but when I try “$deck1\_numPieces$” or “$map1\_deck1\_numPieces$”.  
How can you do that?

* * *

Read this topic online here:  
[https://forum.vassalengine.org/t/properties-from-another-map/4587/1](https://forum.vassalengine.org/t/properties-from-another-map/4587/1)

---

<div class="post-metadata">

**Author:** ![DrNostromo](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/drnostromo/32/12593_2.png) [@DrNostromo](https://forum.vassalengine.org/u/DrNostromo)\
**Post date:** [January 16, 2012, 12:47am UTC](https://forum.vassalengine.org/t/properties-from-another-map/4587/5 "2012-01-16T00:47:51Z")

</div>

> [@](#):
>
> $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.
