website logo
Buy CronusGPC LibraryGamePacks (16bit)YouTubeForumsDiscord
πŸ“˜Cronus Zen Guide
πŸ“—GamePacks (32bit)
πŸ“—GPC Script Guide
Navigate through spaces
⌘K
πŸ“‘GPC SCRIPTING
What's New in 32bit?
Introduction
Variables
Basic GPC Structure
Definitions
Data Section
Remapping
Const Arrays
Init Section
Main Section
Combo Section
User Created Functions
Identifiers
Flow Control
Constants
Functions
Device Functions
Remapping
Advanced Samples
API Samples
Docs powered byΒ archbeeΒ 

Combo Functions

Here is the list of the Combo Functions and Commands.

Combo Functions and Commands

Function

Description

combo_run

Runs a combo.

combo_running

Checks if a combo is running.

combo_stop

Stops a running combo.

combo_restart

Restarts a running combo.

combo_suspend

Suspends (pauses) a combo.

combo_suspended

Checks if a combo is in the suspended state.

combo_current_step

Gets the current step.

combo_step_time_left

Gets the time left of the currently executed step.

combo_stop_all

Stops all combos.

combo_suspend_all

Suspends (pauses) all combos.

combo_resume

Resumes the suspended combo.

combo_resume_all

Resumes all suspended combos.

combo_run

combo_run does precisely what the name suggests and runs a combo. However, unlike the combo_restart command, it has no effect if the combo is currently running. It will only start a combo if it is not already running.

GPC
|
combo_run(MyCombo);
ο»Ώ

πŸ”΄ Syntax

combo_run( <combo_name> );

βšͺ Parameters <combo_name> : The name assigned to a combo

πŸ”΅ Returns

Nothing

combo_running

combo_running is a function that can be used in your code to check is a combo is running is not. If the combo named in its parameter is running, then it will return TRUE. If not, it will return FALSE.

GPC
|
combo_running(MyCombo);
ο»Ώ

πŸ”΄ Syntax

combo_running( <combo_name>);

βšͺ Parameters

<combo_name> : The name assigned to a combo

πŸ”΅ Returns

TRUE if the combo is currently running and FALSE if it is not.

combo_stop

combo_stop does precisely what the name suggests and will stop a combo if it is running. As with combo_run, it has no effect if the combo is currently not running.

GPC
|
combo_stop(MyCombo);
ο»Ώ

πŸ”΄ Syntax

combo_stop( <combo_name> );

​βšͺ Parameters

<combo_name> : The name assigned to a combo

πŸ”΅ Returns

Nothing

combo_restart

combo_restart will restart a running combo. If the combo started within its parameters is currently running, it will be restarted from the beginning. If the combo is not currently running, it will be run.

GPC
|
combo_restart(MyCombo);
ο»Ώ

πŸ”΄ Syntax

combo_restart( <combo_name> );

βšͺ Parameters

<combo_name> : The name assigned to a combo

πŸ”΅ Returns

Nothing

combo_suspend

combo_suspend command suspends (pauses) a combo from running.

GPC
|
combo_suspend(MyCombo);
ο»Ώ

πŸ”΄ Syntax

combo_suspend( <combo_name> );

βšͺ Parameters

<combo_name> : The name assigned to a combo πŸ”΅ Returns

Nothing

combo_suspended

combo_suspended Check to see if a combo is suspended.

GPC
|
combo_suspended(MyCombo);
ο»Ώ

πŸ”΄ Syntax

combo_suspended( <combo_name> );

​βšͺ Parameters

<combo_name> : Checks the name assigned to a combo if suspended πŸ”΅ Returns

Nothing

combo_current_step

combo_current_step keywords returning the current step

GPC
|
combo_current_step(MyCombo)
ο»Ώ

πŸ”΄ Syntax

combo_current_step ( <combo_name> );

​βšͺ Parameters

<combo_name> : Checks the name assigned keywords returning the current step

πŸ”΅ Returns

Nothing

combo_step_time_left

combo_step_time_left Checks the time left of the currently executed step

GPC
|
combo_step_time_left(MyCombos)
ο»Ώ

πŸ”΄ Syntax

