Trilobytes MV: Higher or Lower

Higher or Lower v1.00
Trihan
​

Introduction
Thanks to a commission by @kaleemmcintyre I bring you the ultimate minigame for your game's casino! (because of course you have a casino). Higher or Lower is a simple game: a card is drawn, and you guess whether the next one is higher or lower than it. If you're correct, you double your stake. If you're wrong, you lose everything. All the excitement of Vegas in the comfort of your own home!

Features
- adds a minigame scene to your game that can be called via plugin command
- customisable number of total cards, up to a total of 7
- double-randomised deck! Each card is added to the deck in random order and then drawn out randomly as well, so the chances of a duplicate run are extremely remote
- customisable starting stake
- automatically checks party gold for sufficient funds
- jokers are an automatic win regardless of guess
- automatically handles running out of card draws
- card animations for moving into place and flipping
- ticking winnings indicator

Screenshots
1673233653536.png
1673233676489.png
1673233692293.png
1673233716585.png
1673233735402.png
1673233758336.png



How to Use
Install the plugin in your plugin manager. Place the attached background image in the parallax folder and the card image in the pictures folder.

Background.png
cards_jfitz.png


Plugin Commands / Script Calls
You can call the game scene with the plugin command

Code:
HigherOrLower maxCards stake

If you enter a maxCards value higher than 7, it will cap at 7. Stake has no upper limit.

Demo
N/A. Will provide if there's demand for it.

Download
You can get the plugin code at Pastebin:

Terms and Credits
This plugin is free to use in commercial or non-commercial games. Please credit Trilobytes or Trihan.
@Trihan Thanks for sharing this! It is very cool!

For practice, I am thinking of trying something like this with dice rolls. Where the "dealer" rolls the dice to establish the first total. Then the player chooses whether their roll result will be higher or lower. They roll the dice and if they chose right, they win. If not, they lose. And then they can keep playing if they want.

I am thinking that I can do that completely with Events.

Eventually I want to learn how to make plugins, but I am still busy learning what I can do without them first.

In my mind, the Eventing would be pretty straight forward. Does that sound about correct?

I already have a random dice roll Event so that part is good.

Anyway, awesome mini game and thanks for sharing this!
@Trihan Thanks for sharing this! It is very cool!

For practice, I am thinking of trying something like this with dice rolls. Where the "dealer" rolls the dice to establish the first total. Then the player chooses whether their roll result will be higher or lower. They roll the dice and if they chose right, they win. If not, they lose. And then they can keep playing if they want.

I am thinking that I can do that completely with Events.

Eventually I want to learn how to make plugins, but I am still busy learning what I can do without them first.

In my mind, the Eventing would be pretty straight forward. Does that sound about correct?

I already have a random dice roll Event so that part is good.

Anyway, awesome mini game and thanks for sharing this!
Glad you like it!

Doing it with dice should be fairly easy to event, yeah. The hard part is the visuals but you can handle that with pictures simply enough.
Great plugin! Just tried it. idea for the future if you work on it 🙂

Game only ends at the end of all specified cards or when player winnings go back to 0.

Thanks 4 plugin!😉
Great plugin! Just tried it. idea for the future if you work on it 🙂

Game only ends at the end of all specified cards or when player winnings go back to 0.

Thanks 4 plugin!😉
Ah, so you can't choose to stop? Might be an interesting parameter to add.
Ah, so you can't choose to stop? Might be an interesting parameter to add.
No I mean if you win the first two for 5 gold . Then lose the third one . It just takes away 5 gold from winnings. If you lose the next one that’s when game ends and you won 0 gold and lose your initial wager.

Was just surprised to be halfway through the cards and game ends when I get 1 wrong.
No I mean if you win the first two for 5 gold . Then lose the third one . It just takes away 5 gold from winnings. If you lose the next one that’s when game ends and you won 0 gold and lose your initial wager.

Was just surprised to be halfway through the cards and game ends when I get 1 wrong.
The commission request was for a double or nothing game, so that's what I made. 🙂
Love the plugin, but i had made some edits to increase the risk aspect to it that you might want to make into plugin parameters or commands of some sort if youre interested. To give a little context to how I used it, have 2 dealers, one for low stakes games that only accepts a low user inputted wager and deals 4 cards, and a high stakes that requires a minimum wager and deals the full 7 cards.

the low stakes game uses the plugin as is, but the high stakes one removes the "no" option from being added to the initial game confirmation screen and removes the "take earnings" option whenever you win a round. My reasoning for the first change was that by default, the minigame shows you the first card before you agree to the game and allows you to back out without penalty if it isnt favorable. I didnt dislike that for a low odds game but when youre playing for a high reward, i felt like there should be higher risk. for the second change, I wanted to make a special high risk type where you must win all rounds to win and i thought that it was strange to not have an option for it
Love the plugin, but i had made some edits to increase the risk aspect to it that you might want to make into plugin parameters or commands of some sort if youre interested. To give a little context to how I used it, have 2 dealers, one for low stakes games that only accepts a low user inputted wager and deals 4 cards, and a high stakes that requires a minimum wager and deals the full 7 cards.

the low stakes game uses the plugin as is, but the high stakes one removes the "no" option from being added to the initial game confirmation screen and removes the "take earnings" option whenever you win a round. My reasoning for the first change was that by default, the minigame shows you the first card before you agree to the game and allows you to back out without penalty if it isnt favorable. I didnt dislike that for a low odds game but when youre playing for a high reward, i felt like there should be higher risk. for the second change, I wanted to make a special high risk type where you must win all rounds to win and i though that it was strange to not have an option for it
Those are cool changes, but I wasn't really planning on expanding this since it was a commission for a specific purpose. Maybe I'll do a new version with those edits at some point though. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/trilobytes-mv-higher-or-lower.153917/