Help with combo script
2 posts
• Page 1 of 1
Help with combo script
Hey, I only have very basic knowledge of GPC like editing buttons etc so any help would be great. I have a titan 1 and would like to make a script which, once toggled, continuously presses XB1-RT but when another button is pressed, loop is paused, a series of buttons pressed and then the RT combo is resumed. This is what I have so far:
TIA
- Code: Select all
int toggle;
main {
if(event_press(XB1_RT)) {
toggle = !toggle
}
if(toggle) {
combo_run(MyCombo);
}
if(event_press(XB1_LT)) {
combo_run(MyCombo2);
}
}
combo MyCombo{
set_val(XB1_RT, 100);
wait(50);
}
combo MyCombo2 {
set_val(XB1_X, 100);
wait(40)
wait(200);
set_val(XB1_UP, 100);
wait(40)
wait(200);
set_val(XB1_UP, 100);
wait(40);
wait(200)
set_val(XB1_RIGHT, 100);
wait(40);
wait(200)
set_val(XB1_RIGHT, 100);
wait(200);
wait(40)
set_val(XB1_RIGHT, 100);
wait(40)
wait(200);
set_val(XB1_RIGHT, 100);
wait(40)
wait(200);
set_val(XB1_DOWN, 100);
wait(40)
wait(200);
set_val(XB1_A, 100);
wait(40)
wait(500);
set_val(XB1_DOWN, 100);
wait(40);
wait(200)
set_val(XB1_DOWN, 100);
wait(40);
wait(200)
set_val(XB1_A, 100);
wait(200);
wait(40)
set_val(XB1_MENU, 100);
wait(40)
wait(1000);
set_val(XB1_RIGHT, 100);
wait(40)
wait(200);
set_val(XB1_RIGHT, 100);
wait(40)
wait(200);
set_val(XB1_A, 100);
wait(40)
wait(200);
set_val(XB1_B, 100);
wait(40)
wait(200);
}
TIA
-
CameronR2468 - Private
- Posts: 1
- Joined: Wed Mar 24, 2021 10:31 am
Re: Help with combo script
- Code: Select all
int toggle;
main {
if(event_press(XB1_RT)) {
toggle = !toggle
}
if(toggle) {
combo_run(MyCombo);
}
if(event_press(XB1_LT)) {
toggle = FALSE;
combo_stop(MyCombo);
combo_run(MyCombo2);
}
}
combo MyCombo{
set_val(XB1_RT, 100);
wait(50);
}
combo MyCombo2 {
set_val(XB1_X, 100);
wait(40)
wait(200);
set_val(XB1_UP, 100);
wait(40)
wait(200);
set_val(XB1_UP, 100);
wait(40);
wait(200)
set_val(XB1_RIGHT, 100);
wait(40);
wait(200)
set_val(XB1_RIGHT, 100);
wait(200);
wait(40)
set_val(XB1_RIGHT, 100);
wait(40)
wait(200);
set_val(XB1_RIGHT, 100);
wait(40)
wait(200);
set_val(XB1_DOWN, 100);
wait(40)
wait(200);
set_val(XB1_A, 100);
wait(40)
wait(500);
set_val(XB1_DOWN, 100);
wait(40);
wait(200)
set_val(XB1_DOWN, 100);
wait(40);
wait(200)
set_val(XB1_A, 100);
wait(200);
wait(40)
set_val(XB1_MENU, 100);
wait(40)
wait(1000);
set_val(XB1_RIGHT, 100);
wait(40)
wait(200);
set_val(XB1_RIGHT, 100);
wait(40)
wait(200);
set_val(XB1_A, 100);
wait(40)
wait(200);
set_val(XB1_B, 100);
wait(40)
wait(200);
toggle = TRUE;
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
- Mad
- Major General
- Posts: 4532
- Joined: Wed May 22, 2019 5:39 am
2 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 49 guests