If statement situation for gold

Hey everyone, I'm quite new here. I typically figure stuff out on my own or find the topic through searching, but can't seem to figure this one out. 

Here is the scenario. I have an npc that asks for 5 gold. If you give it to him he gives you a hint. The problem is even if you don't have a full 5g it still takes what you have instead. 

So how do I get it to do a check and then refuse it if you don't have enough?
use a conditional branch in an event. On the top of page 4 you can setup conditions for the player's gold. Just put the hint and the -5 gold in the branch so they don't happen if they player doesn't have the money.
Ah thanks, I looked there too just didn't notice it had other tabs.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/if-statement-situation-for-gold.18305/