## VASSAL Reference Manual

Home > Module > Game Piece Palette > Game Piece > Replace With Other

### Replace With Other

A Game Piece with this trait will have a command that replaces this piece with a different piece. You can select any existing piece for the replacement or define a new one from scratch. Description: A brief description of this trait that will appear in the Piece Definer window. Command: The right-click context menu text for this trait. If left blank, no context menu item will appear, but the trait can still be activated with the Key Command. Keyboard Command: The keyboard shortcut or Named Key Command to initiate this trait. Define Replacement: Click the Define Replacement button to open a Piece Definer to create a definition for the new piece from scratch (or to edit the definition you have already created). Select: Click the Select button to use the definition from an existing piece in the module. This acts as a pointer to an existing definition: if the original piece is changed, the piece created by the Replace with Other trait will also change. Horizontal offset: The center of the replacement piece will be placed this many pixels to the right of the center of the original piece. Vertical offset: The center of the replacement piece will be placed this many pixels above the center of the original piece. Match Current State: If selected, VASSAL will attempt to put the replacement piece in the same state as the original piece. Layers will be set to the same level, labels will be given the same value, rotation angles will match, etc. The state of a particular trait will carry over only if it has an exact match in the replacement, i.e. the properties settings of that trait are the same in both the original and replacement piece. Only match states above this trait: If selected, VASSAL will only replace states in traits that appear above this one in the list traits in the game piece editor. For example, the state of a Marker that’s above this one will change if the state in the new game piece. If it’s below, then it will not change if the new game piece has the same marker property. Place marker: Choose whether the new piece should be placed on the top of this piece’s stack, on the bottom, or directly above/below the triggering piece. Keystroke to apply after placement: Optional key command or Named Key Command to be applied automatically to the new piece immediately after being placed. EXAMPLE: A unit that can be destroyed but still leaves a wreck behind can be given this trait to turn it into a wreck. This is more convenient than dragging a new piece from the Game Piece Palette and can’t be accidentally undone, as a Layer trait could. EXAMPLE: A unit representing a General is killed in battle. This trait can be used to replace him with a counter for a new more junior General who will appear as a replacement, and then the "Keystroke to apply after placement" can be used to activate a Send to Location trait on the replacement General’s piece to send that piece to the Turn Track to await availability. SEE ALSO: Place Marker trait, Send to Location trait. |