ScriptGPCGPC reference

Timing

A timed hold, the shape of a standstill shot

A standstill timing script holds the shot button and lets go. The language has no idea where the green window is. You pick N, you shoot, you move N.

int hold;

init {
    hold = 660;
}

main {
    if (event_press(PS4_R3)) {
        combo_run(jumper);
    }
}

combo jumper {
    set_val(PS4_SQUARE, 100);
    wait(hold);
    set_val(PS4_SQUARE, 0);
}

This is an illustration of the shape, not yew2K and not a file to flash. A real menu would also refuse the hold when you are sprinting, when another shot is already running, and when the feature is off. Those gates are most of the work. The wait is the easy line.

Calibrate in the mode you play. Take several shots. If the release is early, raise the wait. If it is late, lower it. Change one step. Offline practice and an online court do not share a window. A shipped file such as yew2K already has this idea on a menu, with its own default and its own button. You do not rebuild that file from the sketch.

660 in the sketch is a teaching number. A menu on a device shows the number that file actually uses.

A hold you can explain

A timed hold waits, writes a button, waits the length of the hold, then lets the button go. The sketch uses event_press on a click and set_val on Square, with 660 as the teaching length. 660 is not a yew2K value and not a recommendation. It is a number you can see in the source so the lesson is not abstract. Change it, compile, and the hold changes. That is the entire point.

The click should be a press that starts the combo once, not a value you set every loop or the hold restarts forever. main watches for the press and calls combo_run. The combo does the waits. If you put wait in main, the whole script stalls, which feels like a frozen pad.

Auto-Green on a product file is this shape plus a menu, a saved number, and a lot of other pages. You do not get that file by copying the sketch. yew2K is a separate, one-time file at $64.99, with Auto-Green on by default when you tap R3. yew2K+ is not in the sketch: it is sold once, only to yew2K owners, and it adds Turbo Stick+, Profiles and Quick-Stop AG. This page does not document those.

Test the sketch in a quiet menu or a training spot, not in a ranked game. You are checking that Square stays down for the wait you wrote. If the pad ignores it, the combo never ran, or the button constant does not match the controller.

A script variable shown live on the OLED: what a value page looks like on the device.
A script variable shown live on the OLED (Right Fade, 620ms): what a value page looks like on the device.