Hi Don,

If you try and set the value directly to the value of another proprty, e.g. Set 
the value to $myIntrigue$, then then myIntrigue property is evaluated when you 
save the trait away, not when the Dynamic Property is accessed. Since 
myIntrigue does not exist in the prototype, the $myIntrigue$ is replace by 
myIntrigue, as standard for a non-existent property.

Rodney, this is definitely a bug. You shaould be able to save a $propertyName$ 
string in the trait so that at run-time, the dynamic property is set to the 
value of another property. It doesn't make any sense to evaluate the properties 
when the trait is saved.

Cheers,
Brent.

>*********** REPLY SEPARATOR ***********
>
>On 20/07/2006 at 9:31 AM Don Holt wrote:
>Here's what I discovered.
>
>If a dynamic property or marker is defined in a piece,
>then the variable (in this case $myIntrigue$) exists
>and can be used in the a text label defined in either
>the piece or a prototype. However, if the dynamic
>variable is defined in the prototype (Intrigue), then
>$Intrigue$ appears as the text string "Intrigue". 
>
>I'm also a little uncertain what happens when you use
>the "set value direcly" function, where Intrigue is
>set to $myIntrigue$. I think I was able to generate a
>string overflow condition somehow that sent Vassal
>into an infinite loop on further editting of the
>prototype and the piece.
>
>--- Brent Easton <[EMAIL PROTECTED]> wrote:
>
>> Hmmm, Good question.
>> 
>> Within the module itself, I don't think so.
>> 
>> What about creating static markers in each indivual
>> card
>> 
>> myDiplomacy=3
>> myPsi=4
>> 
>> Then have an 'Initialise' Key command that sets the
>> static values into the Dynamic Properties.
>> 
>> Cheers,
>> Brent.
>> 
>> >*********** REPLY SEPARATOR ***********
>> >
>> >On 20/07/2006 at 12:07 AM dcholtx wrote:
>> >Each piece in the B5CCG has a couple of dynamic
>> properties, Diplomacy,
>> >Intrigue, Psi, and Leadership. I want them all to
>> have the same
>> >actions (increment, decrement, set), but each piece
>> must have a
>> >different starting value. Is there anyway to
>> declare the actions in a
>> >prototype and then assign a different starting
>> value to each piece?
>> 
>>
>__________________________________________________________
>> Brent Easton 
>> Analyst/Programmer 
>> University of Western Sydney 
>> 
>> Email: [EMAIL PROTECTED]
>> 
>> 
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam? Yahoo! Mail has the best spam protection around 
>http://mail.yahoo.com 
>
>
____________________________________________________________
Brent Easton                       
Analyst/Programmer                               
University of Western Sydney                                   
Email: [EMAIL PROTECTED]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/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