|
int onoff = 0;
int onoff2 = 0;
int onoff3 = 0;
int a = 0;
int b = 1;
int limtime = 10;
main {
if (event_press(PS4_L3)){
a = 0;
onoff2 = 0;
onoff = !onoff;
}
if (onoff == 1 && onoff2 == 0 && a < limtime){
combo_stop(repeat2);
combo_run(repeat);
}
if (a == limtime && onoff2 == 0 && onoff == 1 ){
combo_stop(repeat);
onoff2 = 1;
}
if (onoff2 == 1){
combo_run(repeat2);
}
if (onoff == 0 && onoff2 == 0){
combo_stop(repeat);
combo_stop(repeat2);
}
set_val(TRACE_1, a);
set_val(TRACE_2, onoff*100);
set_val(TRACE_3, onoff2*100);
}
另外我想要學新腳本寫法~方便在上面那些加上註解嗎? 感謝!
|
|