[Plugin] Matcher

Post your completed addons to share with the community

Post » Sun Sep 30, 2012 1:37 am

Document

====


This plugin try to find matched pattern on board object.

This is a sample of using this plugin --
Match 3 in hex board.
Capx




It needs 3 parts to get matched pattern.
- action:Get matching tiles
- condition:On get symbol , expression:TileUID , action:Set symbol
- condition:On matching pattern

Each tiles at board could have one symbol in one character.
When call "action:Get matching tiles"(action at event 6), plugin will
1. get all symbols on the board by "condition:On get symbol"(event 7) and "action:Set symbol". Each tile will call this event one time.
2. then it will check each target pattern by "condition:On matching pattern"(event 8). Put matched tiles into instance group. So that user could get matched tile instances of one pattern under these conditions. Each matched tiles group will call this event one time.
Remember setup board and instance group for matcher plugin by "action:Setup" before using it.

This plugin could find pattern at square grid board (board plugin + SquareTx plugin) or hex grid board (board plugin + HexTx plugin).


Advance:
2d matched pattern
This plugin not only could find 1d pattern, it could also find 2d pattern.
Capx
The 2d pattern is shown by csv format. For example,
Code: Select all
",1
1,1
,1"

means
Code: Select all
_o
oo
_o
-- it is a "T" shape.rexrainbow2013-07-30 15:57:08
Last edited by rexrainbow on Tue May 05, 2015 9:18 am, edited 3 times in total.
B
108
S
26
G
250
Posts: 4,403
Reputation: 141,123

Post » Tue Oct 02, 2012 8:46 pm

Nice, it looks it's designed for puzzle games!
B
96
S
34
G
29
Posts: 3,139
Reputation: 28,236

Post » Tue Oct 16, 2012 12:03 am

Update:

Add "condition:On matching N symbols". User could use this condition to assign "On matching 3 continuous symbols" directly without list all possible patterns.
B
108
S
26
G
250
Posts: 4,403
Reputation: 141,123

Post » Tue Oct 16, 2012 10:20 am

Good job Rex :) very usefull :)
B
32
S
9
G
5
Posts: 27
Reputation: 5,285

Post » Sun Nov 25, 2012 2:12 am

@soybean

Yes, the "expression:TileUID" only index to tile (z=0 on board object). But user could use the tile uid to pick the chess standing on this tile. (Actually, there two expression -- "expression:TileX", "expression:TileY" which might help user to get chess more easily. For example, get chess uid by "expression:XYZ2UID(TileX, TileY, 1)" )

Or user could save the symbol at instance variable of tile instance when moving chess.

"Tile" (z=0) is just a base line -- each chess need to stand on a tile (z=0).
B
108
S
26
G
250
Posts: 4,403
Reputation: 141,123

Post » Tue Nov 27, 2012 9:34 am

Unfortunately, example .capx is not accessible anymore.xoros2012-11-27 09:36:31
B
45
S
11
G
4
Posts: 515
Reputation: 7,389

Post » Tue Nov 27, 2012 9:42 am

@xoros

Oh no~~~ the server had been blocked, sorry.
Do you have suggestion about free server? I used 1freehosting currently. It might be broken sometimes.rexrainbow2012-11-27 09:43:56
B
108
S
26
G
250
Posts: 4,403
Reputation: 141,123

Post » Tue Nov 27, 2012 10:04 am

The only thing which comes to my mind is dropbox.
Or something like this:
http://disk.yandex.com/
B
45
S
11
G
4
Posts: 515
Reputation: 7,389

Post » Tue Nov 27, 2012 10:14 am

@xoros

Thanks, I will take a look to yandex. I had dropbox, but it almost full.
B
108
S
26
G
250
Posts: 4,403
Reputation: 141,123

Post » Tue Nov 27, 2012 1:15 pm

@xoros

The server is back! You could download capx now.
B
108
S
26
G
250
Posts: 4,403
Reputation: 141,123

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests