Power Up Transformations (MV Plugin Tips & Tricks)

Hello everyone. 😀😀😀
I wanted to know if with this Tips & Tricks I could do custom things.
This is the following code:

<Before Eval>
// Declare the State ID used for form 1.
var SSJ1 = 168;
// Declare the State ID used for form 2.
var SSJ2 = 169;
// Declare the State ID used for form 3.
var SSJ3 = 170;
// Check if the user is affected with form 1.
if (user.isStateAffected (SSJ1)) {
// If the user has form 1, make the user ascend to form 2.
user.addState (SSJ2);
// Check if the user is affected with form 2.
} else if (user.isStateAffected (SSJ2)) {
// If the user has form 2, make the user ascend to form 3.
user.addState (SSJ3);
// Check if the user is affected with form 3.
} else if (user.isStateAffected (SSJ3)) {
// If the user has form 3, make the user reapply form 3.
user.addState (SSJ3);
// This will run if the user has no forms ..
} else {
// If the user has no forms, make the user ascend to form 1.
user.addState (SSJ1);
}
</ Before Eval>

I would like to ensure that every transformation has its own animation, furthermore, to make sure that there was a fourth transformation which, however, is activated only for 33% of possibilities.
☺️🤣😉
BUMP!
Your code would be easier to read if you remove all those //comments.
But yes, you can put any custom code you want inside that <Before Eval> tag.
I'm not sure I understand what you're asking, though. Do you want to know how to display animations for each of those states or you wanna know how to add a 4th state at 30% chances..?

Original thread: https://forums.rpgmakerweb.com/threads/power-up-transformations-mv-plugin-tips-tricks.115187/