RPG Maker Forums

I am trying to event a poker game similar to this japanese game here. I found a javascript code here. But i do not know how to apply them in to MV conditional branch..

the following are : royal flush, straight flush, 4 of a kind, full house, flush, straight, 3 of a kind 2 pairs, pair, high card..

5 cards are dealt every time and the combination is checked. I will use 5 variables for the suit and 5 variables for values. i do not know how to check elements in the arrays. suit array and value array.

EDIT: I was able to figure about manually without using array properties.
Common Events created:
1. Determine High Card
2. Sort Card Values Ascending
3. Determine Consecutive

Since the card values are arranged in ascending order.. all combinations will be easier to check..
Let's say these sorted array is A B C D E
Combinations like 4 of a kind will only be A A A A B or A B B B B, FullHouse will only be A A A B B , A B B B C, or A B C C C.

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,050
Messages
1,018,548
Members
137,835
Latest member
yetisteven
Top