Power Up Transformations (MV Plugin Tips & Tricks)

Discussion in 'Javascript/Plugin Support' started by Lionheart_84, Nov 13, 2019.

  1. Lionheart_84

    Lionheart_84 Veteran Veteran

    Messages:
    471
    Likes Received:
    42
    First Language:
    Italian
    Hello everyone. :D:D:D
    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.
    :cutesmile::guffaw:;)
     
    #1
  2. Lionheart_84

    Lionheart_84 Veteran Veteran

    Messages:
    471
    Likes Received:
    42
    First Language:
    Italian
    BUMP!
     
    #2
  3. TSR

    TSR The Northern Frog Veteran

    Messages:
    44
    Likes Received:
    19
    Location:
    Canada
    First Language:
    French
    Primarily Uses:
    RMMV
    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..?
     
    #3

Share This Page