
|
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 is it is not already running.
Syntaxcombo_run ( <Combo Name> );
Parameters<Combo Name> : The name assigned to a combo.
|
|
As the
name suggests, combo_stop will stop a combo if it is currently
running. As with combo_run, it has no effect if the combo is not currently running.
Syntaxcombo_stop ( <Combo Name> );
Parameters<Combo Name> : The name assigned to a combo.
combo_stop is particularly useful when you only wish for your combo to run when a button
is held. To achieve this, you would use it in combination with an else statement as shown below;
|
|
|
As the
name suggests, combo_restart will restart a running combo.
If the combo stated within it's parameters is currently running, it will be restarted
from the beginning. If the combo is not currently running, it will be run.
Syntaxcombo_restart ( <Combo Name> );
Parameters<Combo Name> : The name assigned to a combo.
|
|
The
wait command instructs the Virtual
Machine within the CronusMAX on how long the last set of commands should be executed
for. The length of time they instruct the VM to execute the commands for 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 previous call command or the start of the
combo, whichever comes first.
As shown in the example below;
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. The
example below shows correct and incorrect usage of the wait command;
Syntaxwait ( <Time> );
Parameters<Time> : The length of time the last commands should be executed for. Represented in milliseconds - range 10 ~ 4000
|
||
|
Like the
wait command, call is unique to combos and it is
not permitted outside of the first level of a combo.
When the
call command is used, the current
combo it is placed in is paused and
the combo within the call commands parameters is
executed. Once the called combo has finished, the combo the call command was executed in is
then resumed. For example;
In the
above example, when _1st_combo is run, the sequence of commands sent to the console
would be;
As you
can see, using the call command
injects a combo into a combo at a set point. This
is particularly useful when you have two combos which perform identical actions at a
point and wish to save space in your script.
Syntaxcall ( <Combo Name> );
Parameters<Combo Name> : The name of the combo to be called.
|
|