RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
MiniGame: Win the Lottery!

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 83
MiniGame: Win the Lottery!

Author: BulletXt (bulletxt@gmail.com)
Version: 0.1
Date: 16/05/2009
License: Gnu General Public License 3


A great minigame for your game. Player can play the lottery and win a jackpot prize! It's very simple, there are 10 balls and three of them get extracted. Player must choose and guess the three numbers that will get extracted!!

According to Probability, the chances player wins are 1 out of 120. There isn't much to say about, it's a lottery minigame!

Screenshot:



Download Demo: here
Cheers,
BulletXt


[/center]

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Neat!

Though I'm guessing the chances of winning are less than 1 / 27.

It ought to be:

Code: [Select]
(3 / 10)*(2 / 9)*(1 / 8)

Which is 6 / 720 = 1 / 120

That is, assuming you don't rig the game to give higher probability to the player.
« Last Edit: May 17, 2009, 01:02:21 AM by modern algebra »

**
Rep:
Level 83
oops :S

of course it can't be 1 out of 27 :D I was probably sleeping while calculating that :D

Thanks for pointing it out!

**
Rep:
Level 82
I love naruto and i want to make a naruto rpg!
Neat!

Though I'm guessing the chances of winning are less than 1 / 27.

It ought to be:

Code: [Select]
(3 / 10)*(2 / 9)*(1 / 8)

Which is 6 / 720 = 1 / 120

That is, assuming you don't rig the game to give higher probability to the player.

i know this is a really really old post but can someone change the script for me to make it like a 50%/100% chance they can win?i am not that good at scripting...

**
Rep:
Level 83
50% of chance to win ? this is too easy , no ?

I don't agree in the statistic calculation .
You have 1 number to guess between 10 = 1/10
then 1 number to guess between 9 = 1/9
then 1 number to guess between 8 = 1/8
So the chance to win this lottery is 1/720 = 0,14% ... very difficult .

50 % . it is just one number to guess between 2 . Is that really what you want ?
You can use my scripts freely . but not for commercial use .
:ccbync:
Don't encrypt your game !!!
Want to give me credit ? Easy ,add me in your game :

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
The order doesn't matter dricc, from what I understood of the game. SO it is 1 / 120, rather than 1 / 720 - still a very low chance.

But a 50% chance is silly, given the nature of the game. The only way to do so fairly would be to reduce the number of balls to 2 and have the user just choose 1. Otherwise, you'd need to invent an algorithm where the actual spot chosen doesn't matter, but it just calculates a fairly high chance you get one of the numbers chosen. But then the game just seems ridiculous.

If you want a game with a 50% chance to win, then just randomize a variable and do it with events. The purpose of having a game like this would be lost if you did it with 50% chance.