Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> 


———
— Before you ask! Read! ;) —

You must have 30+ Posts to create a topic here!

— Thanks for reading! —
———

 
Reply to this topicStart new topic
> Simple Damage Formula
TNinja
post Dec 27 2011, 06:17 AM
Post #1


Level 10
Group Icon

Group: Revolutionary
Posts: 167
Type: Event Designer
RM Skill: Skilled




Good evening gentlemen(gentle...woman?).

I was wondering if you fine people could make make some simple damage formula for me. A script that overrides the current formula, maybe?

When I say "simple", I mean something like add and subtract. Like Fire Emblem or Mabinogi.

A few examples
Attack/Magic - Defence/Resistance = Damage.
(Attack + Weapon) - (Defence + Armor) = Damage



Would that be possible?


__________________________
Eye 'em so lolicon.
677,09kb.gif animation incoming, and 20k dancing coconut dude.
Go to the top of the page
 
+Quote Post
   
-dah0rst-
post Dec 27 2011, 11:37 PM
Post #2


Level 11
Group Icon

Group: Revolutionary
Posts: 174
Type: Scripter
RM Skill: Advanced




Of course this is no problem, but to do so I need the exact parameters you use and the formula you need wink.gif
And by the way- it's Ladies ^^

This post has been edited by -dah0rst-: Dec 27 2011, 11:40 PM


__________________________
You want Next Gen graphic algorithms in RPG VX? Ask the horst :P


But don't expect this in real time ;)
Go to the top of the page
 
+Quote Post
   
TNinja
post Dec 28 2011, 06:47 AM
Post #3


Level 10
Group Icon

Group: Revolutionary
Posts: 167
Type: Event Designer
RM Skill: Skilled




Well, the changes I wants are for the ATK, DEF and SPI.

Where DEF subtracts damage from ATK for final damage output.
As for SPI, seeing there is no resistance, I'll go with SPI subtracting SPI. Meaning you won't be able to do damage against someone with the same SPI.
Unless you're super sweet and add a fifth parameter called Resist. But that might disturb some other scripts I stuffed in my game, so meh.

Also of course SPI is magic damage.


As for skills, I'm a bit unsure how the stuff works there, for some reason.


I hope it won't crash roads with damage multiplies like weaknesses and resistances, or the Tankentai SBS script?

EDIT:
Found this in the F1 content.
CODE
If the base damage is a positive number
Damage = Base Damage
+ (A's attack x 4 x Attack F ÷ 100)
+ (A's spirit x 2 x Spirit F ÷ 100)
- (B's defense x 2 x Attack F ÷ 100)
- (B's spirit x 1 x Spirit F ÷ 100)

If the results of the calculations would be a negative number, it will be made 0.
If the base damage is a negative number
Damage = Base Damage
- (A's attack x 4 x Attack F ÷ 100)
- (A's spirit x 2 x Spirit F ÷ 100)


What if you just changes them in to this?
CODE
If the base damage is a positive number
Damage = Base Damage
+ (A's attack x 1 x Attack F ÷ 100)
+ (A's spirit x 1 x Spirit F ÷ 100)
- (B's defense x 1 x Attack F ÷ 100)
- (B's spirit x 1 x Spirit F ÷ 100)

If the results of the calculations would be a negative number, it will be made 0.
If the base damage is a negative number
Damage = Base Damage
- (A's attack × 1 × Attack F ÷ 100)
- (A's spirit × 1 × Spirit F ÷ 100)


This post has been edited by TNinja: Jan 2 2012, 08:14 AM


__________________________
Eye 'em so lolicon.
677,09kb.gif animation incoming, and 20k dancing coconut dude.
Go to the top of the page
 
+Quote Post
   
TNinja
post Feb 27 2012, 07:28 AM
Post #4


Level 10
Group Icon

Group: Revolutionary
Posts: 167
Type: Event Designer
RM Skill: Skilled




Any progress?


__________________________
Eye 'em so lolicon.
677,09kb.gif animation incoming, and 20k dancing coconut dude.
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd May 2013 - 08:55 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker