public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

Evaluate target incoming hit

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: Evaluate target incoming hit
  • Original author: Luckysince97
  • Original date: March 10, 2018
  • Source thread: https://forums.rpgmakerweb.com/threads/evaluate-target-incoming-hit.92448/
  • Source forum path: Game Development Engines > Legacy Engine Support > RPG Maker MV Support

Summary

Ok in hope, Im in the right place tuto or support, so here is my problem im trying to make a skill that evaluate the incoming hit direction and to put a +- to damage depending on var so i try common event that call a force action but it seem to complex when it could be easier and does not do what i want so i try [damage formula] under damage core from yanfly and that what i came to so far

Archived First Post

Ok in hope, Im in the right place tuto or support,

so here is my problem im trying to make a skill that evaluate the incoming hit direction and to put a +- to damage depending on var
so i try common event that call a force action but it seem to complex when it could be easier and does not do what i want
so i try [damage formula] under damage core from yanfly and that what i came to so far
my variable 4 is = to random

that was a common event with force action that was returning the use of a skill with a different damage formula end up with 2
action and on top of it no damage...
example if skill call random 0 call skill 1... if random 1 call skill 2 ect...

control variable random
0-4 (so 0=front hit and 1= flank hit)
if { ( \V[4]===0);a.atk+a.agi*4}
if { (\V[4]===1);a.atk+a.agi*5}

this is just an exemple and was probably not be Writen the right way
----------------------------------------------------------------------------------------------------------------

my first problem was that it does not hit, i understood that i can call an event without a damage formulae..
so i look under Damage core from yanfly

In which i can call a damage formulae in skill notetag but aint sure of the proper way to write it down Protected download
so that my example of damage formula probably not written correctly,
first i would need to change the common event evaluation to be first in line and not last but that aside

my second problem was to evaluate the var[4] which is my random variable,
so that i could say you hit front rear flank...
Protected download

so maybe if i write something like

if someone could confirm my java...

<damage formula>
random_variable[4](0,1,2,3,4)
if {(var[4]===0);a.atk+a.agi*4,call_event[5])}
if{(var[4]===1);a.atk+a.agi*5,call_event [5])}
etc....
<damage formula>

or am i in the dark...

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

Referenced Images / Attachments

20180310103052_1.jpg
20180310103052_1.jpg
20180310102925_1.jpg
20180310102925_1.jpg
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#rpg-maker-archive#mv-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar