You can handle #2 with triggers, piece GKC's and layers in conjunction with the BasicName property filter
Create a clock piece with a minute layer and second layer - each layer will have a X number of levels (this case 15 for minutes 60 for seconds). Layer commands should be specified to increase/decrease the layers and the layers should always be active. Each play card you create Im guessing has a value tied to time marked off. On each card, add a trigger that fires a GKC (BasicName = Clockpiece) the number of seconds required. The GKC command will tie in directly to the same command used on the seconds layer of clock piece. Finally, when the seconds layer reaches the "0" level a reset command on that layer should return it to the "59" level (level 1) and that keycommand should be made to be the same as the command on the minutes layer to change it. Alternatively for the minutes/seconds reset you could use a trigger on the clock piece listening for the property filter of the layer level eg: seconds_Level = X or minutes_Level = X to execute the reset Hope that makes sense Tim _____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Gary Krockover Sent: Thursday, September 14, 2006 7:35 AM To: [email protected] Subject: [vassalengine] Tying events to dice rolls Howdy gang, This is beyond my usual scope of expertise, so I'll ask questions first and then shoot later. 1. Can you have a piece move to a fixed location based on a the dice result? Picture if you will a "spinner" graphic piece that will move to point to the number that is rolled. 2. Can someone think of a way to handle a timer, where each click of a button marks off so much time? Here's the skinny; after chatting with my brother about what a fun game NFL Strategy is/was, I decided to pick up a cheap copy and will be making a module for it (reference: http://www.boardgam <http://www.boardgamegeek.com/game/4831> egeek.com/game/4831) I can imagine the play cards being on separate map windows with a "send to" that will place them in the viewer and then a single button that would return both via the "return" command. Got all that worked out. The little spring loaded ball I could see being moved to a location up/down the "alley" based on a percentile dice roll. It would be neat to have the ball actually moved to a fixed location based on that roll if possible. The way the game works, when you pull out the cards, the play clock moves down a number of seconds. This I'm not sure how to do in VASSAL. Worst case scenario, run plays cost x amount, pass plays x amount and then you do the 'TurnTracker' clock manually. Yeck, I want some automation! Any suggestions here greatly appreciated! As always, thanks in advance! GJK [Non-text portions of this message have been removed] 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/
