[MV] roulette and dice roll mechanics?

So I wanted to create a character with a gambling theme and wanted to do the following.

1. An ability that in a way rolls 2 six-sided dice and deals damage based on the result, lower numbers being less damage and higher numbers being more damage.

2. Roulette I wanted the character to have an ability that has a wheel-of-fortune-esque vibe, as in a wheel with 8 panels appears, 2 with hearts, 2 with clubs, 2 with spades, and 2 with diamonds, and the result has a different effect depending on the symbol it lands on.

3. And lastly at the beginning of each of this character's turn if 1 or more allies are presently KO'd, he rolls 2 six-sided dice to revive all KO'd allies if he rolls 2 of the same number and the HP they revive with depends on the roll multiplied by 10, ex: two 4's would revive all ko'd allies and restore them to 40% of max HP.
Is there a plugin for this kinda stuff?

And as a side thing, anyone know a script that let's me modify the functions of stats?
I think I kno da wae

SdsLFlxAJkpcvWWapf8a0ADeKlUuL07edY3-rNXZo_Y


This was a random set for a fruit machine (only the first spinner)

Red commands are the ones you should study.

First command sets the variable to 0.
Second command sets another variable to have a random value between 1 and 100. That because we want to represent 100%
We give the first variable a chance to be 4. This chance equals to 10%. That would be the second variable being >=90
The next case needs to have a 30% chance. Thus 90 - 30 = 60, so the Else will check if the variable is >= 60
and so on.



Randomness.PNG
here your code for wheel-of-fortune :popcorn:
http://pixijs.io/examples/#/demos/slots-demo.js
here your code for wheel-of-fortune :popcorn:
http://pixijs.io/examples/#/demos/slots-demo.js

Me gusta!
I think I kno da wae

SdsLFlxAJkpcvWWapf8a0ADeKlUuL07edY3-rNXZo_Y


This was a random set for a fruit machine (only the first spinner)

Red commands are the ones you should study.

First command sets the variable to 0.
Second command sets another variable to have a random value between 1 and 100. That because we want to represent 100%
We give the first variable a chance to be 4. This chance equals to 10%. That would be the second variable being >=90
The next case needs to have a 30% chance. Thus 90 - 30 = 60, so the Else will check if the variable is >= 60
and so on.



Randomness.PNG

The images didn't load. 🙁
Black picture with eventing inside. You say you can't see that?
Nevermind the [img| in the end.
Black picture with eventing inside. You say you can't see that?
Nevermind the [img| in the end.

It shows up as a faint grey box with IMG on it
try Shift+Refresh button on you navigator , to refresh Cache
try Shift+Refresh button on you navigator , to refresh Cache

Yeah I use my phone for the site, my computer seems to hate this site and my phone is questionable with this site
I know it's a late
But here a project I made 6 years ago


I now made new version.
If people want it I will share the project.
Necro-post notice: @olivergame

Original thread: https://forums.rpgmakerweb.com/threads/mv-roulette-and-dice-roll-mechanics.93524/