Hello people,
I am having trouble with these two plugins. That's what I've wrote in Attack's notetag:
Basically, whenever and enemy attacks If the player presses Z button at the correct moment the actor counterattacks. However, for some reason the damage calculation of the counterattack is based on the attacker (enemy) stats not the actor's attributes.
So, for instance, If you counterattack a weak slime your counterattack damage will be low. However, If you attack a strong boss your counterattack damage will be insane. I'd like to have the counterattack damage based on the actor's attribute, not the enemy.
This is where I got Sequence Input plugin: http://sumrndm.site/sequence-input/
In the example video, the author does exactly what I wanted to do. However, in the video It worked perfectly.
I appreciate any help/solution!
I am having trouble with these two plugins. That's what I've wrote in Attack's notetag:
Code:
<Post-Damage Eval>
if (target.hp < target.mhp * 0.2 && user.isStateAffected(11)) {target.setHp(0)}
{user.setMp(Math.round(user.mp + (user.mmp * 0.15)))}
</Post-Damage Eval>
<setup action>
</setup action>
<target action>
START SEQUENCE INPUT: ok, 49
MOVE user: target, FRONT BASE, 5, auto offset x -15
WAIT FOR MOVEMENT
END SEQUENCE INPUT
if $gameVariables.value(49) <= 25 && $gameVariables.value(49) > 0 #If button is pressed at the right time
motion swing: target
perform action
motion wait: target
action animation: user
action effect: user
else #If not, the enemy proceeds to attack normally
motion swing: user
perform action
motion wait: user
action animation: target
action effect: target
WAIT FOR EFFECT
wait: 15
</target action>
Basically, whenever and enemy attacks If the player presses Z button at the correct moment the actor counterattacks. However, for some reason the damage calculation of the counterattack is based on the attacker (enemy) stats not the actor's attributes.
So, for instance, If you counterattack a weak slime your counterattack damage will be low. However, If you attack a strong boss your counterattack damage will be insane. I'd like to have the counterattack damage based on the actor's attribute, not the enemy.
This is where I got Sequence Input plugin: http://sumrndm.site/sequence-input/
In the example video, the author does exactly what I wanted to do. However, in the video It worked perfectly.
I appreciate any help/solution!