Plugin : ScenarioJ Engine

Author:Rex.Rainbow

Download

Properties

Debug mode

  • Enable to show log.
    • Options : ["No","Yes"]

Actions

0: Load

Action:Clean commands

  • Clean all commands.

Action:Append

  • Append commands.
    • Commands ( string ) : Commands in JSON format

Action:Append from editor

  • Append commands from editor, then clean the editor.
    • Editor ( object ) : ScenarioJ Editor

Function

Action:Set parameter

  • Set parameter of function.
    • Name ( string ) : Parameter's name
    • Value ( number or string ) : The default value.

Global

Action:Set global variable

  • Set global variable.
    • Name ( string ) : Variable name
    • Value ( number or string ) : value.

Action:Add to global variable

  • Set global variable.
    • Name ( string ) : Variable name
    • Value ( number or string ) : value.

Setup

Action:Setup timeline

  • Setup timeline.
    • Timeline ( object ) : Timeline object to get timer

Action:Setup callback

  • Setup callback.
    • Callback ( Combo ) : Callback object.
      • Options : ["Official function","Rex function2"]

Status

Action:Load status

  • Load status from JSON string.
    • Status ( string ) : Saved status in JSON string

Action:Clean status

  • Clean all tasks and global variables.

Task

Action:Set local variable

  • Set local variable of a task.
    • Task ( string ) : Task name
    • Name ( string ) : Variable name
    • Value ( number or string ) : value.

Action:Set task variable

  • Set task variable.
    • Task ( string ) : Task name
    • Name ( string ) : Variable name
    • Value ( number or string ) : value.

Action:Add to local variable

  • Set local variable of a task.
    • Task ( string ) : Task name
    • Name ( string ) : Variable name
    • Value ( number or string ) : value.

Action:Add to task variable

  • Set task variable.
    • Task ( string ) : Task name
    • Name ( string ) : Variable name
    • Value ( number or string ) : value.

Task - Control

Action:Start

  • Start task.
    • Task ( string ) : Task name
    • Function ( string ) : Function name.

Action:Stop

  • Stop task.
    • Task ( string ) : Task name

Action:Pause

  • Pause task.
    • Task ( string ) : Task name

Action:Resume

  • Rsume task.
    • Task ( string ) : Task name

Wait - Signal

Action:Fire signal

  • Fire signal to resume task.
    • Signl ( string ) : Signl name.

Expressions

Function

Expression:LastFunctionName

  • Get last function name under "Condition: On function scope changed". Or add 1st parameter for task name to get last function name of a specific task.

Global

Expression:GlobalVar

  • Get global variable value. Add 2nd parameter for default value if this variable is not existed.
    • Variable ( string ) : Variable name

Status

Expression:StatusAsJSON

  • Get status in JSON string.

Task

Expression:LastTaskName

  • Get last finished task name.

Expression:LocalVar

  • Get current local variable value in a function. Add 3rd parameter for default value if this variable is not existed.
    • Task ( string ) : Task name
    • Variable ( string ) : Variable name

Expression:TaskVar

  • Get task's variable value. Add 3rd parameter for default value if this variable is not existed.
    • Task ( string ) : Task name
    • Variable ( string ) : Variable name

Conditions

Control

Condition:On task done

  • Triggered when task executed completed.
    • Task ( string ) : Task name

Condition:On any task done

  • Triggered when any task executed completed.

Condition:Is running

  • Is task running.
    • Task ( string ) : Task name

Function

Condition:Is function existed

  • Return true if function is existed.
    • Function ( string ) : Function name.

Condition:On function scope changed

  • Triggered when function scope changed.