Thanks, Tim and Bill.  I'll check into your suggested methods for addressing 
this.
Kevin

  ----- Original Message ----- 
  From: Tim McCaron 
  To: [email protected] 
  Sent: Wednesday, April 04, 2007 9:23 PM
  Subject: RE: [vassalengine] Re: Counting items in a deck


  Kev,

  If you are looking at a player hand - not a deck (which is doable with its
  exposed property but not in a toolbar), like your msg title says, it isn't
  possible at the moment although Im sure Brent could probably chime in if it
  could be possibly done or added in as a feature.

  For now you can do it with a work around and a little trickery, by placing
  an at start marker on your main map and have it linked to a map GP. Provide
  it a text label to display the current GP value. Provide the cards a
  DP/trigger/set GP routine to increase/decrease the map GP by 1 whenever they
  move in/out of the player hand.

  That's the general gist of it - not very detailed but Im sure you get the
  idea. I can set it up if you are not sure what I mean

  As for random discard, well a mechanism of some sorts would be nice
  especially with cdg's but having your opponent pick a number 1 thru X works
  pretty well at least for now. A possible method of making it a reality
  though could be to use a specialized dice similar to the symbolic dice. Have
  the faces match the gridtype of the hand and have it linked to the grid some
  how- anytime the dice is rolled it goes to that grid location, grabs the
  contents and discards them perhaps?

  Actually now thinking about it, here too you could trick things and automate
  it provided you have a dice match grid cords on roll. Set a GP to $result$.
  A hidden piece could read the GP, fire off a trigger to the map with a GKC
  of CurrentMap = Playerhand blah && GridLocation = $resultGP$. This variable
  pass will then execute the discard function on the card if it is in the
  location. If thewre is not one you just roll again till a discard occurs

  Tim

  _____ 

  From: [email protected] [mailto:[EMAIL PROTECTED] On
  Behalf Of Kevin Coombs
  Sent: Wednesday, April 04, 2007 7:10 PM
  To: [email protected]
  Subject: [vassalengine] Re: Counting items in a deck

  I haven't seen a reply to my query, so I guess I stumped the experts. :-)

  Again, does anyone know if this is possible? Thanks.

  Kevin

  ----- Original Message ----- 
  From: Kevin Coombs 
  To: vassalengine@ <mailto:vassalengine%40yahoogroups.com> yahoogroups.com 
  Sent: Monday, March 19, 2007 6:05 PM
  Subject: Re: [vassalengine] Re: Counting items in a deck

  Brent,

  What I think would be ideal is if the total number of cards that were
  currently in a player's hand could be placed into the caption of the button
  that opens the Window that contains the deck itself (and, thus, could be
  seen in the main window). So, for example, if there were 3 cards in the
  Greek player's hand you would see something like this on the Window
  button...

  Greek Hand (3)

  Possible?

  Kevin

  ----- Original Message ----- 
  From: Brent Easton 
  To: vassalengine@ <mailto:vassalengine%40yahoogroups.com> yahoogroups.com 
  Sent: Thursday, March 08, 2007 7:45 PM
  Subject: Re: [vassalengine] Re: Counting items in a deck

  Kevin, Neil, 

  This is the hardest part, coming up with a VASSAL mechanism that can achieve
  these goals in a simple fashion.

  It can be very difficult for developers to come up with mechanisms to
  implement features that we do not use/need/have interest in ourselves. If
  you can come up with a good idea, we can then talk about the technical
  implications of implementing it.

  Let your imagination fly...

  How might this be implemented?

  Don't worry about how hard or easy it might be to program; how would like to
  see these sort of feature working in vassal?

  Cheers,
  Brent.

  >*********** REPLY SEPARATOR ***********
  >
  >On 8/03/2007 at 6:20 PM Kevin Coombs wrote:
  >I would love to hear the answers to these questions as well. Anybody??
  >Kevin
  >
  >----- Original Message ----- 
  >From: nrandall 
  >To: vassalengine@ <mailto:vassalengine%40yahoogroups.com> yahoogroups.com 
  >Sent: Wednesday, March 07, 2007 10:23 AM
  >Subject: [vassalengine] Re: Counting items in a deck
  >
  >Thanks for this, Tim. But I must admit I have no idea how to get this 
  >feature working, despite several attempts. Would anyone be willing to 
  >do a quick walk-though?
  >
  >More significantly, can it be applied to a deck that the other players 
  >can't see? I.e., a player hand? I want each player to see how many 
  >cards the other player has in his hand at any given time (a pretty 
  >common need in CDGs).
  >
  >Another question: Has anyone come up with a way to allow one player to 
  >draw a random card (or cards) from another player's hand? Or something 
  >like that? CDGs all seem to have 2-3 cards that say "Draw a card 
  >randomly from the other player's hand and discard it". 
  >
  >I realize this could be done by drawing all cards to the map and 
  >rolling a die (1 is left, 2 is second-left, etc.), but if cards auto-
  >flip, that's not ideal. I could build a special deck just for this 
  >purpose that's visible to all and that doesn't flip the cards, but 
  >again it's not ideal.
  >
  >Neil
  >
  >> The reference manual indicates that decks have a Map-level property 
  >called
  >> <name>_numCards. After many frustrating failed attempts at getting 
  >this
  >> to work, I checked out the source code and discovered that the 
  >property is
  >> actually called <name>_numPieces. (Seems like a better name anyhow,
  >> because decks are not restricted to holding cards)
  >> 
  >> Just thought I'd post a note for anyone else searching for the answer.
  >> (I'm sure the docs will get updated in the future ;) )
  >> 
  >> Cheers
  >> 
  >> -Tim
  >>
  >
  >[Non-text portions of this message have been removed]
  >
  >
  >
  __________________________________________________________
  Brent Easton 
  Analyst/Programmer 
  University of Western Sydney 
  Email: [EMAIL PROTECTED] <mailto:b.easton%40uws.edu.au> edu.au

  [Non-text portions of this message have been removed]

  [Non-text portions of this message have been removed]

  [Non-text portions of this message have been removed]



   

[Non-text portions of this message have been removed]

Reply via email to