combo_step_time_left( <combo_name> );

​βšͺ Parameters

<combo_name> : Checks the time left of the currently executed step

πŸ”΅ Returns

Nothing

combo_stop_all

combo_stop_all Stops all combos from running.

GPC
|
combo_stop_all(MyCombos);
ο»Ώ

πŸ”΄ Syntax

combo_stop_all ( <combo_name> );

βšͺ Parameters

<combo_name> : Stops all combos from running.

πŸ”΅ Returns

Nothing

combo_suspend_all

combo_suspend_all Suspends all combos that is running.

GPC
|
combo_suspend_all(MyCombos);
ο»Ώ

πŸ”΄ Syntax

combo_suspend_all ( <combo_name> );

βšͺ Parameters

<combo_name> : Suspends all combos that is running.

πŸ”΅ Returns

Nothing

combo_resume

combo_resume Will resume a combo if it is suspended or a running combo.

GPC
|
combo_resume(MyCombo);
ο»Ώ

πŸ”΄ Syntax

combo_resume ( <combo_name> );

βšͺ Parameters

<combo_name> : resume a combo if it is suspended or a running combo.

πŸ”΅ Returns

Nothing

combo_resume_all

combo_resume_all Will resume all combos if it is suspended or running combos.

GPC
|
combo_resume_all(MyCombo);
ο»Ώ

πŸ”΄ Syntax

combo_resume_all ( <combo_name> );

βšͺ Parameters

<combo_name> : resume all combos if it is suspended or a running combos.

πŸ”΅ Returns

Nothing

Combo Specific Commands

wait

wait command instructs the Virtual Machine within the Cronus on how long the last set of commands should be executed for. The length of time they instruct the VM to execute the commands is represented in milliseconds and can rand from 1ms to 32767ms (That's 1 millisecond to just over 32 seconds). The commands executed during the wait time are those placed between the current wait and the previous wait time, the current wait time and the previous call command, or the start of the combo, whichever comes first. As shown in the example below:

GPC
|
combo MyCombo {
 
    set_val(19, 100);//Β―Β―|
    set_val(18, 100);//  | These two buttons will be held
    wait(1000);      //←_| for 1000 milliseconds (1 second)
 
    set_val(3, 100);//Β―Β―|
    set_val(7, 100);//  | These two buttons will be held
    wait(1500);     //←_| for 1500 milliseconds (1.5 seconds)
 
    set_val(9, -100);//Β―Β―| This axis will be held
    wait(2000);      //←_| for 2000 milliseconds (2 seconds)
 
}
ο»Ώ

πŸ”Ž Info: The wait command can only be used within a combo and must be at the first level of the combo block, it cannot be nested.

GPC
|
wait(300); // wait 300ms
ο»Ώ

πŸ”΄Syntax

wait( <time> );

βšͺParameters

<time> : The length of time the last commands should be executed for represented in milliseconds ranging from 10 to 4000. πŸ”΅Returns

Nothing

call

call command can only be used in combos and pauses the current combo to execute the combo called. Once the combo has finished, the previous combo is resumed.

GPC
|
combo _1st_combo {
 
    set_val(XB1_B, 100);
    wait(100);
    wait(200);
    call(_2nd_combo);   //_1st_combo is paused until _2nd_combo is finished
    set_val(XB1_Y, 100);
    wait(100);
    wait(200);
 
}
 
combo _2nd_combo {
 
    set_val(XB1_RB, 100);
    wait(100);
    wait(200);
 
}   //Once this combo has ended, the combo is was called from can resume
ο»Ώ

πŸ”΄ Syntax

call( <combo_name );

βšͺ Parameters

<combo_name> : The name assigned to a combo

πŸ”΅ Returns

Nothing

PREVIOUS
Bit Functions
NEXT
Math Functions
Docs powered byΒ archbeeΒ 
TABLE OF CONTENTS
Combo Functions and Commands
combo_run
combo_running
combo_stop
combo_restart
combo_suspend
combo_suspended
combo_current_step
combo_step_time_left
combo_stop_all
combo_suspend_all
combo_resume
combo_resume_all
Combo Specific Commands
wait
call