New account registration is temporarily disabled.

CMS GOLD DISPLAY IN RM2K3

Posts

Pages: 1
Ok, yes I know Rm2k3 is old, outdated, evil, whatever. I like it, moving on.

Before I begin:
I have DynRPg patched.

I'm creating a CMS I don't particularly prefer the menu system and would like to change it to be more ideal for my needs. The problem I'm foreseeing is that if I want to display information, such as the amount of gold or experience a player has, my event code would need to be something along the lines of:

<>Variable Oper: Set, Money
<>Branch if Var is 0
<>Show Picture: 5, (Name) (Coordinates)

Rinse and repeat for 1-99,999 same with xp, hp, mp, everything... So I was checking on here if there is an easier way to do this before I spent several hours coding it all and checking it for accuracy. My thought is I can kind of make my life easier through the modulus variable command? I think I can take a 4 digit number ie. 1234 and split it into 4 seperate numbers (1, 2, 3, 4) making it easier to put in pictures for HP and MP because they will cap at 999 but for total xp and gold which clear the 4 digit mark I'm not certain how it would help. Plus it doesn't negate having to create 999 branch chains. Also I haven't used the modulus variable command before so I'm not certain if that works through pointers or what.

Any help would be appreciated!!
Probably the first thing you'd want to take a look at is this: Text Plugin

It will allow you to directly print the value of a variable to anywhere on the screen you might like without having to resort to modulo to isolate the different digits of a number.

Also, for future reference, since you're requesting help, this topic would probably fit better under the Help requests subforum.
Thanks Kaze, I got it working and good call... I'll pay attention to where I'm posting things next time!
Since you got DynRPG patched I guess this won't help you that much, but I used a very interesting patch to do this way easier then the method you described in your first post. The base it the same, the outcome a bit diffrent. I use it for item menu's etc too =).

http://cherrytree.at/cms/lang/en/download/?did=19
It will help. It's compatible with DynRPG of course, and PicPointerPatch is definitely the way to go here.
Pages: 1