Chaos Project

RPG Maker => Tutorials => Topic started by: zottel89 on July 17, 2012, 09:07:08 am

Title: Change the "maximum damage possible at once" in RMXP Standard Combat System ?!
Post by: zottel89 on July 17, 2012, 09:07:08 am
Hey there, guys :)

I've got a quick question:

How can I change the maximum damage possible with one attack in RMXP's standard combat system ?!
Right now it's "999", but I would actually like it to be "9999" !!

Any idea on how to do this ?!

Thanks,
zottel89
Title: Re: Change the "maximum damage possible at once" in RMXP Standard Combat System ?!
Post by: Blizzard on July 17, 2012, 09:09:51 am
There is no damage limit in RMXP. Are you using a custom script that creates a limit?
Title: Re: Change the "maximum damage possible at once" in RMXP Standard Combat System ?!
Post by: zottel89 on July 17, 2012, 09:17:15 am
I'm not sure, not that I'd know of ....
but it seems like it locks right up at 999.... strange.

Could it be something from "Tons of Add-Ons" ?!   But i only have very few of those
actually activated.
Title: Re: Change the "maximum damage possible at once" in RMXP Standard Combat System ?!
Post by: Lobstrosity on July 17, 2012, 09:34:48 am
Are you talking about the actual damage that shows up in battle or the STR statistic in the database?
Title: Re: Change the "maximum damage possible at once" in RMXP Standard Combat System ?!
Post by: Blizzard on July 17, 2012, 10:06:22 am
Try removing all scripts temporarily and see what happens.
Title: Re: Change the "maximum damage possible at once" in RMXP Standard Combat System ?!
Post by: zottel89 on July 18, 2012, 09:42:16 am
*fail*

It was so simple... yet extremely well hidden.

I had a skill that did not scale with the players Attack/Strength (STR-F).....
and it did exactly 999 damage, which led me to the conclusion that this would be
the 'maximum damage in RMXP'  ...

Weird coincidence.

Sry for stealing your time and thanks anyway^^
Title: Re: Change the "maximum damage possible at once" in RMXP Standard Combat System ?!
Post by: orochii on July 18, 2012, 12:48:41 pm
Just for the record, to give a damage limit to attacks and skills, it's pretty simple.

Look for this line:
self.hp -= self.damage

And just before any of those, put:
self.damage = [self.damage, 9999].min


Where "9999" can be any number you want to be the max damage.