Something I never found out - Battle Formula (RESOLVED)

Started by Xelias, August 27, 2009, 02:33:32 am

Previous topic - Next topic

Xelias

August 27, 2009, 02:33:32 am Last Edit: September 16, 2009, 11:09:39 am by Xelias
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 ?


My sprites
Kuja Tales of the World style :


Blizzard

September 09, 2009, 12:55:45 pm #2 Last Edit: September 09, 2009, 12:57:41 pm by Blizzard
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).
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Xelias



My sprites
Kuja Tales of the World style :