Tips & Tricks – Flare Gun (Team Fortress 2) – 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.

The Flare Gun is a weapon from Team Fortress 2 that sets people on fire. Setting people on fire can be fun. But if a target is already on fire, attacking it with the Flare Gun will inflict a critical hit in addition! Now, you can recreate this effect in RPG Maker MV!

You can grab the copy/paste code here: Remember to change the state ID of the burning status effect!

// Weapon Unleash

<Command Text: Attack>
<Display Text: Attack>

// Action Sequences

// Display the name of the action.
<Setup action>
display action
</Setup action>

// Move the user forward to attack.
<Whole Action>
perform start
motion standby: user
wait for movement
</Whole Action>

// Attack and check if the burning state is affected.
// If the target is burning, then inflict a critical hit and use a different animation.
// If the target isn't, use the regular animation.
// Replace the State ID for burning with your own here!
<Target action>
face user: target
motion attack: user
wait: 10
if target.isStateAffected(129)
 force critical
 animation 13: target
else 
 action animation: target
end
wait for animation
action effect
normal critical
</Target action>

// Selection Control

<Select Conditions>
Any Row
</Select Conditions>

Happy burning!

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