Plugin : ScenarioJ Editor
Author:Rex.Rainbow
- Create Scenario-Json commands.
Download
Properties
Mustache
- Enable to process string by Mustache templating engine.
Left delimiter
- Left delimiter. Set "" to use default delimiter "{{"
Right delimiter
- Right delimiter. Set "" to use default delimiter "}}"
Actions
C2 function call
Action:Call C2 function
- Call a c2 function, running its 'On function' event.
- Name ( string ) : The name of the c2 function to call.
- Parameter {n} ( variadic ) : A parameter to pass for the c2 function call, which can be accessed with Function.Param({n}).
Function
Action:Stop function
- Exit current function, return to previous function body.
Function call
Action:Set parameter
- Set a parameter table.
- Name ( number or string ) : Name of parameter
- Value ( number or string ) : Value
Action:Call function
- Call a function, running its 'On function' event.
- Name ( string ) : The name of the function to call.
Global variable
Action:Add to
- Add to the value of task variable.
- Name ( string ) : Parameter's name
- Value ( number or string ) : Value to set.
- Task ( string ) : Task name. Set to "" for current task.
Action:Set default value
- Set default value of global variable.
- Name ( string ) : Parameter's name
- Value ( number or string ) : The default value.
Action:Set value
- Set global variable.
- Name ( string ) : Parameter's name
- Value ( number or string ) : Value to set.
Action:Add to
- Add to the value of global variable.
- Name ( string ) : Parameter's name
- Value ( number or string ) : Value to set.
Local variable
Action:Set default value
- Set default value of local variable.
- Name ( string ) : Parameter's name
- Value ( number or string ) : The default value.
Action:Set value
- Set local variable.
- Name ( string ) : Parameter's name
- Value ( number or string ) : Value to set.
- Task ( string ) : Task name. Set to "" for current task.
Action:Add to
- Add to the value of local variable.
- Name ( string ) : Parameter's name
- Value ( number or string ) : Value to set.
- Task ( string ) : Task name. Set to "" for current task.
Loop
Action:Stop loop
- Stop current loop (for, while)
Mustache
Action:Set delimiters
- Set delimiters .
- Left delimiter ( string ) : Left delimiter. Set "" to use default delimiter "{{"
- Right delimiter ( string ) : Right delimiter. Set "" to use default delimiter "}}"
Task
Action:Stop task
Task - Control
Action:Start
- Start task.
- Task ( string ) : Task name. Set to "" for current task.
- Function ( string ) : Function name.
Task variable
Action:Set default value
- Set default value of task variable.
- Name ( string ) : Parameter's name
- Value ( number or string ) : The default value.
Action:Set value
- Set task variable.
- Name ( string ) : Parameter's name
- Value ( number or string ) : Value to set.
- Task ( string ) : Task name. Set to "" for current task.
Wait
Action:Wait
- Pending function execution until time-out or signal fired.
- Delay time/Signal ( number or string ) : Number for delay time in seconds, or string of wait-signal.
Expressions
Content
Expression:Content
Expression
Expression:Eval
- Define expression, this string will be evaluated to get a number or a string.
- Expression ( string ) : Expression.
Expression:Num
- Define expression, this string will be evaluated to get a number.
- Number ( string ) : Number expression.
Expression:Raw
- Define raw string.
- String ( number or string ) : String expression.
Expression:Mustache
- Define string processed by mustache.
- String ( string ) : String expression.
Conditions
0. Function body
Condition:On function
- Declare a function.
- Name ( string ) : The name of the function that is being called.
If
Condition:If
- Declare a if condition.
- Condition ( number or string ) : Condition.
Condition:Else if
- Declare a else if condition.
- Condition ( number or string ) : Condition.
Condition:Else
- Declare a else condition.
Loop
Condition:For
- Declare a for loop.
- Variable name ( string ) : Variable name of index.
- Start ( number or string ) : Start value.
- Stop ( number or string ) : Stop value.
- Step ( number or string ) : Step value.
Condition:While
- Declare a while loop.
- Continue ( number or string ) : Continue condition.
Switch
Condition:Switch
- Declare a switch block.
- Expression ( string ) : Expression.
Condition:Case
- Declare a case block.
- Value ( number or string ) : Value to compare.
Condition:Default
- Declare a default case block.