Create account / Log in

Dynamic Property and Text Label

Topics related to the main Vassal engine.

Moderators: uckelman, Tim M

Dynamic Property and Text Label

Postby jimpyle » October 15th, 2013, 1:45 am

I found this note under Dynamic Property in the Designer's Guide:

Example: we define a Dynamic Property called Hit Points that represents the amount of damage taken by a warrior. Hit Points
has a maximum level of 20, and a minimum of 0. We add a command to the Property with a Command Menu item of Change Value
and a shortcut of Ctrl-V. When the user selects Change Value, the module prompts for the new value of Hit Points. Dynamic
Properties do not display their values on a Game Piece, but we could display the current value of each warriorʼs Hit Points using a
Text Label or a Layer.


Is there a way to have a Text Label automatically set to the Dynamic Property's value?

Thanks,

Jim
User avatar
jimpyle
 
Posts: 65
Joined: March 4th, 2008, 9:17 pm

Re: Dynamic Property and Text Label

Postby jimpyle » October 15th, 2013, 1:57 am

Never mind. I found it! :D
User avatar
jimpyle
 
Posts: 65
Joined: March 4th, 2008, 9:17 pm

Re: Dynamic Property and Text Label

Postby bugggg » October 26th, 2013, 4:22 pm

Why don't you do everyone a favor and document how you did it?
bugggg
 
Posts: 20
Joined: September 21st, 2011, 6:37 pm

Re: Dynamic Property and Text Label

Postby jimpyle » October 30th, 2013, 8:54 pm

Sorry for replying so late.

I have a dynamic property I've named Div_Number

In both the "Text" box and the "Name format" box of the Text Label property window I put $Div_Number$

Jim
User avatar
jimpyle
 
Posts: 65
Joined: March 4th, 2008, 9:17 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests