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
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, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadReferenced Images / Attachments
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.
Replies (0)
No replies yet.
Topic Summary
Loading summary...

