# VASSAL Reference Manual

Home > Module > Game Piece Palette > Game Piece > Dynamic Property

## Dynamic Property

This trait attaches a Property to a Game Piece and allows you to define commands to change the value of the property during play.
Name: The name of the property.
Value: The value of the property at the start of a new game.
Is Numeric? If true, then changes to the value of the property will be restricted to integer values.
Minimum Value: Numeric values will be restricted to no less than this number.
Maximum Value: Numeric values will be restricted to no more than this number.
Wrap Around If true, then when incrementing this numeric property, values will wrap around from the maximum to the minimum.
Key Commands Adds any number of commands to the right-click drop-down menu for this Game Piece. Hit the New button to add a new command and the Remove button to remove one. For each command:
Menu Command: Right-click menu text for the command.
Key Command: Keyboard shortcut for the command.
Type: Select the way in which this command will change the property:

- Set value directly: Set the property directly to the value of the Expression entered in the New Value field.
- Increment numeric value: Increment the value of the property by the value of the Expression entered in the Increment by field.
- Prompt user: Pop up a dialog and ask the user for a new value for the property. They will be prompted for a new value using the text prompt entered in the Prompt field.
- Prompt user to select from list: Similar to Prompt User but displays a list of items to select from in a drop-down menu. The items in the list can be generated dynamically by Expressions.

SEE ALSO: Marker,Set Global Property