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.

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?

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?

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.

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






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/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