VASSAL Reference ManualHome > 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. Any other trait of this piece can reference this name in an Expression or Message Format to check or display its value. Value: The value of the property at the start of a new game or when a piece is first created. 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 whenever an Increment numeric value or Prompt user operation is performed. Note that Set Value Directly operations will not honor this constraint. Maximum Value: Numeric values will be restricted to no more than this number whenever an Increment numeric value or Prompt user operation is performed. Note that Set Value Directly operations will not honor this constraint. Wrap Around If true, then when incrementing this numeric property, values will wrap around from the maximum to the minimum and vice versa. Key Commands Adds any number of commands to the right-click context menu for this Game Piece. Click the New button to add a new command and the Remove button to remove one. For each command: Menu Command: Right-click context menu item that will initiate this operation (can be left blank if only the Key Command portion is to be used). Key Command: Key Command or Named Key Command that will initiate this operation. Type: Select the way in which this command will change the property:
SEE ALSO: Marker, Set Global Property |