First off, I wanna say thanks to all the people that coded Vassal. 
It's fantastic. Just the same, I am having some problems with coding
a card game with Vassal. I have already coded a version of the game I
am working on, where all the users do the work. Basically for this
version, Vassal just shows the cards, chips, etc. tracks the hands and
what not, but when a card is played, it is up to the players to do
whatever the card says. I would like to make a version of the game
where once a card is played, it automatically performs the actions
appropriate for that card. This leads to my main question:

1) Is there some event in the base API for something like a "enters
zone" or "enters board". Basically when a player plays a card from
their hand (via drag and drop) I want the board into which the card
was placed to perform some action. I saw trigger action as a quality
for cards, but that seems to wait for a key combination rather than
triggering off the movement of a card. I know there must be some
event like this, because the messages that report in the main chat
seem to trigger off this, but I can't find a way to perform some
action on these events.



Yes, can be done, try using a passive trigger - you don't always have to
have a key for triggers to work, a property filter such as CurrentZone = X
under the trait of the actual piece will work fine

2) The game I am working on involves chips. Everyone should be able
to see how many chips the other players have, but they shouldn't be
allowed to manipulate them. Is there some way to allocate a section
of board so that pieces in it belong only to a specific player (or
side), but are still visible to all?

Try using player hands instead of a map - although not ideal you can place
the restrictions you wish. You would still have to drag chips to the main
board

3) Another way I could handle the chips is to simply display the
amount of money that a player has. I have found Global Properties as
a way to store a number (such as chip count), but I haven't found any
decent way to display it to all players. I mean, I can have it
display a message everytime the chip count changes, but is there a way
to simply add something like a text box or label that displays a
Global Property, or some other value?

Create a visible basic piece  with layers and tie it into your global
property. Also property sheets and text labels can achieve this.

4) Lastly, for another game I was developing, I did use a Global
Property to store a player's score, since it was really only relevant
at the end of games. I also added buttons to a player's hand in order
to modify that score. However, when I tried to collect these buttons
into a Toolbar Menu....it didn't work. It seems there is a bug when
it comes to adding buttons to a Toolbar Menu for Player's Hand and
Private Windows. It worked fine on the main window, but I want to do
it for each player's hand.



Have to have Rodney or Brent take a look at this issue - could be a bug


thanks in advance for any help ya'll can give me,
Bryan

 



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



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/IMSolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vassalengine/

<*> 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/
 


Reply via email to