Main Menu
  • Welcome to The RPG Maker Resource Kit.

[REQUEST] Old script, "Smaller Numbers" for battle algorithm

Started by Gnarizard, December 11, 2009, 06:01:54 AM

0 Members and 1 Guest are viewing this topic.

Gnarizard

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.

Falcon

This isn't a script. It's just careful modification of the database.

albertfish

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.

Gnarizard

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?

Gnarizard

...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.

brewmeister

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.