Thievery (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.


Text

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.

Get the copy/paste version of the code here:

Place this inside of your Steal Skills
// Steal & Snatch

<Steal>

<Custom Steal Success Effect>
// Create the count for the successful steals made.
user._successfulSteals = user._successfulSteals || 0;
// Increase the successful steals count.
user._successfulSteals += 1;
</Custom Steal Success Effect>

// Action Sequences
// Sets up the action.
<Setup action>
display action
immortal: targets, true
</Setup action>

// Moves user in front of the target.
<Whole Action>
move user: targets, front, 20
</Whole Action>

// The user attempts to grab and jumps back immediately.
<Target action>
motion standby: user
wait for movement
face user: target
action animation: target
move user: targets, base, 10
motion thrust: user, no weapon
wait: 15
action effect
jump user: 50, 10
move user: targets, front, 10
face user: forward
</Target action>
Place this inside of the Thievery skill
// Damage Core

<Damage Formula>
// Get the number of successful steals from user.
var steals = user._successfulSteals || 0;
// Calculate the damage dealt.
value = (steals * user.agi) / 2;
</Damage Formula>

// Action Sequence
// Makes the user vanish.
<Whole Action>
opacity user: 0%, 20
wait for opacity
</Whole Action>

// User reappears behind the enemy, backstabs, and vanishes again.
<Target Action>
move user: target, back, 1
wait for movement
face user: target
opacity user: 100%, 20
wait for opacity
motion attack: user
wait: 6
attack animation: target, mirror
wait for animation
opacity user: 0%, 20
action effect
action animation: target
wait for opacity
wait for animation
</Target Action>

// User vanishes and returns back to home location.
<Follow Action>
move user: return, 1
wait for movement
opacity user: 100%, 20
wait for opacity
</Follow Action>

Happy stealing!