Flare Gun (MV Plugin Tips & Tricks)

From Yanfly.moe Wiki
Jump to navigation Jump to search

Welcome to the wiki! This is where you can find resources from Yanfly.moe, Ækashics.moe,
VisuStella, Caz Wolf, Fallen Angel Olivia, Atelier Irina, and other affiliated content creators.


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!

Required Plugins

The following plugin(s) is required to create this Tips & Tricks effect:

For help on how to install plugins, click here.

For help on how to update plugins, click here.

About

This is a Tips & Tricks effect created for RPG Maker MV. Tips & Tricks are not to be confused with plugins. Instead, they are usually customized code created for the sake of producing unique features/effects that do not require an entire plugin to do.

Yanfly Engine Plugins

This Tips & Tricks effect is made possible due to the Yanfly Engine Plugins library.

Click here if you want to help support Team Yanfly on Patreon.

Instructions

Follow video instructions.

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!