Pikachu Thunder Example

Simple script to show the basics of scripting for Smash Ultimate training.
Version1.0
AuthorBigRig
Publish DateSun, 20 Jan 2019 - 02:53
Last UpdateSun, 20 Jan 2019 - 02:53
Downloads15
RATE


0

0

Code: Select all
int activate;
 
init {
    activate = 0;
}
main {
    if (event_press(SWITCH_A))
    {
        if(activate)
        {
         activate = 0;
        }
 
        else
        {
          activate = 1;
        }
    }
 
    if (activate)
    {
       combo_run(thunder);
    }
}
 
 combo thunder {
    set_val(SWITCH_L, 100);
    wait(600);
    set_val(SWITCH_LY, -100);
    wait(800);
    set_val(SWITCH_X, 100);
    wait(60);
    set_val(SWITCH_B, 100);
    set_val(SWITCH_LY, 100);
    wait(4000);
}