Progressive Prize Pick

Discussion in 'JS Plugin Releases (RMMV)' started by mjshi, Jan 20, 2018.

  1. mjshi

    mjshi Jack of Most Trades Veteran

    Messages:
    890
    Likes Received:
    707
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    N/A
    back at it with another card-based minigame...

    Progressive Prize Pick v1.0
    by mjshi- OK for use in all projects with credit

    Get it here!

    A card picking minigame where you balance risk with reward.
    Commissioned by the wonderful tale of these very forums.

    Features
    - Match at least two of a single type of card to have that added to the claim bag
    - Match more of a single type of card to get better prizes!
    - Click the bag (or press the cancel button) to claim the prizes.
    - But watch out-- if you flip over a blank card, the game is over and you lose everything! (well, everything in the bag)
    - Ability to change prize pools mid-game via script commands

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

    Video Demo



    Alternate Graphics - download here/mirror
    Thanks to @HexMozart88 for creating these!
    Free for commercial and non-commercial use with credit.
    [​IMG]

    F.A.Q.
    Q: The choice window freezes in the background when I launch the minigame!
    A: Because MV processes script stuff pretty much instantaneously, the choice window doesn't have enough time to close & thus gets "frozen" in the background. To fix this, put a 10 frame delay before your script call.

    Q: Can I get a working example of how to run this that I can copy/paste into my project?
    A: Yes you can! Paste this into a script command, make sure you have enough tickets, and you're ready to go:
    Code:
    ppp[0] = [ppp.g(100), ppp.g(200), ppp.g(300)]
    ppp[1] = [ppp.g(100), ppp.g(200), ppp.g(300), ppp.g(400)]
    ppp[2] = [ppp.g(100), ppp.g(200), ppp.g(300), ppp.g(400), ppp.g(500)]
    ppp[3] = [ppp.g(100), ppp.g(200), ppp.g(300), ppp.g(400), ppp.g(500), ppp.g(600)]
    ppp[4] = [ppp.g(100), ppp.g(200), ppp.g(300), ppp.g(400), ppp.g(500), ppp.g(600), ppp.g(700)]
    
    SceneManager.push(Scene_ProgressivePrizePick);
    
    Version History
    1.0 plugin released

    Credit
    mjshi
     
    Last edited: Mar 22, 2018
    #1
  2. HexMozart88

    HexMozart88 The Master of Random Garbage Veteran

    Messages:
    1,664
    Likes Received:
    2,989
    Location:
    A small hut in the forest
    First Language:
    English
    Primarily Uses:
    RMVXA
    Ah, nice. That reminds me of like, Super Mario World (those games are really frustrating, LOL). Now I wish there was a script like this for Ace. If not, I'm eventing something like it. :p I'd love to make some GUI for this, though. Just for fun.
     
    #2
    tale and mjshi like this.
  3. mjshi

    mjshi Jack of Most Trades Veteran

    Messages:
    890
    Likes Received:
    707
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    N/A
    @HexMozart88 Glad you like it! You could definitely set up something like this with events, only it'd be a huge pain to do... just imagining it is giving me a headache, haha. There's two main "loops", one being the board and the other the win/lose screen, so I guess that's something to go off of? As for keyboard input, you could have two variables that keep track of the row and column and have stuff move around that way.

    What makes this minigame slightly easier to replicate with events than some of my others is the fact that, technically, the game doesn't know what each card is until you flip it over (kinda like a Schrodinger cat situation). The card is generated when you "observe"/flip it. Six integer variables keep track of how many of each card there should be left, and after a card of a specific type is flipped that corresponding card type's number decreases. So there aren't actually any complicated structures (asides from the prize pool)-- it's all numbers.

    If you do end up making some GUI for this, I'd love to put it up on the main post as an alternate graphics set! I think that'd be pretty cool c:
     
    #3
    HexMozart88 and Sauteed_Onion like this.
  4. Isabella Ava

    Isabella Ava Veteran Veteran

    Messages:
    636
    Likes Received:
    751
    First Language:
    English
    Awesomeeeeeeee, i love yo...ur plugins. You seem focus on Minigame plugins eh.
    My project had installed all of your other minigame plugins as well
     
    #4
  5. mjshi

    mjshi Jack of Most Trades Veteran

    Messages:
    890
    Likes Received:
    707
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    N/A
    @Isabella Ava Yeah, there certainly seem to be quite a few xD I'm happy to hear that you find these useful, and good luck with your project~
     
    #5
    Isabella Ava likes this.
  6. Fernyfer775

    Fernyfer775 Veteran Veteran

    Messages:
    1,297
    Likes Received:
    797
    First Language:
    English
    This is pretty cool, good job! :D
     
    #6
  7. mjshi

    mjshi Jack of Most Trades Veteran

    Messages:
    890
    Likes Received:
    707
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    N/A
  8. kaiijuu

    kaiijuu Veteran Veteran

    Messages:
    106
    Likes Received:
    88
    First Language:
    English
    Primarily Uses:
    RMMV
    This is so cool! Thank you!
     
    #8
  9. Jrrkein

    Jrrkein Veteran Veteran

    Messages:
    112
    Likes Received:
    7
    First Language:
    Indonesia
    I can't set the background even I already have bg.png
     
    #9
  10. mjshi

    mjshi Jack of Most Trades Veteran

    Messages:
    890
    Likes Received:
    707
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    N/A
    @Jrrkein Whoops, sorry! Seems like I had a typo and named the parameter the wrong thing...

    update 1.0a
    Fix to Custom Background parameter. It's now called Custom BG to align with what the plugin's looking for.

    The download link in the main post has been updated ^^
     
    #10

Share This Page