# Infinite stack on board

**URL:** <https://forum.vassalengine.org/t/infinite-stack-on-board/4194>\
**Category:** Module Design\
**Created:** [August 23, 2011, 4:07am UTC](https://forum.vassalengine.org/t/infinite-stack-on-board/4194 "2011-08-23T04:07:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![moapy](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/moapy/32/2923_2.png) [@moapy](https://forum.vassalengine.org/u/moapy)\
**Post date:** [August 23, 2011, 4:07am UTC](https://forum.vassalengine.org/t/infinite-stack-on-board/4194/1 "2011-08-23T04:07:33Z")

</div>

Hi all,

I need a stack of gold coins that never runs out. So far I’ve figured how to put them into a seperate window, but I want them to be on the actual main board in a ‘bank’.

Any help is much appreciated.

---

<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:** [August 23, 2011, 12:26pm UTC](https://forum.vassalengine.org/t/infinite-stack-on-board/4194/2 "2011-08-23T12:26:19Z")

</div>

> [@moapy](#):
>
> Hi all,
> 
> I need a stack of gold coins that never runs out. So far I’ve figured how to put them into a seperate window, but I want them to be on the actual main board in a ‘bank’.
> 
> Any help is much appreciated.

There is no way to make a true infinite stack, however there are a couple of ways you can achieve the same effect.

One method would be to have a stack of gold coins and give them the clone trait. The other method would be to place an At Start Stack Action button that when clicked dispenses a gold coin in its place (sort of like a on screen vending machine)

---

<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:** [August 23, 2011, 2:01pm UTC](https://forum.vassalengine.org/t/infinite-stack-on-board/4194/3 "2011-08-23T14:01:48Z")

</div>

> [@](#):
>
> The other method would be to place an At Start Stack Action button that when clicked dispenses a gold coin in its place (sort of like a on screen vending machine)

This is the method I would use. In fact, I’d use a gold coin graphic for the button and the button would have a Place Marker trait defined as the gold coin you want. Every time you click the gold coin a gold coin piece would pop up on top.

---

<div class="post-metadata">

**Author:** ![brian448](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/b/c77e96/32.png) [@brian448](https://forum.vassalengine.org/u/brian448)\
**Post date:** [August 23, 2011, 10:05pm UTC](https://forum.vassalengine.org/t/infinite-stack-on-board/4194/4 "2011-08-23T22:05:02Z")

</div>

Add a clone component to the gold piece.

----- Original Message -----  
From: “moapy” [glenn.althor@gmail.com](mailto:glenn.althor@gmail.com)  
To: [messages@vassalengine.org](mailto:messages@vassalengine.org)  
Sent: Monday, August 22, 2011 9:07 PM  
Subject: [messages] [Module Design] Infinite stack on board

> Hi all,
> 
> I need a stack of gold coins that never runs out. So far I’ve figured  
> how to put them into a seperate window, but I want them to be on the  
> actual main board in a ‘bank’.
> 
> Any help is much appreciated.
> 
> * * *
> 
> Read this topic online here:  
> [Infinite stack on board](https://forum.vassalengine.org/t/infinite-stack-on-board/4194/1)
> 
> * * *
> 
> messages mailing list  
> [messages@vassalengine.org](mailto:messages@vassalengine.org)  
> [vassalengine.org/mailman/listinfo/messages](http://www.vassalengine.org/mailman/listinfo/messages)

---

<div class="post-metadata">

**Author:** ![moapy](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/moapy/32/2923_2.png) [@moapy](https://forum.vassalengine.org/u/moapy)\
**Post date:** [August 23, 2011, 11:43pm UTC](https://forum.vassalengine.org/t/infinite-stack-on-board/4194/5 "2011-08-23T23:43:16Z")

</div>

Thanks a lot for the advice all, I think a button will work great! Now I’ve just got to work out how to make one work haha… any tips?

---

<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:** [August 24, 2011, 2:36am UTC](https://forum.vassalengine.org/t/infinite-stack-on-board/4194/6 "2011-08-24T02:36:12Z")

</div>

Here’s a sample. Just change the .zip to .vmod.

---

<div class="post-metadata">

**Author:** ![moapy](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/moapy/32/2923_2.png) [@moapy](https://forum.vassalengine.org/u/moapy)\
**Post date:** [August 24, 2011, 5:49am UTC](https://forum.vassalengine.org/t/infinite-stack-on-board/4194/7 "2011-08-24T05:49:37Z")

</div>

That works an absolute charm! Is there any way to use the Send to Location trait to send the coin to the players individual hand(board)? I can assign it to go to a particular players hand but not to the person that clicked it.

---

<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:** [August 24, 2011, 12:29pm UTC](https://forum.vassalengine.org/t/infinite-stack-on-board/4194/8 "2011-08-24T12:29:39Z")

</div>

> [@moapy](#):
>
> That works an absolute charm! Is there any way to use the Send to Location trait to send the coin to the players individual hand(board)? I can assign it to go to a particular players hand but not to the person that clicked it.

yes, you need to use Trigger Action traits (1 per player) that will use the property “playerSide = xxxxx” so it will go to the correct player hand

---

<div class="post-metadata">

**Author:** ![moapy](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/moapy/32/2923_2.png) [@moapy](https://forum.vassalengine.org/u/moapy)\
**Post date:** [August 24, 2011, 12:35pm UTC](https://forum.vassalengine.org/t/infinite-stack-on-board/4194/9 "2011-08-24T12:35:34Z")

</div>

Aewsome, thanks again! Once my game is at a semi-balanced and tested stage, I’ll post it so you guys can see the outcomes of your help.

Thanks

Glenn

---

<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:** [August 24, 2011, 2:15pm UTC](https://forum.vassalengine.org/t/infinite-stack-on-board/4194/10 "2011-08-24T14:15:06Z")

</div>

> [@](#):
>
> Is there any way to use the Send to Location trait to send the coin to the players individual hand(board)? I can assign it to go to a particular players hand but not to the person that clicked it.

Easiest way I’ve found to do this it to name each of the Player Hands with the name of the player sides. For example, if your player sides are Red, Blue, Green, Yellow, then name the player hand map windows Red, Blue, Green, Yellow. In the player hand, create a Region Point (Irregular Grid) to have a destination for the coin. Call it something like CoinDrop.

You would then set up the Send to Location trait to send the coin to:

Destination - Region on Selected Map  
Map - $playerSide$  
Region Name - CoinDrop

Since the player hand is the same name as the player side, using the $playerSide$ variable insures that whoever clicks the button will receive the gold coin.
