I used
this to call the script when you consume an item. Works perfectly. Saves having to do the work of making a special store or any of that. Just whack the line in the item note and you have items that work like redemption tickets.
It's ugly, but as a proof of concept it works.
Got stuck for ages trying to calculate co-ordinates as I was using an offset columns style grid. Found it was easiest to just have two different checks depending on whether the column you're in is odd or even. Very duct-tape solution, but it works.
One question I have. In the Game_TripleTriad() method there's a line:
this.board_state = [[0, 1, 8], [2, 3, 4, 5, 6, 7, 9]];
I'm not quite sure what that's setting up. In create_board_map it immediately gets overwritten with a different array filled with -1 to set them as blank squares.
Thanks so much for this plugin. There's no way I'd have the time or knowledge to do this sort of thing if I had to make the entire card-game from scratch.