Desync issue
1 post
• Page 1 of 1
Desync issue
Hi,
I have a question is there something that i can do to my script so that it desyncs less i already tried highering the times but sometimes it runs for 30mins + without issues and then it desyncs really quickly like it does on wrong button press i guess i can higher the times more i dunno really what causes the desync or the missed button hits
I have a question is there something that i can do to my script so that it desyncs less i already tried highering the times but sometimes it runs for 30mins + without issues and then it desyncs really quickly like it does on wrong button press i guess i can higher the times more i dunno really what causes the desync or the missed button hits
- Code: Select all
/* =====================================================================
* Pokemon Scarlet / Violet
* Game Version: 1.0.1
* Script Version: 1.0.0
* System: Nintendo Switch
*
* Script to Dupe Items Automatically
*
*You must setup at the Pokemon Boxes
*
* Requires user to press ZL to activate script
* Requires user to press ZR to deactivate script
*
*
* Disclaimer: Use at your own risk. I am not responsible for any damage caused to your game or console.
*
**/
int Enable;
main {
if(event_press(SWITCH_ZL)) {
Enable = TRUE;
}
if(event_press(SWITCH_ZR)) {
Enable = FALSE;
}
if(Enable) {
combo_run(actions);
}
}
combo press_a {
set_val(SWITCH_A, 100);
wait(50);
set_val(SWITCH_A, 0);
}
combo press_b {
set_val(SWITCH_B, 100);
wait(50);
set_val(SWITCH_B, 0);
}
combo press_x {
set_val(SWITCH_X, 100);
wait(50);
set_val(SWITCH_X, 0);
}
combo press_l {
set_val(SWITCH_L, 100);
wait(50);
set_val(SWITCH_L, 0);
}
combo press_up {
set_val(SWITCH_UP, 100);
wait(50);
set_val(SWITCH_UP, 0);
}
combo press_right {
set_val(SWITCH_RIGHT, 100);
wait(50);
set_val(SWITCH_RIGHT, 0);
}
combo press_left {
set_val(SWITCH_LEFT, 100);
wait(50);
set_val(SWITCH_LEFT, 0);
}
combo press_down {
set_val(SWITCH_DOWN, 100);
wait(50);
set_val(SWITCH_DOWN, 0);
}
combo actions {
// press Left on the D-Pad 1 times
call(press_left);
wait(1000);
// press Down on the D-Pad 4 times
call(press_down);
wait(1000);
call(press_down);
wait(1000);
call(press_down);
wait(1000);
call(press_down);
wait(1000);
// press A
call(press_a);
wait(1000);
// press Down on the D-Pad 5 times
call(press_down);
wait(1000);
call(press_down);
wait(1000);
call(press_down);
wait(1000);
call(press_down);
wait(1000);
call(press_down);
wait(1000);
// press A 4 times
call(press_a);
wait(2000);
call(press_a);
wait(1000);
call(press_a);
wait(3000);
call(press_a);
wait(1000);
// press Right on the D-Pad
call(press_right);
wait(1000);
// press Up on the D-Pad 4 times
call(press_up);
wait(1000);
call(press_up);
wait(1000);
call(press_up);
wait(1000);
call(press_up);
wait(1000);
// press A
call(press_a);
wait(4000);
// press X twice
call(press_x);
wait(1000);
call(press_x);
wait(1000);
// press L
call(press_l);
wait(1000);
// press A
call(press_a);
wait(1000);
// press Down on the D-Pad 3 times
call(press_down);
wait(1000);
call(press_down);
wait(1000);
call(press_down);
wait(1000);
// press A
call(press_a);
wait(1000);
// press B
call(press_b);
wait(4000);
wait(2000);
}
-
Dal - Private
- Posts: 1
- Joined: Sun Feb 26, 2023 12:04 am
1 post
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 86 guests