RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[Resolved] Damage calculation?

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 84
Started messing around with attack and defense values, but just can't figure out the formula for it. It seems like even 1 attack or defense is a big difference, which would make a level 5 character a billion times better than a level 1. I want to be able to have the character fight enemies for more than one level x.x  :mex:
« Last Edit: September 18, 2008, 09:35:02 PM by Ghero »

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
try looking in the help files, you might be able to find the damage algorithms there.

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep: +0/-0Level 84
Normal Attacks
Damage = A's attack × 4 - B's defense × 2
If the results of the calculations would be a negative number, it will be made 0.
Skills/Items
If the base damage is a positive number
Damage = Base Damage
 + (A's attack × 4 × Attack F ÷ 100)
 + (A's spirit × 2 × Spirit F ÷ 100)
 - (B's defense × 2 × Attack F ÷ 100)
 - (B's spirit × 1 × 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 × 4 × Attack F ÷ 100)
 - (A's spirit × 2 × Spirit F ÷ 100)

Of the attributes that accompany this action, the largest of B's attribute effectiveness values is used to modify the result.
A:200%, B:150%, C:100%, D:50%, E:0%, F:-100%
However, if B's armor or state has the [Halve Attributes] effect, these values will be halved.
If there are multiple such effects, they will all be taken into account.
If the normal attack damage would be 0 after attribute effects have been taken into account, there is a 50% chance that the attack will still cause 1 damage.
A critical hit multiplies the damage caused by 3.
If B is defending himself, the damage will be cut in half. If he has a strong defense, the damage will be 1/4 the normal amount.
Damage amounts are random to some extent, as determined by the dispersion settings.



Found it there!

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
:) glad it worked out for you

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon