Testing Your Formulas

ajilejay

Veteran
Veteran
Joined
Jul 17, 2013
Messages
64
Reaction score
0
First Language
English
Primarily Uses
Hello all,

I am fairly new to RPG maker and I have been taking classes on ruby and trying my best to learn the process as I go. I have got a lot of support from the community and I decided to try and give some back. I have had a LOT of problems trying to figure out my formulas and going back and forth battle testing has been really time consuming. So I have found a way to make it a relatively painless process so I thought I might share it with some of the community.

Here is my sample formula for my attack.

(1.2*a.atk)+70+a.mat

Here is how I test it.

First go to http://www.compileonline.com/execute_ruby_online.php

Paste the sample formula below

atk = 50

mat = 0

x =(1.2*atk)+70+mat

print x

Hit execute script in the upper left and on the right your result will come out. It will also help you pinpoint any errors you might be having.

To test further change the values of mat and atk.

I am still pretty noob so I don't know how helpful this will be to the rest of you but I have found it to be very helpful when my formulas are not coming out right in battle tests. -Thanks
 
Last edited by a moderator:

voymasa

Veteran
Veteran
Joined
Jul 25, 2013
Messages
124
Reaction score
18
First Language
English
Primarily Uses
I'm getting a "Problem loading page" 'Connection was reset while loading' error when I click the link. I'll try again later. Hope it works well, that would be a real boon to avoid the loading of the battle testing.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
some hours ago that link worked for me, now I'm getting problems as well.

It could be that that simulator is on a low-capacity server and just got stormed with work when being revealed here ;-)
 

voymasa

Veteran
Veteran
Joined
Jul 25, 2013
Messages
124
Reaction score
18
First Language
English
Primarily Uses
some hours ago that link worked for me, now I'm getting problems as well.

It could be that that simulator is on a low-capacity server and just got stormed with work when being revealed here ;-)
Your probably right
 

ajilejay

Veteran
Veteran
Joined
Jul 17, 2013
Messages
64
Reaction score
0
First Language
English
Primarily Uses
Sorry Did I Post This In The Wrong ForUm I Meant To Put It In Tutorial
 

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
It doesn't qualify as a tutorial due to several reasons. But in a staff discussion:

It's a nice and helpful tip - but to call this a tutorial is a bit extreme in my opinion.

That info should definatily be made available somewhere, but I think script support is a better place for this than the tutorial area, especially as someone needs to know scripting to reconfigure the damage formula into a readably script.

 

If he wants it as a tutorial, he has to improve on it telling others how to split a damage formula into a short script to be tested on that link...
 

voymasa

Veteran
Veteran
Joined
Jul 25, 2013
Messages
124
Reaction score
18
First Language
English
Primarily Uses
There is a helpful link to a tutorial on the Ruby Script, on that site.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,074
Members
137,578
Latest member
JamesLightning
Top