GPC Developer Guides
Combo Section
a combo (short for combination) is a combination of pre programmed instructions which are executed in sequence just like the main section, commands within a combo are performed in the order they are written you can run any code you can run in the main section within a combo such as calling functions or setting variables, although this is generally unnecessary and usually results in nothing more than a waste of stack memory and byte code space a combo is ideally suited to set the output of a button for a specific length of time which is done using the wait command, a command that is unique to combos and cannot be used elsewhere just as with variables, a combo name can start with either an underscore ( ) or a letter and can be followed by any combination of letters, digits, or underscores gpc main { if (event press(xb1 a) { combo run(mycombo); } if (event press(xb1 b)) { if(combo running(mycombo)) { combo stop(mycombo); } } if (event press(xb1 x)) { combo restart(mycombo); } } combo mycombo { set val(xb1 a, 100); wait(200); wait(4000); set val(xb1 b, 100); wait(200); wait(4000); set val(xb1 x, 100); wait(200); wait(4000); set val(xb1 y, 100); wait(200); wait(4000); set val(xb1 lb, 100); wait(200); wait(4000); call(mycombo2); } combo mycombo2 { set val(xb1 rb,100); wait(100); wait(2000); }