Match Card Lottery


Match Card Lottery v1.01a
by mjshi- OK for use in all projects with credit

Get it here!

A scratch-card-lottery-type minigame for your projects. Play and win epic prizes!
Generously donated to the community by the wonderful tale of these very forums.
​
Features
- Match three cards of the same type to win!
- Specify a type to be the "wild card"-- this card will now change to match other card types. Read help for more information.
- Ability to change game rules and prize pools mid-game via plugin commands
- Includes graphics assets drawn by yours truly

Make sure that the assets are placed in the correct folders! Otherwise, this minigame will not run.

Video Demo



Alternate Graphics - download here
Thanks to @Zael for creating these! Full credit info and instructions in the zip file.

nql7HT6.png


Version History
1.0-pre plugin completed
1.0 plugin released, mouse input support added
1.01 added option to use a custom background and change the replay window's command text.
1.01a bugfixes

Credit
mjshi
Beautiful plugin !!! Just one thing ... you can not quit the mini game when you want !!! ... by pressing ESC !!!


Or you can only win or lose !!! You can take a chance to exit from mini game???
@Lionheart_84 You can't do that because when you replay the minigame it consumes a ticket, and whenever you open the minigame it consumes a ticket. So in order to prevent players from accidentally wasting tickets, I force them to either win or lose before allowing them to quit.


Also, if you flip over two cards and they don't match, if I allowed quitting the player could simply quit the minigame and try again, giving players a way to cheat and get better prizes. 
Ok ... it is lawful your answer !!! You have done a really good job !!!


And if I can give you a hint ... you can even set a graphic background for the right side of the plugin ???


maybe choice ??? Understand in what sense ???
@Lionheart_84 If I'm understanding you correctly, you want me to add a parameter that allows you to add a background to the minigame, right?


The answer for now is "we'll see", I'm a bit busy today but I might get back to you in three days or so about that.
Wow, very solid work! Love it.
This looks great! Good Job!
@LxCharon @Neo Soul Gamer Thanks! I'm glad you all like it!
@Lionheart_84 If I'm understanding you correctly, you want me to add a parameter that allows you to add a background to the minigame, right?


The answer for now is "we'll see", I'm a bit busy today but I might get back to you in three days or so about that.



Yes good, it was just what I wanted !!! 😀  A picture like a wallpaper in the background !!!! 🙂  and ok ... Go ahead calmly !!! 😉


I wait from you soon !!! Still great job !!! 🤣
An excellent mini-game, to be sure. Well done! 🙂  I would also second the request for the option of placing a background on the game. If you have time, of course. 
@Lionheart_84 @Gabrelik 


It's actually done, I just haven't done any bugtesting, well, at all.


Use it for now, I'll update the main link once I confirm that it works.


https://www.dropbox.com/s/4kx6rhhvtqb5es2/MatchCardLottery.js?dl=1
Awesome. I will definitely test this out as soon as I can. Thank you for this contribution! 
@ Lionheart_84  @Gabrelik 


In realtà è fatto, io non ho fatto alcun bugtest, bene, a tutti.


Usalo per ora, io aggiornare il link principale una volta confermo che funziona.


https://www.dropbox.com/s/4kx6rhhvtqb5es2/MatchCardLottery.js?dl=1



Compliments!!! 😀  Now with the bg from all another aspect !!! 😉


Thank you for having accepted my proposal !!! 🤣


only one thing ... where I can change the word "REPLAY" ???  🙁
@Lionheart_84 


You can't, not yet. I made this with English-speakers or English-based games in mind, I suppose if you were making a game in another language you'd want the option to change that. 


Will work on it.
@Lionheart_84 


You can't, not yet. I made this with English-speakers or English-based games in mind, I suppose if you were making a game in another language you'd want the option to change that. 


Will work on it.



Ah, ok ... !!! I changed a little bit all the words ... but just could not find the word "REPLY" !!! 😀


So ... will be your next update ???  😉
update 1.01


Added option to use a custom background and change the replay window's command text.


The main download has been updated.
Hi mjshi, Hi all, this is my first post on the forums, so hopefully all goes well.


First off, really enjoy this plugin. I am however running into some issues with the Prize Window. I am using a whole slew of plug-ins, two of which I think are causing some issue with your plug-in. The first is Yanfly's core engine, particularly the screen resolution bit. And the second is Masked' ScreenZoom. 


Your plug-in works as intended. The only issue is that the Prize Window alignment and spacing are really spread out. The cards would also be like this, however you've added nifty setting for the x and y offset, and personal space. As a request, would it be a lot to add alignment controls for the prize window as well? or is there a simple bit of code I could add to this part of the code: "Scene_MatchCardLottery.prototype.createPrizeWindow = function() {"


I am new to programming so I am a little lost on how to modify things.


Any help anyone could provide would be appreciated. Thanks![
@nandaron


I'll add plugin parameters for that when I have time (currently, the next two, three weeks will be a bit busy) but for now, here you go!


It's an annotated picture of the prize window things. The red text is the stuff that might be relevant to you in terms of editing it.


e54371a89d5e40e1aa5ab6788bb9ef74.png
update 1.01


Added option to use a custom background and change the replay window's command text.


The main download has been updated.





Thank you!!! 🤣 I appreciate very much that you have accepted my advice !!! 🤣


Thanks for updating the command window !!! 🤣
@nandaron


I'll add plugin parameters for that when I have time (currently, the next two, three weeks will be a bit busy) but for now, here you go!


It's an annotated picture of the prize window things. The red text is the stuff that might be relevant to you in terms of editing it.



This is very, very helpful. Thanks and again, thanks for the plugin!

Original thread: https://forums.rpgmakerweb.com/threads/match-card-lottery.73955/