Chaos Project

RPG Maker => Tutorials => Tutorial Requests => Topic started by: Xelias on August 27, 2009, 02:33:32 am

Title: Something I never found out - Battle Formula (RESOLVED)
Post by: Xelias on August 27, 2009, 02:33:32 am
How can I make my physical skills inflect the same damages as a normal attack would ?
Sword A : X attack.

Could you make a battle formula to make it work ?
Title: Re: Something I never found out - Battle Formula
Post by: Kagutsuchi on September 09, 2009, 12:31:17 pm
Set power to 1?
Title: Re: Something I never found out - Battle Formula
Post by: Blizzard on September 09, 2009, 12:55:45 pm
Attack 100, STR 100, PDEF 100, Variance 15%, rest 0 (even Power).

Code: Attack formula
atk = [attacker.atk - self.pdef / 2, 0].max
self.damage = atk * (20 + attacker.str) / 20


Code: Effective skill formula
power = skill.power + user.atk * skill.atk_f / 100
rate = 20 + (user.str * skill.str_f / 100)
self.damage = power * rate / 20


Just keep in mind with Power = 0 there is no state remove shock (removal of states through physical damage).
Title: Re: Something I never found out - Battle Formula (RESOLVED)
Post by: Xelias on September 16, 2009, 11:09:17 am
Level Up, Thanks and Resolved !