The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: Bryan Jarrie on June 05, 2010, 08:59:35 PM

Title: How to do a "5 card-draw Poker" & slot-machine casino game event?
Post by: Bryan Jarrie on June 05, 2010, 08:59:35 PM
Does anyone know how to do a "5 card-draw Poker" & slot-machine casino mini-game event?
I need it for my Dragon Warrior 4 remake. And please don't respond with "figure it out yourself!"
I wouldn't be asking for help if it were that simple. Remember, I'm a noob.
Title: Re: How to do a "5 card-draw Poker" & slot-machine casino game event?
Post by: Kokowam on June 05, 2010, 09:08:24 PM
Figure it out yourself. >_> If you know ANYTHING about eventing, you should be able to do this albeit inefficiently or not right on the first time (given that you're fairly bad at eventing). I won't tell you how to do it completely, but I'll at least guide you.

Just take it in steps:
- For your poker game, just start out by creating a system that registers which card you have in your hand. Think of ways on your own and expand your own knowledge and experience. Then, you'll need to find visuals to represent that and event that part of the system.

Then run conditional branches for checks to see what cards you have in your hand and what kind of pairs or three-of-a-kinds or straights or whatever you have.

- For your slot machine, start out the same way. Set up a certain order for each slot machine reel and start out with eventing and designing (the visuals) the reels themselves; just try to make it so you can see the icons on the reel and can have RPG Maker return a value that corresponds to the icon.

Then, you can run conditional branches into your system to check for icons that are three in a row. Obviously doing just one row would be easiest, but you can do diagonals and whatever else you want.

If you didn't understand what I said, I suggest you learn eventing.
Title: Re: How to do a "5 card-draw Poker" & slot-machine casino game event?
Post by: Bryan Jarrie on June 05, 2010, 10:01:54 PM
As for graphics, I found a set of sprites for the cards, including flipping animations, and they came with
both poker & slot screens. But I don't know what to store them & use them as. The 2 screens came with the sprite set, so the whole thing is pretty huge. But the biggest problem is that even when I saved it as a 256 color Bitmap, it still gave me the finger & said "unsupported PNG image". What the hell is up with that? It's supposed to support 256 color PNG images & it's saying it's unsupported? Any way to get around this? And what should I use the sprites as; char sets, pictures, etc.?
Title: Re: How to do a "5 card-draw Poker" & slot-machine casino game event?
Post by: Mjustin on June 06, 2010, 08:03:06 PM
Quote from: Bryan Jarrie on June 05, 2010, 10:01:54 PM
But the biggest problem is that even when I saved it as a 256 color Bitmap, it still gave me the finger & said "unsupported PNG image". What the hell is up with that? It's supposed to support 256 color PNG images & it's saying it's unsupported?

Save it as a PNG, not a bitmap.