How to make combos for fighting games or any games(a scripting guide)

This script template will show you how to make your own combos. This will also give you a good start in scripting. - Token
Version1.30
Authortoken
Publish DateFri, 25 Apr 2014 - 23:42
Last UpdateFri, 30 May 2014 - 23:56
Downloads697
RATE


6

0

Release Notes: I changed the format and added new comments.
Code: Select all
// A template for building a combo script for fighting games. This will also give you a good start in scripting.
// We will be using the Combo Magick plugin. It can be found in Gtuner>Plugins.
 
// You can delete all the Gtuner's instructions. They are not necessary.
main { //<<<<<<<< This beginning bracket is the start of "main".
 
 
// Copy the below to your script inside "main".
if(get_val(XB360_BACK)) combo_run(magick); // The back button will initiate our combo. You can change this button to another button.
if(get_val(XB360_LS)) combo_stop(magick); // The LS will cancel our combo when click. Likewise you can change this button to another button.
// The above says if get value XB360_BACK run combo magick
// The next code says if get value XB360_LS stop combo magick
 
// if(get_val(XB360_START) && get_val(XB360_A)) combo_run(magick); //This is a way to make combinations start our combo. You can change this to a different combination.
// Remember to remove the slashes before the "if" if you want to use this one.
// && means "and". The above says if get value XB360_START and XB360_A then run combo magick.
 
 
 
} //<<<<<<<< This ending bracket is the end of "main".
 
// Below is where we will put our combo made in Combo Magick plugin.
// I suggest only copying the combo part and leave out combo generated by the plugin.
combo magick { //<<<<<<<< This beginning bracket is the start of combo "magick".
    set_val(XB360_UP, 100); // This sets XB360_UP to 100. 100 means it's on. 0 is off.
    wait(190); // This is how long in milliseconds it holds the button. 1000 is 1 second. I advise using 20 for shortest interval. Some games will not register under 20ms. It's too fast.
    set_val(XB360_UP, 0);// 0 is off.
    wait(340); // Waits for 340ms.
    set_val(XB360_RIGHT, 100); // 100 is on.
    wait(160);// If you set this to 0 no press will happen. Use 20 if you want the shortest interval.
    set_val(XB360_RIGHT, 0);
    wait(310);
    set_val(XB360_DOWN, 100);
    wait(120);
    set_val(XB360_DOWN, 0);
    wait(310);
    set_val(XB360_LEFT, 100);
    wait(130);
    set_val(XB360_LEFT, 0);
    wait(360);
    set_val(XB360_A, 100);
    wait(180);
    set_val(XB360_A, 0);
    wait(270);
    set_val(XB360_B, 100);
    wait(200);
    set_val(XB360_B, 0);
    wait(250);
    set_val(XB360_X, 100);
    wait(170);
    set_val(XB360_X, 0);
    wait(280);
    set_val(XB360_Y, 100);
    wait(190);
    set_val(XB360_Y, 0);
    wait(580);
    set_val(XB360_A, 100);
    wait(100);
    set_val(XB360_A, 0);
    wait(100);
    set_val(XB360_A, 100);
    wait(100);
    set_val(XB360_A, 0);
    wait(100);
    set_val(XB360_A, 100);
    wait(80);
    set_val(XB360_A, 0);
    wait(100);
    set_val(XB360_A, 100);
    wait(90);
    set_val(XB360_A, 0);
    wait(100);
    set_val(XB360_A, 0);
    wait(100);
    set_val(XB360_A, 100);
    wait(100);
    set_val(XB360_A, 0);
    wait(100);
    set_val(XB360_A, 100);
    wait(80);
    set_val(XB360_A, 0);
    wait(100);
    set_val(XB360_A, 100);
    wait(90);
    set_val(XB360_A, 0);
} //<<<<<<<< This ending bracket is the end of combo "magick".
 
// You can copy everything and click on "Build and Run" button.
// While the combo is running you can click LS to cancel it.
// You will notice my combo does meaningless button presses.
// This was merely a representation of what your combo could do.
 
// This template was how to make a working script using Combo Magick plugin.