Plugin : MP Sync function

Author:Rex.Rainbow

Download

Properties

Tag prefix

  • Tag prefix for sending and receiving message.

Response

  • Run function immediately or wait for host sendback.
    • Options : ["Immediate","Sendback"]

Pending mode

  • Enable to pending command execution until accepted. Turn off to run command directly.
    • Options : ["No","Yes"]

Actions

Interface

Action:Declare parameter

  • Declare input parameter in name string and it's default value
    • Name ( string ) : Parameter's name
    • Value ( number or string ) : The default value.

Parameter list

Action:Call function

  • Call a function, running its 'On function' event.
    • Name ( string ) : The name of the function to call.
    • Parameter {n} ( variadic ) : A parameter to pass for the function call, which can be accessed with Function.Param({n}).

Parameter table

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 with parameter table.
    • Name ( string ) : The name of the function to call.

Pending

Action:Accept

  • Accept one command. Execute command if there has any pending command.

Action:Close

  • Close acceptance.

Action:Discard&Close

  • Discard all pending commands and close acceptance.

Pending - ignored list

Action:Add

  • Add a function by name to to ignored list of blocking
    • Name ( string ) : The name of the function.

Action:Remove

  • Remove the function by name from to ignored list of blocking
    • Name ( string ) : The name of the function.

Expressions

Debug

Expression:FunctionName

  • Function name for dubug, used under "Condition:On any function".

Expression:FunctionParams

  • Function parameters for dubug, used under "Condition:On any function".

Function

Expression:ParamCount

  • Get the number of parameters passed to this function.

Expression:Param

  • Get the value of a parameter passed to the function.
    • Index ( number or string ) : The zero-based index of the parameter to get, or name in string.

Expression:SenderAlias

  • The alias of sender, used under callback "Condition:On function".

Conditions

Function

Condition:On function

  • Triggered when a function is called.
    • Name ( string ) : The name of the function that is being called.

Condition:On any function

  • Triggered when any function is called. Dump the trace.

Parameter

Condition:Compare parameter

  • Compare the value of a parameter in a function call.
    • Index ( number or string ) : The zero-based index of the parameter to get, or name in string.
    • Comparison ( cmp ) : How to compare the function parameter.
    • Value ( number or string ) : The value to compare to.

Condition:Type of parameter

  • Test the type of parameter.
    • Index ( number or string ) : The zero-based index of the parameter to get, or name in string.
    • Type ( Combo ) : The type of value.
      • Options : ["Number","String"]