Progressive Prize Pick

mjshi

Jack of Most Trades
Veteran
Joined
Feb 16, 2013
Messages
943
Reaction score
764
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.

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:

HexMozart88

The Master of Random Garbage
Veteran
Joined
May 15, 2016
Messages
1,813
Reaction score
3,227
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.
 

mjshi

Jack of Most Trades
Veteran
Joined
Feb 16, 2013
Messages
943
Reaction score
764
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:
 

Isabella Ava

Veteran
Veteran
Joined
Sep 13, 2016
Messages
635
Reaction score
756
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
 

mjshi

Jack of Most Trades
Veteran
Joined
Feb 16, 2013
Messages
943
Reaction score
764
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~
 

kaiijuu

Veteran
Veteran
Joined
Dec 9, 2017
Messages
106
Reaction score
88
First Language
English
Primarily Uses
RMMV
This is so cool! Thank you!
 

Jrrkein

Insert Witty Title Here
Veteran
Joined
Apr 20, 2014
Messages
132
Reaction score
19
First Language
Indonesia
Primarily Uses
RMMV
I can't set the background even I already have bg.png
 

mjshi

Jack of Most Trades
Veteran
Joined
Feb 16, 2013
Messages
943
Reaction score
764
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 ^^
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Hi, there.
I'm Creta Park, as Software engineer and Indie game developer.

Profile : creft.me/cretapark
GitHub : github.com/creta5164
Blog : creta5164.tumblr.com


My stuff

Who shares/sells their scripts/plugins on itch.io? Can I pick your brain?
If you ever need fantasy names and you're bored, make a fictional alphabet. Switch around the letters and see what you get :p
I JUST GOT PROMOTED TO 9TH GRADE BOIS!

Forum statistics

Threads
98,168
Messages
949,921
Members
129,454
Latest member
d3p4z
Top