# Send to Location/Return to Deck

**URL:** https://forum.vassalengine.org/t/send-to-location-return-to-deck/168
**Category:** Module Design
**Created:** [January 22, 2008, 11:39pm UTC](https://forum.vassalengine.org/t/send-to-location-return-to-deck/168 "2008-01-22T23:39:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tbyrne](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/tbyrne/32/4_2.png) [@tbyrne](https://forum.vassalengine.org/u/tbyrne)
#### Post date: [January 22, 2008, 11:39pm UTC](https://forum.vassalengine.org/t/send-to-location-return-to-deck/168/1 "2008-01-22T23:39:22Z")

</div>

I originally asked this question on the VASSAL Yahoo! Group:

[b]Does any one know if it is possible to have either of these features  
have different send-to locations depending on which player does the  
sending?

(The longer explanation is each player has a “reserves” window that  
houses that player’s unused AND defeated units, meaning that I want  
players to be able to right-click and send defeated units back to  
their respective reserve windows, which is easier than dragging from  
one window to another.)

The following are replies, also from the Yahoo! Group.

> [@Thomas Russ](#):
>
> I’m not sure exactly what the process is, but this must be possible.
> 
> The Silent War module is able to do things similar to what you post  
> below, so looking at that might give you some ideas:  
> [[Link]](http://www.compassgames.com/downloads/SWvassal.zip)
> 
> In Silent War, there is a battle board, and after the battle, units  
> are sent back to where they came from. This is solitaire, but the  
> module needs to record the starting location and then return the unit  
> to the correct map location.

> [@Brent Easton](#):
>
> This is probably implemented using the ‘Send Back’ feature of the ‘Send to Location’ trait.

This was informative, as Silent War is an elegant mod (and showed me some things I hadn’t seen), but my problem still remains, because the pieces for both players originate in the same location (the game piece palette) but need to end up in different locations depending on who owns them.

---

<div class="post-metadata">

### Author: ![Mithrandir](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/m/cc9497/32.png) [@Mithrandir](https://forum.vassalengine.org/u/Mithrandir)
#### Post date: [August 7, 2012, 7:45pm UTC](https://forum.vassalengine.org/t/send-to-location-return-to-deck/168/2 "2012-08-07T19:45:26Z")

</div>

If you have a $playerSide$ specific area which contains the pieces that player has available it is very easy.  
Use a private window that you can either show or hide from other players depending on your preference.  
If the name of the player that owns that window is named “Player 1” name your window “Player 1 reserve”. If the player is named “Red” name that window “Red reserve” and do this for every player. Now you create a "send to"command with “$playerSide$ reserve” amd name that command “send to reserve” or whatever you think it should be called. There is a send back option in that send to command.  
What this does is send it back to the location it was at when you used that send to command. “$playerSide$” can be used in many other ways as well in a similar manner.
