Hi Don,
> >*********** REPLY SEPARATOR *********** > >On 9/04/2006 at 6:49 PM Don Holt wrote: >Is there a module builders guide for these newer >features like triggers, global keys, and properties. I have started some advanced tutorials on the wiki (http://wiki.vassalengine.org/doku.php?id=user_tutorials:user_tutorials), but unfortunately, have not got very far. I have not had much time lately. >I'm trying to have certain actions taken in my CCG, >like ready cards (rotate back 90 degrees, already a >feature of the piece on a menu dropdown and ctrl key.) >So if I've included the turn tracker in my module. Can >I configure the tracker to trigger this event for all >rotated cards? I have not had a chance to add 'triggering' into the turn tracker yet. You would need to set up a separate Global Key Command on a Button and do this manually. >And how would I get a card to "know" >that it had been rotated? The Rotation trait needs to be enhanced to add a 'Name' for the rortation (to distinguish between different rotation traits that may be included in the one counter) and then expose a couple of properties that can be used in filters: name_FACING = Current facing index name_DEGREES = Current facing in degrees I have added this to sourceforge as an enhancement (A nice easy on for a budding programmer....:) In the short term as a workaround, you can try and track the rotation state by using a Layer trait containing transparent images that respond to the same Key Commands as the Rotation trait. As you rotate the counter, the levels will change between the different (but identical) invisible transparent layers. You can check which level is showing using the Layer property variables. For a Layer named NAME, you have NAME_Image = Name of the current levels image NAME_Level = Current Levels name NAME_Level = Current Level numer NAME_Active = true/false is this Layer active >How does one set a property >on the piece when it is used (by using a trigger?)? The new Dynamic Properties feature will allow you to set an arbitrary names property to a specific value. Use a Trigger to look for the key of interest and when seen, send a command to the Dynamic Property to set it. >And then how would the end of turn trigger know to >look for this property (and perhaps a few others as >well. By using a Property Filter in the Trigger. >A player can sustain one card's influence on >another, at the cost of keeping the first card still >in use.)? >Also certain cards allow you to go through your deck >and pull the first card of a given type. Is there a >way to add a menu entry to the first piece(card) that >could search the deck and draw the first card of that >type? I could add the type property to a prototype and >then include that prototype in all cards of the >correct type, so I would know the search key, but am >confused after that. No, nothing like that at the moment. Regards, Brent. > > >--- Rodney Kinney <[EMAIL PROTECTED]> wrote: > >> Now at http://www.vassalengine.org/beta. Version >> 2.6b2 adds the ability to >> hide/mask pieces according to a side, so that if a >> player hides a piece and >> resigns from the side, another player taking up that >> side will see it. You >> can also specify a list of sides, for team play and >> double-blind. Thanks to >> Torsten Spindler for putting together the first >> draft of this feature! >> Brent Easton also contributed improvements to Game >> Piece Layers and the >> Mouse-over Stack Viewer. Version 2.6 will be going >> official soon. Enjoy! >> >> rk >> >> >> [Non-text portions of this message have been >> removed] >> >> > > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com > > > >YAHOO! GROUPS LINKS > > Visit your group "vassalengine" on the web. > > To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. ____________________________________________________________ Brent Easton Analyst/Programmer University of Western Sydney Email: [EMAIL PROTECTED] 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/
