Eval Collection: Strength of Wood

nu-wa

Nu Wa from Smite has a passive that allows her to root her next target after hitting 5 basic attacks. Here’s how to recreate this effect.

Requirements:

♦ YEP_BuffsStatesCore.js

♦ YEP_AutoPassiveStates.js

  1. First, create the passive state in the database.
  2. Use this notetag in its notebox:

<Custom Battle Effect>
// Stack amount the user starts the battle with.
user._sOW = 0;
</Custom Battle Effect>

<Custom Establish Effect>
// Check if the stack amount exists
user._sOW = user._sOW || 0;
// Continue if there are 5 stacks or more
if (user._sOW >= 5) {
// Add the state and reset the stacks
target.addState(98);
user._sOW = 0;
} else {
// Increase stacks
user._sOW += 1;
};
</Custom Establish Effect>

If you DON’T want your actor to have 0 stacks at the beginning of each battle (so basically if you want him to carry over his stacks) remove lines 1-4.

If you feel like 5 stacks is too few or too many you can alter the amount of stacks required for the state’s effect to kick in in line 10.

Make sure to change the State ID in line 12 to the state ID you want to add.

Advertisements

Write a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s