Tips & Tricks – Gamble Strike – RPG Maker MV

Yanfly Engine Plugins is a plugin library made for RPG Maker MV, a wonderful piece of software to help you make that role playing game of your dreams. You can find out more about RPG Maker MV here

Ever made a skill and wanted to give it special effects that occur only when the skill misses? Well, using Action Sequences, you definitely can!

Get the copy/paste code here: 

Place this inside of your skill/item’s notebox. The parts in blue indicate the effects that will occur only if the action misses.

// This moves the user forward to the enemy or slightly forward depending on the weapon type.
<Whole Action>
if user.attackMotion() !== 'missile'
 move user: targets, front, 20
else
 perform start
end
</Whole Action>

// Makes user attack the enemy. If the enemy evades, debuff the user's AGI.
<target action>
motion standby: user
wait for movement
face user: target
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
if target.result().missed || target.result().evaded
  add agi debuff: user, 5, show
  animation 54: user
  motion dead: user
  wait for animation
end
</target action>

Happy gambling!

Please wait while you are redirected...or Click Here if you do not want to wait.