Chaos Project

RPG Maker => Event Systems => Event System Requests => Topic started by: k9inpoop on December 15, 2010, 04:18:27 am

Title: Remainder Variable
Post by: k9inpoop on December 15, 2010, 04:18:27 am
Is there any way to make a variable equal the remainder of 2 variables for example:
variable A = 10
variable B = 2
Variable C = The Remaining of Variables A and B combined which will equal 8.
If it is possible can someone make it or show me how it is done because i am making a custom leveling system in my game
I have no clue how to do it  :^_^':
Title: Re: Remainder Variable
Post by: Blizzard on December 15, 2010, 04:28:40 am
C = A
C -= B
Title: Re: Remainder Variable
Post by: k9inpoop on December 15, 2010, 04:31:54 am
WOW :) thanks blizz i didn't think it was that easy *brain-fart*
Title: Re: Remainder Variable
Post by: Aqua on December 15, 2010, 02:59:07 pm
Um... that's called "Subtraction" o-o

Remainder is modulus
10 % 2 = 0
10 % 3 = 1
Title: Re: Remainder Variable
Post by: Blizzard on December 15, 2010, 03:14:08 pm
I read between the lines.
Title: Re: Remainder Variable
Post by: Aqua on December 15, 2010, 07:19:53 pm
I'm just saying for the future...
It's kinda important to know the difference between subtraction and remainder XD
Title: Re: Remainder Variable
Post by: k9inpoop on December 20, 2010, 04:44:20 am
well i am sorry that i didn't say subtract. the reason why is because it was like 3 am where i was when i made the post so i was not thinking right  :^_^':