Hi Bryan,

I've tried to answer a couple of your questions below. Hope these suggestions 
help.

Regards,
Brent.

>*********** REPLY SEPARATOR ***********
>
>On 11/07/2006 at 8:21 PM teferi13 wrote:
>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.


At the bottom of the Map definition is a field 'Key Command to apply to all 
units ending movement on this map'. If you enter a Key Command into here, it 
will be applied to every unit that finishes it's move on that map (drag and 
drop only, not send-to or translate).

This is the trigger to get you started. This key command can fire off a 
'Trigger Action' that can search for any properties you like including 
'CurrentZone=blahblahblah'....



>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?


No, but you can use the 'Restricted Access' trait to restrict access to each 
players chips to the owning player.


>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?


You can display the value of a Global Property as the label on a counter using 
$globalPropertyName$ in the text string. You could define a nice looking 
counter with a big label on it to display the chip count and use a counter 
Dynamic Propert to record the score. You could also add the key Commands to 
manipulate the score, and use Restict Access so players can only manipulate 
their own scores. Add one of these for each player to a 'Scoring' board and add 
appropriate reporting to display changes to value, as well as having the 
'Scoring' window available by Button for a full display.



>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
>
>
>
____________________________________________________________
Brent Easton                       
Analyst/Programmer                               
University of Western Sydney                                   
Email: [EMAIL PROTECTED]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/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