Hi Rodney,
There is one gotcha with using GlobalKeyCommands to initiate SendToLocations
traits in counters in Decks - The Auto-shuffle is bypassed. You actually have
to turn auto-shuffling off and use GlobalHotKey to explicitly shuffle the deck
before distributing the pieces. You have then lost the auto-shuffle capability
when drawing cards manually.
Hi Porter,
It will still be possible to what you want in v2.9, but in a more indirect way.
I'm not saying this is a great way to do this, your 'Draw' trait sounds good,
but it is just to give you an idea of some new 2.9 features.
Another new addition in 2.9 is the SetGlobalProperty trait that allows counters
to set global variables. I have also added $CurrentX$ and $CurrentY$ properties
to pieces.
Set Map Global Variable X to $CurrentX$
Set Map Global Variable Y to $CurrentY$
Send GlobalHotKey to shuffle deck.
Send GlobalKeyCommand to top card in deck to initiate a SendToLocation. Use
the new advanced features of SendToLOcation to send the piece to $X$, $Y$.
Rodney,
The 'Draw from Deck' trait would actually be a sub-class of 'Place Marker'.
Instead of defining a piece, you select a Deck. The action then 'draws' a piece
from the deck, following any Shuffle, face Up/down etc. attributes (This is the
bit that will take time). You could do multiple draw also.
Cheers,
Brent.
>*********** REPLY SEPARATOR ***********
>
>On 24/10/2006 at 12:31 PM Rodney Kinney wrote:
>> specify key/menu command
>> specify the draw deck
>> specify offset or absolute position
>> specify an x,y
>
>This is supported in the current version 2.9 beta. To do this, give the
>pieces in the Deck a SendToLocation trait. Set up a GlobalKeyCommand to
>select pieces from the target Deck, and configure it to only apply to one
>card from the deck.
>
>rk
>
>[Non-text portions of this message have been removed]
>
>
>
____________________________________________________________
Brent Easton
Analyst/Programmer
University of Western Sydney
Email: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/vassalengine/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/vassalengine/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/