VASSAL Reference Manual

Home > Module > Game Piece Palette > Game Piece > Move Fixed Distance

Move Fixed Distance

Defines a command to move the piece a Fixed distance upwards and to the right.

Description: A description for this trait that appears in the Piece Definer window.
Command Name: Command name that appears on the piece right-click menu.
Keyboard shortcut: Keyboard shortcut of the menu item that initiates the command.
Distance to the right: An Expression specifying the distance to move the piece to the right. Use negative numbers to move the piece to the left.
Distance upwards: An Expression specifying the distance to move the piece upwards.
Move entire stack: Check this option to cause the entire stack containing the piece to be moved, if the stack is not expanded.
Advanced Options: Check this option to display additional options to give more control over the movement. The two numbers specified in the Expressions for movement right, and the two numbers for movement left are multiplied together and added to the left/up distances defined in the basic options.


EXAMPLE: An army unit can conduct a forced march for extra movement. The amount of additional movement depends on its supply, which is tracked by a Layer trait. The Move Fixed Distance trait is given an additional offset of one hex times the value of the supply level.

NOTE: If this piece has a Can Rotate trait listed before this trait, then the resulting direction will be relative to the current facing of the piece.  Example:  If a piece has traits Can Rotate followed by Move Fixed Distance 60 upwards, then the move command will move the piece in whatever direction the top of the piece is facing.  If a piece has traits Move Fixed Distance 60 upwards followed by Can Rotate then the move command will move the piece towards the top of the screen regardless of the facing of the piece.