Pick tiles which match the pattern on board object.
Categories > Board > rex_matcherIntroductionLinksDependenceUsagePrepareConceptSymbolReserve symbolWild card symbolPattern1-d pattern2-d patternGet matched tilesUpdate symbol tableAxis of square board
This plugin picks matched tiles into a group. therefor rex_board and rex_ginstgroup objects should be put into project first.
Each tile has a symbol indicated by a word, like 1, or null, stored in the symbol table.
, is a reserved symbol of delimiter.
Wild card symbol will not be compared, and returns matched directly.
Set wildcard symbol in Wildcard property, or Action:Set Wildcard. (Sample capx)
A pattern is a sequence of symbols, it could be one-dimension, like 111. Or separated by , like 1,1,1.
The pattern also could be two-dimensions represented by csv format, for example
1,1,1 ,1,
This pattern is composed of four "1" symbols within "T" shaped.
Get symbol of a tile
Steps of picking matched tiles
the matching procedure starts by these conditions
1d pattern
Condition:For each 1d pattern,
Condition:For each N symbols
Expression:MatchedSymbol, to get matched symbolCondition:Any 1d pattern, to pick first matched pattern
Condition:Any N symbols, to pick first matched pattern
Expression:MatchedSymbol, to get matched symbol2d pattern
Condition:For each 2D pattern,
Condition:For each 2D template pattern
Expression:MatchedSymbol, to get matched symbolCondition:Any 2D pattern, to pick first matched pattern
Condition:Any 2D template pattern, to pick first matched pattern
Expression:MatchedSymbol, to get matched symbolupdating symbol table for each tile if property Update symbols is set to Auto
Condition:On get symbol,Expression:TileUIDat (Expression:TileX, Expression:TileY, 0)Action:Set symbol.picking each matched tiles into instance group, and trigger sub event.
Condition:No pattern returns true if no matched found in last picking condition.
Symbol table will be updated when
executing picking conditions (Condition:For each 1d pattern, Condition:For each N symbols, ... etc) if Update symbols is set to Auto
Action:Update all
These actions only updates symbol of a tile
Action:Update cell by LXYAction:Update cell by chessAction:Update cell by chess uidThere are three axis for 1d pattern of square board, enable them in properties table or actions
Horizontal, Action:Compare at horizontal axisVertical, Action:Compare at vertical axisIsometric, Action:Compare at isometric axis