ScorchedGround

Blizzards most disappointed fan
Veteran
Joined
Apr 12, 2020
Messages
489
Reaction score
699
First Language
German
Primarily Uses
RMMV
@Indinera
I don't really like using ternary operator in my formulas, they look ugly and disorganized.
I rather use normal JS formatting

Your formula would look like this then:


JavaScript:
c=a.atk-b.def; if (a.hpRate() < 0.3) {250 + 4*c} else if (a.hpRate() < 0.5) {4*c} else {c}

If you really don't use the formula in this way, you can just use your own formula and test it out.
The numbers won't lie.
 

Indinera

Indie Dev
Veteran
Joined
Mar 13, 2012
Messages
2,010
Reaction score
852
First Language
French
Thank you, saving this for future reference in case I bump into an issue.
Ternary formulas look ugly but they are very compact, which is something I like.
I don't like having to scroll through a long formula with a box so small it displays like 20% of it at once.
 

Flauschifluff

Warper
Member
Joined
Apr 19, 2021
Messages
1
Reaction score
0
First Language
German
Primarily Uses
RMMV
Hello. So, I can't seem toget the Variables working properly. The Formula is this:

60 + (a.atk * (a.level * 0.2) + a.luk) * (1 + v[2]) - b.def * 5

Everytime used the variable 2 will be changed, a random number between and including 0 and 9.
Could there be difficulties if the variable isn't defined yet?
While writing this edited the event slightly, it now works on the second use onward. Might be unlucky RNG rolls but it seems to be very close.
A normal Attack without the multiplication of 1 + v[2] deals around 50 damage and all rolls i got so far was just ranging between 50 and 70, that could be within the 20% variance couldn't it?
 

emelian65

Veteran
Veteran
Joined
Sep 13, 2015
Messages
195
Reaction score
64
First Language
Spanish
Primarily Uses
Hello, it may be weird to ask, but is there an actual way to use, something like the Evation rate in the damage formula, I was thinking in something simple as a.eva, but I think is not a flat number but a percentage (if the system actually has a way of finding the eva value for actor and enemy), I dont0 want to to be a hit or miss just a suimple damage, is it possible?
 

ScorchedGround

Blizzards most disappointed fan
Veteran
Joined
Apr 12, 2020
Messages
489
Reaction score
699
First Language
German
Primarily Uses
RMMV
@emelian65
You can use all parameters in the damage formulas.
However, most of them are not actually processed as % numbers, but rather decimals.

Basically,
100% evasion rate translates to 1.
50% evasion rate translates to 0.5.

So you could do something like

(a.hit * 100) to convert the decimal back to the % number.

Here is the list of all parameters you can use:

Base Parameters

mhp - max hp
mmp - max MP
atk - attack
def - defence
mat - magic attack
mdf - magic defence
agi - agility
luk - luck

Extra Parameters (Default Value is 0 -> 0%)

hit - Hit rate
eva - Evasion rate
cri - Critical rate
cev - Critical evasion rate
mev - Magic evasion rate
mrf - Magic reflection rate
cnt - Counter attack rate
hrg - HP regeneration rate
mrg - MP regeneration rate
trg - TP regeneration rate

Special Parameters (Default Value is 1 -> 100%)

tgr - Target Rate
grd - Guard effect rate
rec - Recovery effect rate
pha - Pharmacology
mcr - MP Cost rate
tcr - TP Charge rate
pdr - Physical damage rate
mdr - Magical damage rate
fdr - Floor damage rate
exr - Experience rate
 
Last edited:

arkantos

Villager
Member
Joined
Dec 22, 2014
Messages
16
Reaction score
1
First Language
Español
Primarily Uses
RMMV
Hi, Can anyone give me some guidance? I want to make a skill similar to the knights of FFT, where they broke parts of the equipment. (swords, armor, etc).

 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
947
Reaction score
497
First Language
English
Primarily Uses
RMMV
Hi, Can anyone give me some guidance? I want to make a skill similar to the knights of FFT, where they broke parts of the equipment. (swords, armor, etc).
This has nothing to do with a damage formula. This would be accomplished by placing a state on the target, or calling a common event, or using an action sequence (I'd do it there).

You'll get more luck posting your own thread to ask about it.
 
Last edited:

Latest Threads

Latest Profile Posts

After working out some initial confusion, I managed to get Yanfly's Improved Battlebacks successfully working on a test battle, changing the battleback and getting it to scroll during combat. This means that I can have graphically dynamic battles on moving platforms, like the roof of a train or the deck of a ship/airship...
Place Events Like Tiles Through Replacement, & Take Notes Free Form | RPG Maker News #41

the singularity is upon us:
1621133810311.png
MV's plugin command setup is the current bane of RETRO's existence. To a degree, so is MZ's. Especially when trying to make MV's plugin command interface play nice with MZ plugin commands with complex arguments.
Finally got mv & mz games output to apk files ᕙ( • ‿ • )ᕗ I'm so happy!! ┌(・。・)┘♪

Forum statistics

Threads
111,394
Messages
1,060,783
Members
144,737
Latest member
NewAgeRetroFly
Top