Search the web
Sign In
New User? Sign Up
vassalengine · VASSAL Engine Discussion Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Global Key Command to a Deck   Message List  
Reply | Forward Message #10022 of 10031 |
[Module Design] Global Key Command to a Deck

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: b.easton@...




Thu Feb 7, 2008 11:17 pm

swamp_wallaby
Offline Offline
Send Email Send Email

Forward
Message #10022 of 10031 |
Expand Messages Author Sort by Date

Hi all, Can anyone tell me how I set up a Global Key Command for a deck? For example, if I want the Deck to reshuffle or reverse, can I do this using a GKC...
David Neumann
neumann2706
Offline Send Email
Feb 6, 2008
5:48 pm

Hi Dave, For the Re-shuffle, you can specifiy a Hot-key in your Deck to do the reshuffle, then you can use a Global Hot Key (not a Global Key Command) to send...
Brent Easton
swamp_wallaby
Offline Send Email
Feb 6, 2008
8:58 pm

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...
David Neumann
neumann2706
Offline Send Email
Feb 7, 2008
4:51 pm

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...
Brent Easton
swamp_wallaby
Offline Send Email
Feb 7, 2008
11:17 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help