[messages] [Module Design] Removing all of a certain marker from the map

DrNostromo drnostromo at drnostromo.com
Sat May 20 16:52:38 CEST 2017


In your Marker prototype, include the trait

Marker - PieceType = DONE

Also include a delete command that will activate on Shift-R

On your button, include a Global Key Command with the following:

Menu command = Delete Draw Markers
Keyboard command - Ctrl-R
Global Key command - Shift-R
Mathching Properties - CurrentMap = <map name> && PieceType = DONE
Apply to all pieces

Now when you click the button, it will send a Shift-R to all pieces on
the map named as CurrentMap and all pieces with the marker PieceType =
DONE.

_______________________________________________
Read this topic online here:
http://www.vassalengine.org/forum/viewtopic.php?p=53667#p53667


More information about the messages mailing list