Progressive Prize Pick

● ARCHIVED · READ-ONLY
Started by mjshi 23 posts Page 1 of 2 View original ↗
  1. 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

    [embedded media]

    Alternate Graphics - download here/mirror
    Thanks to @HexMozart88 for creating these!
    Free for commercial and non-commercial use with credit.
    Spoiler
    Z9w97UZ.png

    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
  2. 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.
  3. @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:
  4. 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
  5. @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~
  6. This is pretty cool, good job! :D
  7. This is so cool! Thank you!
  8. I can't set the background even I already have bg.png
  9. @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. @mjshi, sorry when I click to download the link is empty.
  11. I have a bit of a weird error here. For some reason a window is drawn over it making it look really dark. I think the plugin is neat and would love to use it!1643953086097.png
  12. @Vaddix can you show your setup of the event?
    because I think you made a mistake somewhere, otherwise it works
    correctly.
  13. 1643993352933.png
    ShadowDragon said:
    @Vaddix can you show your setup of the event?
    because I think you made a mistake somewhere, otherwise it works
    correctly.
    Of course! I just used the copy-paste from the readme to test it out
  14. @Vaddix the problem lies on the last line where you have a , instead of ]
    which isn't closing, so add that and it should work afterwards, if not,
    add a comma behind each ] and it should work afterwards, but start with
    "]" only :)
  15. ShadowDragon said:
    @Vaddix the problem lies on the last line where you have a , instead of ]
    which isn't closing, so add that and it should work afterwards, if not,
    add a comma behind each ] and it should work afterwards, but start with
    "]" only :)
    Sorry, to necro, but I'm with the same problem as Vaddix, and I was not cappable of fixing it, even following your instructions. Can you share your knowledge a bit more? Here's the code.

    1741326077984.png
  16. TheodoroCOM said:
    Can you share your knowledge a bit more? Here's the code.
    while you miss the entire page, from the look, you use 2 scriptcalls.
    the last one calling it should be right below it.

    but it seems good so far I see it.

    so what problem do you exactly get?
  17. ShadowDragon said:
    while you miss the entire page, from the look, you use 2 scriptcalls.
    the last one calling it should be right below it.

    but it seems good so far I see it.

    so what problem do you exactly get?
    The same as Vaddix, a window over the scene. I tried all ways of the code. With in the same script call, the commas behind each ], even tried reduce the prize code, nothing worked, still this dim window over the scene.

    1741372801043.png
  18. TheodoroCOM said:
    The same as Vaddix, a window over the scene. I tried all ways of the code. With in the same script call, the commas behind each ], even tried reduce the prize code, nothing worked, still this dim window over the scene.
    what version of MV do you use, as the video shows how you can get it to work.
    wait frames is optional by an event without choices, but 10 wait frames if using one.

    I need to check the plugin and set it up here to see whats going on as I don't
    know it either at this point.

    it did work in 1.5.x, 1.6.x might break it of some changes.
    I could try to fix that if it breaks in there.