Page 1 of 1

Script Request

PostPosted: Sat Mar 16, 2019 10:15 am
by brayden321
Hey guys

I need a script that will do these actions when I press A

Press A
Left Analog Stick Down or Button
Press A
Down
Press A

Re: Script Request

PostPosted: Sat Mar 16, 2019 11:48 am
by J2Kbr
The script below will perform the described actions, you may need adjust the wait() times in the combo the for best performance.
Code: Select all
main {
    if(event_press(XB1_A)) {
        combo_run(MyCombo);
    }
    if(combo_running(MyCombo)) {
        set_val(XB1_A, 0);
    }
}
 
combo MyCombo {
    // Press A
    set_val(XB1_A, 100);
    wait(60); wait(40);
    // Down
    set_val(XB1_DOWN, 100);
    wait(60); wait(40);
    // Press A
    set_val(XB1_A, 100);
    wait(60); wait(40);
    // Down
    set_val(XB1_DOWN, 100);
    wait(60); wait(40);
    // Press A
    set_val(XB1_A, 100);
    wait(60);
}
 

Re: Script Request

PostPosted: Mon Mar 18, 2019 5:53 am
by brayden321
Can you please remap the A button to options button (left select button not pause)

The script works perfect thank you so much I just want to remap the A to the select button

J2Kbr wrote:The script below will perform the described actions, you may need adjust the wait() times in the combo the for best performance.
Code: Select all
main {
    if(event_press(XB1_A)) {
        combo_run(MyCombo);
    }
    if(combo_running(MyCombo)) {
        set_val(XB1_A, 0);
    }
}
 
combo MyCombo {
    // Press A
    set_val(XB1_A, 100);
    wait(60); wait(40);
    // Down
    set_val(XB1_DOWN, 100);
    wait(60); wait(40);
    // Press A
    set_val(XB1_A, 100);
    wait(60); wait(40);
    // Down
    set_val(XB1_DOWN, 100);
    wait(60); wait(40);
    // Press A
    set_val(XB1_A, 100);
    wait(60);
}
 

Re: Script Request

PostPosted: Mon Mar 18, 2019 5:54 am
by brayden321
Or can I remap the script to trigger from the select button ?

Re: Script Request

PostPosted: Mon Mar 18, 2019 1:32 pm
by J2Kbr
brayden321 wrote:Or can I remap the script to trigger from the select button ?

yes:
Code: Select all
main {
    if(event_press(PS3_SELECT)) {
        combo_run(MyCombo);
    }
    if(combo_running(MyCombo)) {
        set_val(PS3_SELECT, 0);
    }
}
 
combo MyCombo {
    // Press A
    set_val(XB1_A, 100);
    wait(60); wait(40);
    // Down
    set_val(XB1_DOWN, 100);
    wait(60); wait(40);
    // Press A
    set_val(XB1_A, 100);
    wait(60); wait(40);
    // Down
    set_val(XB1_DOWN, 100);
    wait(60); wait(40);
    // Press A
    set_val(XB1_A, 100);
    wait(60);
}