Gambling Game Set up

I was wondering if anyone could help me out about this gambling setup. In my game I have a dice game that pits you against another NPC player. So far I've got two common events and two variables, one for the player and one for the NPC. Each rolls the die and produces random numbers ranging from 3-18 using common events. However the aspect is you have to get a higher number than your opponent, and that is where I'm having issues. The game gives out money whether you get higher or lower than your opponent. The variable so far reads that if Player Dice Roll is less than the NPC Dice Roll they should lose the roll, but it still pays them gold as if they won... What am I missing?
It would be really helpful to see what you've done so far - with any help requests, screenshots of the event are useful.


However, that being said, I would set it up like this:

Spoiler
De0fsk2.png
Well... That's the problem with my laptop, I cannot take screenshots. It's absolutely horrid. The screenshot button, normally F9, does not like to work. Even if I press my Fn button. >_> What I can do is paste what I have? Will that help? I got it to where it no longer gives out money for failing the roll (don't know how but just glad it works), however, now sometimes it won't read the rolls correctly. Opponent rolls a 3, player rolls a 7-game says player lost... Wat.


The one reason I am using common events instead of the variables as you have shown for the rolls is when I used the random variables from 3-18 they just...kept rolling zeros. All zeroes.


I use a variable for gold carried on the character to interact with the gold they are betting. I didn't use a set number for bets. So I've got, after they place a bet. There's a lot going on...


Change Gold :- {Gambling Bet}
Common Event : NPC Dice Roll
Common Event : Player Dice Roll
   *If : Player Dice Roll > NPC Dice Roll
<Have text here stating they won>
Change Gold :+ {Gambling Bet}
Change Gold :+ {Gambling Bet}    ((So they get their bet back and the opponent's gold too.))
    Else:
<Text saying they lost.>


Then I've got a second conditional branch about jackpots and draws.


If: Player Dice Roll = 18
<Text about jackpot.>
Tripling their gold.
    Else:
If: Player Dice Roll = NPC Dice Roll
<Text explaining draw.>
Gives initial bet back.


The only problem now is the game doesn't like reading things correctly and I don't know what or how to fix it exactly.
I understand what you are saying about your screenshots, but it's just really impossible to say what could be wrong without seeing how you have things actually set up. It could be something as simple as not checking the right conditional, or not having a switch turned or something. (I'm not saying those are it, just that even teeny tiny things you might have overlooked can cause big issues.)


Is there any sort of program that can be downloaded to screenshots? I'd maybe google and see if there is.


The only other thing I know to suggest is to upload the project to Dropbox or something so we can actually take a look at what you have. Because just with what you have written out, I can't begin to tell you why it's not working, though I very highly doubt it's simply that the game "doesn't like reading things correctly".
Try to use Snipping Tool instead.

Original thread: https://forums.rpgmakerweb.com/threads/gambling-game-set-up.71757/