Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Sin86 on September 22, 2011, 03:28:57 pm

Title: FIX]Blizz ABS battle damage with weapons, enemies, items and skills calculations
Post by: Sin86 on September 22, 2011, 03:28:57 pm
Ok, so I saw a topic in here awhile ago and I would post in it but it hasn't been posted in 2 years and I know that necroposting isn't tolerated here very well so I'll just make a new thread.

Ok, so I tried to find many ways to get a weapon to do 12 damage(and only 12) to an enemy but everything I do, it will go sometimes to 11 or 13. I'm also doing the same for enemies to give me 7(and only 7) but like weapons, it's the same. Going a bit under or over.

Now, in that same topic I saw something about how you can mess around with Game_Battler 3 on line 51(says line 53 in error even though I edited out line 51) by taking that line out but when I strike or get hit, the game gives me an error saying

"Script Game_Battler 3 line 53 nomethod error occurred

undefined method `*' for nil:nilclass"

I wish I could find a way to fix any battle damage and make it be exact.
Title: Re: Blizz ABS battle damage with weapons, enemies, items and skills calculations
Post by: Boba Fett Link on September 22, 2011, 03:40:12 pm
You have to remove variance. I tried doing it once. Here's what ForeverZer0 told me.

Quote from: ForeverZer0 on July 07, 2011, 07:37:27 pm
The attack_effect method in Game_Battler (part 3).


I was able to remove critical hit and missing, but I could never find how to remove variance.
Title: Re: Blizz ABS battle damage with weapons, enemies, items and skills calculations
Post by: Sin86 on September 22, 2011, 03:43:10 pm
I see, but I need to know what exactly to remove/change and what not.
Title: Re: Blizz ABS battle damage with weapons, enemies, items and skills calculations
Post by: winkio on September 23, 2011, 03:27:29 am
comment out/remove these lines:

if self.damage.abs > 0
        amp = [self.damage.abs * 15 / 100, 1].max
        self.damage += rand(amp+1) + rand(amp+1) - amp
      end
Title: Re: FIX]Blizz ABS battle damage with weapons, enemies, items and skills calculations
Post by: Sin86 on September 27, 2011, 07:29:14 pm
Thanks Winko, it worked.

All fixed now.