Hi James,
>*********** REPLY SEPARATOR *********** > >On 9/06/2007 at 8:47 PM rindis8 wrote: >It seems like I saw something about this a couple weeks ago, but I >can't seem to find it. > >Can you set a marker value to equal a value from a property sheet? And >if so, can you set it to the *current* value on a property that has a >current/max listing (like a checkbox property)? Properties in a property sheet are referenced using $property_name$ (e.g. a property called HP is referenced using $HP$). See comments relating to setting marker values below. >And while I'm thinking about possible uses... > >Can you do math with marker values? (e.g., 1/6 * current_fighters.) This will come in the future as an optional extra. I have some code to provide 'Calculate Properties' that can do arbitrarily complex maths on marker values, but we have licensing issues including this in the core VASSAL product. I will be able to release it as a 'Plug-in', once I write the 'plug-in' architecture. >Can you set marker values to equal a layer value? (e.g., if on Layer >1, marker = 1, if on Layer 2, marker = 2...) You can access the layer number using $<layer_name>_Level$ (e.g $HP_Level$ for a layer named HP). Note that to 'Set' a marker to a value, the marker has to be a Dynamic Marker and something has to actually issue the command to initiate the Set command. This is where you might use a 'Trigger Action' to watch for the layer increase/decrease commands and issue the 'Set' command to the dynamic marker. >Thanks in advance for any advice! > >James ____________________________________________________________ Brent Easton Analyst/Programmer University of Western Sydney Email: [EMAIL PROTECTED]
