Hi Dave,

I have sent this to the new VASSAL forum also as the Yahoo group is not being 
used much anymore.

While there is no Hot Key to reverse a Deck at the moment, what you actually 
want is a way to return a piece straight to the bottom of the Deck, rather than 
have to muck around with Hot Keys and Reversing the Deck.

While a 'Send to bottom' option could be added to the [b]Return To Deck[/b] 
trait, the programming for this is actually quite complicated.

However, there is a neat way to implement 'Return to Bottom of Deck' using a 
[b]Trigger Action[/b] trait. A Deck is just a special form of a Stack and the 
Stack manipulation commands (arrow keys) work for counters in a Deck.

Say your [b]Return To Deck[/b] trait is Ctrl-R. Add a Trigger Action 'Return to 
Bottom of Deck' that issues two Key Commands:

 1. Ctrl-R to return the counter to the Deck.
 2. Down-Arrow to send the counter to the bottom of the Deck.

Regards,
Brent.

>*********** REPLY SEPARATOR ***********
>
>On 7/02/2008 at 10:51 AM David Neumann wrote:
>Duh...you're right, of course. No wonder I couldn't get it working...
>
>Your response, however, brought something else to light. Why is there
>no hotkey for reversing a deck?
>
>Is there some way to do this 'remotely'? In the module I'm making,
>there is an opportunity to draw two cards and place 1 on the bottom of
>the draw deck. Normally, I just treat the discard deck as the bottom of
>the deck, but here it is important because the draw deck does not get
>reshuffled until all the cards have been drawn. So, I need to ensure
>that the card I placed on the bottom of the deck is seen before the
>cards already in the discard pile.
>
>My thought was to have a key command that would reverse the deck, send
>the card to the deck, then reverse it again. Without a hotkey, I don't
>think I can do this...
>
>Dave
>
____________________________________________________________
Brent Easton                       
Analyst/Programmer                               
University of Western Sydney                                   
Email: [EMAIL PROTECTED]

Reply via email to