Match Card Lottery

Discussion in 'JS Plugin Releases (RMMV)' started by mjshi, Jan 22, 2017.

    Tags:
  1. mjshi

    mjshi Jack of Most Trades Veteran

    Messages:
    891
    Likes Received:
    707
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    N/A

    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.

    [​IMG]

    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
     
    Last edited: Mar 22, 2018
    #1
    CoryH, Val, Rozel and 12 others like this.
  2. Lionheart_84

    Lionheart_84 Veteran Veteran

    Messages:
    462
    Likes Received:
    42
    First Language:
    Italian
    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???
     
    #2
  3. mjshi

    mjshi Jack of Most Trades Veteran

    Messages:
    891
    Likes Received:
    707
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    N/A
    @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. 
     
    #3
  4. Lionheart_84

    Lionheart_84 Veteran Veteran

    Messages:
    462
    Likes Received:
    42
    First Language:
    Italian
    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 ???
     
    #4
  5. mjshi

    mjshi Jack of Most Trades Veteran

    Messages:
    891
    Likes Received:
    707
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    N/A
    @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.
     
    #5
  6. Neo Soul Gamer

    Neo Soul Gamer Veteran Veteran

    Messages:
    612
    Likes Received:
    327
    Location:
    Nova Scotia, Canada
    First Language:
    English
    Primarily Uses:
    N/A
    Wow, very solid work! Love it.
     
    #6
  7. LxCharon

    LxCharon I'm the best hyperbole writer in the world. Veteran

    Messages:
    137
    Likes Received:
    139
    Location:
    Austin, TX
    First Language:
    English
    Primarily Uses:
    RMMV
    This looks great! Good Job!
     
    #7
  8. mjshi

    mjshi Jack of Most Trades Veteran

    Messages:
    891
    Likes Received:
    707
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    N/A
    #8
  9. Lionheart_84

    Lionheart_84 Veteran Veteran

    Messages:
    462
    Likes Received:
    42
    First Language:
    Italian


    Yes good, it was just what I wanted !!! :D  A picture like a wallpaper in the background !!!! :)  and ok ... Go ahead calmly !!! ;)


    I wait from you soon !!! Still great job !!! :guffaw:
     
    #9
  10. Gabrelik

    Gabrelik Almighty Maker of Sandwiches Veteran

    Messages:
    770
    Likes Received:
    1,281
    Location:
    Florida, USA
    First Language:
    English
    Primarily Uses:
    RMMV
    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. 
     
    #10
  11. mjshi

    mjshi Jack of Most Trades Veteran

    Messages:
    891
    Likes Received:
    707
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    N/A
    #11
    SoSick. likes this.
  12. Gabrelik

    Gabrelik Almighty Maker of Sandwiches Veteran

    Messages:
    770
    Likes Received:
    1,281
    Location:
    Florida, USA
    First Language:
    English
    Primarily Uses:
    RMMV
    Awesome. I will definitely test this out as soon as I can. Thank you for this contribution! 
     
    #12
  13. Lionheart_84

    Lionheart_84 Veteran Veteran

    Messages:
    462
    Likes Received:
    42
    First Language:
    Italian
    #13
  14. mjshi

    mjshi Jack of Most Trades Veteran

    Messages:
    891
    Likes Received:
    707
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    N/A
    @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.
     
    #14
  15. Lionheart_84

    Lionheart_84 Veteran Veteran

    Messages:
    462
    Likes Received:
    42
    First Language:
    Italian


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


    So ... will be your next update ???  ;)
     
    #15
  16. mjshi

    mjshi Jack of Most Trades Veteran

    Messages:
    891
    Likes Received:
    707
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    N/A
    update 1.01


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


    The main download has been updated.
     
    Last edited by a moderator: Jan 25, 2017
    #16
    SoSick. and Gabrelik like this.
  17. nandaron

    nandaron currently doing voice work Member

    Messages:
    12
    Likes Received:
    6
    Location:
    Livonia, Michigan
    First Language:
    English
    Primarily Uses:
    RMMV
    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![
     
    Last edited by a moderator: Jan 28, 2017
    #17
  18. mjshi

    mjshi Jack of Most Trades Veteran

    Messages:
    891
    Likes Received:
    707
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    N/A
    @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.


    [​IMG]
     
    #18
  19. Lionheart_84

    Lionheart_84 Veteran Veteran

    Messages:
    462
    Likes Received:
    42
    First Language:
    Italian




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


    Thanks for updating the command window !!! :guffaw:
     
    #19
  20. nandaron

    nandaron currently doing voice work Member

    Messages:
    12
    Likes Received:
    6
    Location:
    Livonia, Michigan
    First Language:
    English
    Primarily Uses:
    RMMV
    This is very, very helpful. Thanks and again, thanks for the plugin!
     
    #20

Share This Page