Ok, I know exactly what you're looking for. It's a relatively simple piece of code that we were all given back when we were newer to the program, so don't feel bad that you couldn't figure it out on your own. You have to use the modulus command in Rm2k3 to be able to split a number into its various digits (ones, tens, hundreds, thousands, etc.).
Here's a screenshot of the code.

Basically the top section of the code is the most important. You need to create 4 variables, one for each digit you will want to retrieve. (ThousandDigit, HundredDigit, TenDigit, and OneDigit). The first thing you do is set all the those variables to be equal to whatever number you want to split (in your case, money). Then for the next line of code select your HundredDigit as your variable, Modulus as your operation, and the number "1000" as your operand. Do the same for the TenDigit and OneDigit, but using the modulus value of 100 and 10 respectively. Then the next line of code you do ThousandDigit minus Hundred Digit. After that, HundredDigit minus TenDigit, and finally, TenDigit minus OneDigit. Your last three lines are to divide the ThousandDigit value by 1000, HundredDigit by 100, and TenDigit by 10. That's it! You've successfully split a number into all its separate digits.
So if your money was 1456 gold, after you run that line of code these would be what the variables would end up as:
ThousandDigit = 1
HundredDigit = 4
TenDigit = 5
OneDigit = 6.
Your next lines of codes would just be what to do with that info. Basically, it would just be 4 sections of conditional branches, one for each digit, with 9 branches in each section (for digits 1 to 9). In my case I have 9 possible pictures (the numbers 1 to 9) and in each branch I just show that digit using a show picture command in the appropriate coordinates of the menu. In the end you only have a few branches instead of thousands if you went about doing this the long way.
Hope that helps you out!