Hello everyone, i may start saying i'm sorry for any mispell or wrong typing, 'cause english is not my native language and i'm not fluent.
So, i'm using rpg maker mv just a couple of months, and have just a little of code knowledge, i'm using a bunch of plugins, my question is about [if else conditions] in action sequence from Yanfly specifically.
So, i need to make a condition to check the elementrate of the target, the type of attack did by the user and if it hits the target, if all this 3 conditions met, an animation will play on the target.
So, by now i get to work the elementrate part by doing this:
K, now i need to add the other 2 conditions on the check, i know the operator for that is " && " i just don't know how i can check the type of the attack the user is using, like element type of the weapon, type of the weapon, or something like that. I found somewhere a code, just don't remember now for checking if the attack hitted, is something like this.result()hit(), whatever, i have this noted somewhere, my main question is about checking the type of weapon used on the attack by the user or element of attack used by the user. Anyone can help or show where i can find how to check those game datas?
So, i'm using rpg maker mv just a couple of months, and have just a little of code knowledge, i'm using a bunch of plugins, my question is about [if else conditions] in action sequence from Yanfly specifically.
So, i need to make a condition to check the elementrate of the target, the type of attack did by the user and if it hits the target, if all this 3 conditions met, an animation will play on the target.
So, by now i get to work the elementrate part by doing this:
if target elementRate(10) > 1animation 79: targetendK, now i need to add the other 2 conditions on the check, i know the operator for that is " && " i just don't know how i can check the type of the attack the user is using, like element type of the weapon, type of the weapon, or something like that. I found somewhere a code, just don't remember now for checking if the attack hitted, is something like this.result()hit(), whatever, i have this noted somewhere, my main question is about checking the type of weapon used on the attack by the user or element of attack used by the user. Anyone can help or show where i can find how to check those game datas?