--- In [email protected], "Brent Easton" <[EMAIL PROTECTED]> wrote:
>
> 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:
> >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'....
> 

As I said in my reply to the other reply...that only seems to apply to
the card.  For some reason, the command is only applied within the
context of the card, and thus it isn't picked up by things like Global
Property changers within the window.  This fairly limits the things
that can be done to changing or moving the card and altering it's
properties.

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

Bah, just realized I muddled my responses.  I responded to this in my
other reply instead, bah.  Anyway, is there some way I can change this
restriction on the fly?  This is fine for starting, but once the chips
are anted, they need to lose this property and become available to anyone.

> 
> >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]
>
thanks,
Bryan





------------------------ Yahoo! Groups Sponsor --------------------~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/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