Plugin : Matcher

Author:Rex.Rainbow

Download

Properties

Axis of square board

  • The axis to get symbol for 1d pattern matched on square board. Ignored it when using hex board

Horizontal

  • Compare at horizontal axis
    • Options : ["No","Yes"]

Vertical

  • Compare at vertical axis
    • Options : ["No","Yes"]

Isometric

  • Compare at isometric axis
    • Options : ["No","Yes"]

Update symbols

  • Auto or manual update symbol table
    • Options : ["Manual","Auto"]

Wildcard

  • Wildcard symbol. Set to "" will ignore this feature.

Actions

Request: Symbol

Action:Set symbol

  • Set symbol. Used in "Condition: On get symbol function".
    • Symbol ( string ) : Symbol. "" is null symbol.

Setup

Action:Setup

  • Set board object and instance group object.
    • Board ( object ) : Board object
    • Group ( object ) : Instance group object

Square board

Action:Compare at horizontal axis

  • Enable the Comparing at horizontal axis.
    • Horizontal ( Combo ) : Horizontal axis.
      • Options : ["No","Yes"]

Action:Compare at vertical axis

  • Enable the Comparing at vertical axis.
    • Vertical ( Combo ) : Vertical axis.
      • Options : ["No","Yes"]

Action:Compare at isometric axis

  • Enable the Comparing at isometric axis.
    • Isometric ( Combo ) : Isometric axis.
      • Options : ["No","Yes"]

Symbol array: force update

Action:Update all

  • Force updating symbol array.

Action:Update cell by LXY

  • Force updating symbol at logical XY.
    • Logic X ( number ) : The X index (0-based) of the chess.
    • Logic Y ( number ) : The Y index (0-based) of the chess.

Action:Update cell by chess

  • Force updating symbol at tile.
    • Tile ( object ) : Tile object.

Action:Update cell by chess uid

  • Force updating symbol at tile by UID.
    • UID ( number or string ) : The UID of chess

Wildcard

Action:Set wildcard

  • Set wildcard symbol.
    • Wildcard ( string ) : Wildcard symbol, Set to "" will ignore this feature.

Expressions

Request

Expression:TileUID

  • Get UID of target tile.

Expression:TileX

  • Get logic X of target tile.

Expression:TileY

  • Get logic Y of target tile.

Expression:MatchedSymbol

  • Get matched symobl under "Condition:On N symbols", or "Condition:On 2D template pattern".

Symbol

Expression:NOSYMBOL

  • Get value of NOSYMBOL.

Expression:Wildcard

  • Get value of wildcard symbol.

Expression:LXY2Symbol

  • Get symobl on logic X ,Y.
    • Logic X ( number ) : The X index (0-based) of the chess.
    • Logic Y ( number ) : The Y index (0-based) of the chess.

Expression:UID2Symbol

  • Get symobl by tile/chess UID.
    • UID ( number or string ) : The UID of chess

Conditions

Any: 1D Patern

Condition:Any 1d pattern

  • Return true if there has any 1d pattern matched. Put 1 matched result into group if found.
    • Pattern ( string ) : Pattern. It could splitted by ",".
    • Group ( string ) : Put result in this group

Condition:Any N symbols

  • Return true if there has any N continuous symbols matched. Put 1 matched result into group if found.
    • Count ( number ) : Continuous symbols count.
    • Group ( string ) : Put result in this group

Any: 2D Patern

Condition:Any 2D pattern

  • Return true if there has any 2d pattern matched. Put 1 matched result into group if found.
    • Pattern ( string ) : Pattern, splitted by ","
    • Group ( string ) : Put result in this group

Condition:Any 2D template pattern

  • Return true if there has any 2d template pattern matched. Put 1 matched result into group if found.
    • Template ( string ) : Pattern template, splitted by ",".
    • Group ( string ) : Put result in this group

For each: 1D Patern

Condition:For each 1d pattern

  • Repeat the event for each 1d pattern matched.
    • Pattern ( string ) : Pattern. It could splitted by ",".
    • Group ( string ) : Put result in this group

Condition:For each N symbols

  • Repeat the event for each N continuous symbols matched.
    • Count ( number ) : Continuous symbols count.
    • Group ( string ) : Put result in this group

For each: 2D Patern

Condition:For each 2D pattern

  • Repeat the event for each 2d pattern matched.
    • Pattern ( string ) : Pattern, splitted by ","
    • Group ( string ) : Put result in this group

Condition:For each 2D template pattern

  • Repeat the event for each 2d template pattern matched.
    • Template ( string ) : Pattern template, splitted by ",".
    • Group ( string ) : Put result in this group

If: No matched

Condition:No pattern

  • Return true if no matched pattern in latest "action:Get matched tiles".

Matched axis

Condition:Matched axis (Square)

  • Return true if matched at specifics axis, used under "condition: On N symbols", or "condition: On 1d pattern".
    • Axis ( Combo ) : Matched axis.
      • Options : ["Horizontal","Vertical","Isometric"]

Condition:Matched axis (Hex)

  • Return true if matched at specifics axis, used under "condition: On N symbols", or "condition: On 1d pattern".
    • Axis ( number ) : Axis index, in 0,1,2.

Symbol

Condition:On get symbol

  • Get symbol of a tile.