Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: A Forgotten Legend on August 12, 2008, 06:25:42 PM

Title: Modulus
Post by: A Forgotten Legend on August 12, 2008, 06:25:42 PM
So, I know I'll have to use the mod (modulus) option in order to show my character"s health for my cbs I'm working on, but I'm not sure how it works exactly, and I can't access the help file on vista.  Damn you vista!!!

And I tried using looking for the tutorial on here, but all the links I tried in Warxe's sticky up there no longer work.  Any help?
Title: Re: Modulus
Post by: Felix-0 on August 12, 2008, 06:28:48 PM
ask Rahl or Murikao
Title: Re: Modulus
Post by: A Forgotten Legend on August 12, 2008, 06:37:05 PM
>.>
Okay... o.o
That's not the answer I was looking for... >.<
Title: Re: Modulus
Post by: Muraiko on August 13, 2008, 03:31:08 PM
Just to make a health bar? I didn't even use modulus. Truth be told, I still have no idea what mod is... I think it's used for showing how much damage you do in battle though, is that what you're asking?
Title: Re: Modulus
Post by: A Forgotten Legend on August 13, 2008, 04:25:17 PM
No, I want to show numbers as a charset/picture for health, mp without making 999 pictures/charsets.  But, yeah, as damage too.
I'm still doing a battle system like the default, just a few things that are going to be different about it.
Title: Re: Modulus
Post by: Muraiko on August 13, 2008, 05:16:58 PM
Well, I found this short tutorial about how to put each diget into seperate variables, and it doesn't even use Modulus, so if it's kinda more easier to understand:

http://www.blade2k.net/writings/0/1/1/writing_58

I just read it, and it makes alot of sense. If you're going to have a fixed posistion on where the numbers will appear, then I think this tutorial will work perfectly. (I tried it myself, but because my game was an ABS, I had no idea where to display the numbers for the damage and stuff, so that's why I didn't bother using it, but I'm sure it'll work for you though!)
Title: Re: Modulus
Post by: A Forgotten Legend on August 13, 2008, 05:17:33 PM
Thanks.
Title: Re: Modulus
Post by: Rayonius on August 13, 2008, 07:06:42 PM
Modulus (%) is where you divide X by Y, and get the remainder (e.g., 7 % 3 = 1, 8 % 3 = 2, 9 % 3 = 0).