Combo for Fighting Games

GPC1 script programming for Titan One. Code examples, questions, requests.

Combo for Fighting Games

Postby puntofreak » Fri Jan 12, 2018 8:19 pm

Hy...this is my first GPC combo so i had no idea if it works. But i think its easier to build a combo on Gtuner Pro because there are pictures.

For example i need a combo like this ( down, down/left, left, X ) when hold RT and press X
and another combo ( down, down/right, right, X ) when hold RT and press A

I dont know what is down/left maybe LX or LY.
And with this script converted to the T2
My device is still at customs, so I would like to use the time to get to grips with the topic

i tried this so please this is my first GPC :-)

Code: Select all
//
// Sat Jan 13 2018 01:00:49
// Script generated by Visual to GPC
//----------------------------------------
#include <titanone.gph>
main {
    if((get_val(XB1_X)) && (event_press(XB1_RT))) {
        combo_run(Tap_1);
        combo_run(Tap_2);
        combo_run(Tap_3);
        combo_run(Tap_4);
    }
    if((get_val(XB1_A)) && (event_press(XB1_RT))) {
        combo_run(Tap_5);
        combo_run(Tap_6);
        combo_run(Tap_7);
        combo_run(Tap_8);
    }
}
 
combo Tap_1 {
    set_val(XB1_DOWN, 0);
    wait(500);
    set_val(XB1_DOWN, 100);
    wait(40);
    set_val(XB1_DOWN, 100);
}
 
combo Tap_2 {
    set_val(XB1_LX, 0);
    wait(500);
    set_val(XB1_LX, 100);
    wait(40);
    set_val(XB1_LX, 100);
}
 
combo Tap_3 {
    set_val(XB1_LEFT, 0);
    wait(500);
    set_val(XB1_LEFT, 100);
    wait(40);
    set_val(XB1_LEFT, 100);
}
 
combo Tap_4 {
    set_val(XB1_X, 0);
    wait(500);
    set_val(XB1_X, 100);
    wait(40);
    set_val(XB1_X, 100);
}
 
combo Tap_5 {
    set_val(XB1_DOWN, 0);
    wait(500);
    set_val(XB1_DOWN, 100);
    wait(40);
    set_val(XB1_DOWN, 100);
}
 
combo Tap_6 {
    set_val(XB1_RX, 0);
    wait(500);
    set_val(XB1_RX, 100);
    wait(40);
    set_val(XB1_RX, 100);
}
 
combo Tap_7 {
    set_val(XB1_RIGHT, 0);
    wait(500);
    set_val(XB1_RIGHT, 100);
    wait(40);
    set_val(XB1_RIGHT, 100);
}
 
combo Tap_8 {
    set_val(XB1_X, 0);
    wait(500);
    set_val(XB1_X, 100);
    wait(40);
    set_val(XB1_X, 100);
}
 
User avatar
puntofreak
Staff Sergeant
Staff Sergeant
 
Posts: 10
Joined: Tue Jan 09, 2018 7:10 pm

Re: Combo for Fighting Games

Postby Prototype » Sun Jan 14, 2018 4:00 pm

puntofreak wrote:For example i need a combo like this ( down, down/left, left, X ) when hold RT and press X
and another combo ( down, down/right, right, X ) when hold RT and press A

You can try that and edit the combos timings:
Code: Select all
main {
        if(get_val(XB1_RT)) {
            if(event_press(XB1_X)) {
                combo_run(D_DL_L_X);
            }
            if(event_press(XB1_A)) {
                combo_run(D_DR_R_X);
            }
        }
}
 
combo D_DL_L_X {
    set_val(XB1_DOWN, 100);
    wait(20);
    set_val(XB1_DOWN, 100);
    set_val(XB1_LEFT, 100);
    wait(20);
    set_val(XB1_LEFT, 100);
    wait(20); wait(100);
    set_val(XB1_X, 100);
    wait(20);
    set_val(XB1_X, 0);
    wait(20);
}
 
combo D_DR_R_X {
    set_val(XB1_DOWN, 100);
    wait(20);
    set_val(XB1_DOWN, 100);
    set_val(XB1_RIGHT, 100);
    wait(20);
    set_val(XB1_RIGHT, 100);
    wait(20); wait(100);
    set_val(XB1_X, 100);
    wait(20);
    set_val(XB1_X, 0);
    wait(20);
}

puntofreak wrote:I dont know what is down/left maybe LX or LY.

down/left refers to the d-pad and LX or RY refers to the sticks.
Or you mean LX is left stick X axe (left is -100 and right is +100)
LY is left stick Y axe (up is -100 and down is +100)

And here is your script converted for the Titan Two:
Code: Select all
main {
    if((get_val(BUTTON_17)) && (event_active(BUTTON_5))) {
        combo_run(Tap_1);
        combo_run(Tap_2);
        combo_run(Tap_3);
        combo_run(Tap_4);
    }
    if((get_val(BUTTON_16)) && (event_active(BUTTON_5))) {
        combo_run(Tap_5);
        combo_run(Tap_6);
        combo_run(Tap_7);
        combo_run(Tap_8);
    }
}
 
combo Tap_1 {
    set_val(BUTTON_11, 0);
    wait(500);
    set_val(BUTTON_11, 100);
    wait(40);
    set_val(BUTTON_11, 100);
}
 
combo Tap_2 {
    set_val(STICK_2_X, 0);
    wait(500);
    set_val(STICK_2_X, 100);
    wait(40);
    set_val(STICK_2_X, 100);
}
 
combo Tap_3 {
    set_val(BUTTON_12, 0);
    wait(500);
    set_val(BUTTON_12, 100);
    wait(40);
    set_val(BUTTON_12, 100);
}
 
combo Tap_4 {
    set_val(BUTTON_16, 0);
    wait(500);
    set_val(BUTTON_16, 100);
    wait(40);
    set_val(BUTTON_16, 100);
}
 
combo Tap_5 {
    set_val(BUTTON_11, 0);
    wait(500);
    set_val(BUTTON_11, 100);
    wait(40);
    set_val(BUTTON_11, 100);
}
 
combo Tap_6 {
    set_val(STICK_1_X, 0);
    wait(500);
    set_val(STICK_1_X, 100);
    wait(40);
    set_val(STICK_1_X, 100);
}
 
combo Tap_7 {
    set_val(BUTTON_13, 0);
    wait(500);
    set_val(BUTTON_13, 100);
    wait(40);
    set_val(BUTTON_13, 100);
}
 
combo Tap_8 {
    set_val(BUTTON_17, 0);
    wait(500);
    set_val(BUTTON_17, 100);
    wait(40);
    set_val(BUTTON_17, 100);
}
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic! :smile0517:
User avatar
Prototype
Major General
Major General
 
Posts: 3252
Joined: Sun Dec 16, 2012 1:43 pm

Re: Combo for Fighting Games

Postby puntofreak » Sun Jan 14, 2018 5:42 pm

thx i will try that...beacuse i had no idea what is on gtuner down left on dpad
User avatar
puntofreak
Staff Sergeant
Staff Sergeant
 
Posts: 10
Joined: Tue Jan 09, 2018 7:10 pm


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 66 guests