Conversion

Gtuner Pro general support. Operation, questions, updates, feature request.

Conversion

Postby Respr » Tue Oct 12, 2021 3:27 am

Can someone please convert this script to a titan script?
Code: Select all
define RT = XB1_RT;
define LT = XB1_LT;
define RX = XB1_RX;
define RY = XB1_RY;
 
int value = 33;
int value2 = -33;
int delay = 11;
int Swap = FALSE;
main {
    if(get_val(LT)) {
        combo_run(LT_C);
    }
 
    if(get_val(RT) && get_val(LT)) {
        combo_stop(LT_C);
        combo_run(RT_C);
    }
 
    if(get_val(RX) < value2 || get_val(RX) > value || get_val(RY) < value2 || get_val(RY) > value || get_val(RX) < value2 || get_val(RX) > value || get_val(RY) < value2 || get_val(RY) > value) {
        combo_stop(LT_C);
        combo_stop(RT_C);
    }
 
    if((get_val(XB360_LT)) >= 95) {
        set_val(XB360_LS, 100);
    }
 
    if(get_val(XB360_RT)) {
        set_val(XB360_RT, 100);
    }
    if(get_val(XB360_LT)) {
        set_val(XB360_LT, 100);
    }
 
    if(get_val(XB1_RIGHT)){
        if(event_press(XB1_X)) Swap = !Swap;
    }
    if(Swap) {
        if(event_press(4)){
            combo_run(cSwap);
        }
    }
}
 
combo LT_C {
    set_val(RY, -25);
    wait(delay);
    set_val(RX, 25);
    set_val(RY, 15);
    wait(delay);
    set_val(RY, 15);
    wait(delay);
    set_val(RX, -25);
    set_val(RY, 15);
    wait(delay);
}
 
combo RT_C {
    set_val(RY, -35);
    wait(delay);
    set_val(RX, 35);
    set_val(RY, 25);
    wait(delay);
    set_val(RY, 25);
    wait(delay);
    set_val(RX, -35);
    set_val(RY, 25);
    wait(delay);
}
 
combo cSwap {
    set_val(XB360_RT, 100);
    wait(30);
    set_val(XB360_RT, 0);
    wait(1);
    set_val(XB360_X, 100);
    wait(110);
    set_val(XB360_X, 0);
    wait(230);
    set_val(XB360_Y, 100);
    wait(90);
    set_val(XB360_Y, 0);
    wait(20);
    set_val(XB360_Y, 100);
    wait(20);
    set_val(XB360_Y, 0);
}
int START_BUTTON = XB1_LEFT; //The Button you start/end the LOOP with
    int SPAM_BUTTON = PS4_CROSS; //The Button you want to be pressed in the LOOP
    int HOLD = 1; //How Long SPAM_BUTTON is held
    int RELEASE = 1; //How Long before SPAM_BUTTON is pressed again after release
    int onoff;
 
 
    main {
 
    if(event_press(START_BUTTON)) onoff=!onoff;
    if(onoff) combo_run(LOOP);}
 
    combo LOOP {
    set_val(XB1_B, 100);
    wait(170);
    set_val(XB1_B, 100);
    set_val(XB1_A, 100);
    wait(120);
    set_val(XB1_B, 100);
    set_val(XB1_A, 0);
    wait(120);
    set_val(XB1_B, 100);
    set_val(XB1_A, 100);
    wait(140);
    set_val(XB1_B, 100);
    set_val(XB1_A, 0);
    wait(70);
    set_val(XB1_B, 0);
    wait(200)
}
main {
    if((get_val(XB360_BACK)) && (get_val(XB360_START))) {
        set_val(XB360_XBOX, 100);
    }
}
User avatar
Respr
Private
Private
 
Posts: 1
Joined: Tue Oct 12, 2021 3:24 am

Re: Conversion

Postby Mad » Tue Oct 12, 2021 7:05 am

Code: Select all
define RT = XB1_RT;
define LT = XB1_LT;
define RX = XB1_RX;
define RY = XB1_RY;
 
int value = 33;
int value2 = -33;
int delay = 11;
int Swap = FALSE;
 
int START_BUTTON = XB1_LEFT; //The Button you start/end the LOOP with
int SPAM_BUTTON = PS4_CROSS; //The Button you want to be pressed in the LOOP
int HOLD = 1; //How Long SPAM_BUTTON is held
int RELEASE = 1; //How Long before SPAM_BUTTON is pressed again after release
int onoff;
 
main {
    if(get_val(LT)) {
        combo_run(LT_C);
    }
 
    if(get_val(RT) && get_val(LT)) {
        combo_stop(LT_C);
        combo_run(RT_C);
    }
 
    if(get_val(RX) < value2 || get_val(RX) > value || get_val(RY) < value2 || get_val(RY) > value || get_val(RX) < value2 || get_val(RX) > value || get_val(RY) < value2 || get_val(RY) > value) {
        combo_stop(LT_C);
        combo_stop(RT_C);
    }
 
    if((get_val(XB360_LT)) >= 95) {
        set_val(XB360_LS, 100);
    }
 
    if(get_val(XB360_RT)) {
        set_val(XB360_RT, 100);
    }
    if(get_val(XB360_LT)) {
        set_val(XB360_LT, 100);
    }
 
    if(get_val(XB1_RIGHT)){
        if(event_press(XB1_X)) Swap = !Swap;
    }
    if(Swap) {
        if(event_press(4)){
            combo_run(cSwap);
        }
    }
    if((get_val(XB360_BACK)) && (get_val(XB360_START))) {
        set_val(XB360_XBOX, 100);
    }
    if(event_press(START_BUTTON)) onoff=!onoff;
    if(onoff) combo_run(LOOP);
}
 
combo LT_C {
    set_val(RY, -25);
    wait(delay);
    set_val(RX, 25);
    set_val(RY, 15);
    wait(delay);
    set_val(RY, 15);
    wait(delay);
    set_val(RX, -25);
    set_val(RY, 15);
    wait(delay);
}
 
combo RT_C {
    set_val(RY, -35);
    wait(delay);
    set_val(RX, 35);
    set_val(RY, 25);
    wait(delay);
    set_val(RY, 25);
    wait(delay);
    set_val(RX, -35);
    set_val(RY, 25);
    wait(delay);
}
 
combo cSwap {
    set_val(XB360_RT, 100);
    wait(30);
    set_val(XB360_RT, 0);
    wait(1);
    set_val(XB360_X, 100);
    wait(110);
    set_val(XB360_X, 0);
    wait(230);
    set_val(XB360_Y, 100);
    wait(90);
    set_val(XB360_Y, 0);
    wait(20);
    set_val(XB360_Y, 100);
    wait(20);
    set_val(XB360_Y, 0);
}
 
combo LOOP {
    set_val(XB1_B, 100);
    wait(170);
    set_val(XB1_B, 100);
    set_val(XB1_A, 100);
    wait(120);
    set_val(XB1_B, 100);
    set_val(XB1_A, 0);
    wait(120);
    set_val(XB1_B, 100);
    set_val(XB1_A, 100);
    wait(140);
    set_val(XB1_B, 100);
    set_val(XB1_A, 0);
    wait(70);
    set_val(XB1_B, 0);
    wait(200)
}
ConsoleTuner Support Team || Discord || YouTube || Twitter
Mad
Major General
Major General
 
Posts: 3892
Joined: Wed May 22, 2019 5:39 am


Return to Gtuner Pro Support

Who is online

Users browsing this forum: kkingforever and 11 guests