[messages] [Module Design] Keep track of placed Tiles

DrNostromo drnostromo at drnostromo.com
Fri Nov 23 09:08:30 MST 2012


> 1 how to differentiate between players (so green gets the same
> right-click option but puts a green border around the tile),


You should be able to use the PlayerSide = $CurrentPlayer$ filter in
there somewhere. That's a common filter whenever you want an action tied
the player committing the action.


> 2 can a global key command be invoked at the start of a turn? to
> automatically remove the highlights of a player?


If you use a button or some command to start a new turn, you can have it
evoke a GKC to all tiles to reset them. Give all the tiles a Marker
trait like...

TileType = Units

Then send the GKC to apply to all pieces with

CurrentMap = (map the units are on) && TileType = Units

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


More information about the messages mailing list