The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: Gnarizard on December 11, 2009, 06:01:54 AM

Title: [REQUEST] Old script, "Smaller Numbers" for battle algorithm
Post by: Gnarizard on December 11, 2009, 06:01:54 AM
Somebody once wrote a script...
...Well actually, I guess it was more like a series of snippets as opposed to a script.
Anyway, it very effectively modified the DBS to work with "smaller" numbers.
This made it possible to make "43" a reasonable amount of HP,
whereas currently, anything lower than 300 basically means you die in 1 hit.
Basically I like all the stat numbers except HP.
"741" should be how my HP looks at like, level 99.

Anyway, if anybody could find these snippets or help me lower the massive amounts of
damage I'm taking without making attack and defense tiny numbers like 3 and 6, that'd be great.

AND YES, before anyone asks, I've searched - I've been searching for a looooong time.
Title: Re: [REQUEST] Old script, "Smaller Numbers" for battle algorithm
Post by: Falcon on December 12, 2009, 03:54:35 PM
This isn't a script. It's just careful modification of the database.
Title: Re: [REQUEST] Old script, "Smaller Numbers" for battle algorithm
Post by: albertfish on December 13, 2009, 11:01:59 AM
Yea what Falcon said. In the database, lower the hp to what you want, also lower the enemies strength and attack and other parameters so they don't 1-shot you.
Title: Re: [REQUEST] Old script, "Smaller Numbers" for battle algorithm
Post by: Gnarizard on December 26, 2009, 07:07:20 AM
Sorry, but you guys just aren't getting me.
What I mean is that I want the calculations to be handled differently.
Instead of using STR, DEX, AGI, and INT in the calculations the way the program was set to by default,
I want to set it my own way, and add special cases and such.
Example: If you attack someone, and their defense is crazy-nuts, and your attack isn't, I would like the attack to still do 1HP damage if it hits.
Things like that are not to do with the database.

Now that I've clarified, any help on the subject?
Title: Re: [REQUEST] Old script, "Smaller Numbers" for battle algorithm
Post by: Gnarizard on April 02, 2011, 07:39:35 PM
...Really guys?
I've been trying to figure this out forever now. Yes, I'm still waiting.

In a nutshell:
I do not want to edit the database (F9) to change the HP, Attack, Defense, etc. for a desired outcome,
what I want to do is change the entire damage algorithm, but still keep the Default Battle System.

Yes, I realize this is a double-post AND a necro-post,
but I figure it's justified in that my issue was never resolved.
Title: Re: [REQUEST] Old script, "Smaller Numbers" for battle algorithm
Post by: brewmeister on April 06, 2011, 12:55:55 AM
To prevent 0 damage with a "Hit", edit line 83 in Game_Battler 3 to:

      self.hp -= [self.damage, 1].max

and for skills, line 176 to:

      self.hp -= self.damage == 0 ? 1 : self.damage

NOTE: skills can have negative damage (healing)

To change the battle algorithm, edit the methods  attack_effect & skill_effect in Game_Battler 3

I would be more specific if you would elaborate on how you want the algorithm changed. More than "I want to set it my own way"

Also, if you want the HP values lower, you will have to edit the database. If  your damage algorithm doesn't use the other parameters, then they won't matter.