Rex's plugins for Construct2
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About

rex_bScenario

Plugin, ACE table, Discussion thread
Dependence: rex_timeline plugin

Introduction
This behavior will parse commands from a csv format string, then execute them. Csv could be created by excel or google document.
It is the behavior version of rex_scenario plugin.

Usage
Sample capx
In event sheet,
  1. use "Action:Load CSV commands" to load commands first,
  2. then call "Action:Start scenario" to start commands execution.
Parameter "Repeat" is the repeated count of commands execution. Set 0 to run these commands infinity.
Commands will be executed through "Condition:On command", get parameters of this command by "Expression:Param".
Commands
The description of supported commands are the same as rex_scenario plugin.
Compare with rex_scenario plugin
The usage is similar with rex_scenario plugin. The different is, this scenario behavior will execute commands through "Condition:On command".

Run commands set at properties table
Sample capx
Commands
This behavior also could run commands set in "
Commands" in properties table.
But he format of commands in
"Commands" is JSON format, not CSV.
(Because the text entry in
properties table does not support multi-lines, only has one line.)
For example, command in CSV format is
0,MoveTo.100
A csv row will map to a list with cells, so that  the JSON format of this command is
[0,"MoveTo",100]
Then, all commands are put into a list in order, like
[[0,"MoveTo",100].["wait"]]
Run commands
Set "Activated" to "Yes" in properties table. The parameters of "Offset", "Tag", "Repeat count" are also set in properties table.

Sync timescale
This behavior could be affected by timescale of this instance, if "Sync timescale" sets to "Yes" in properties table. This feature is the same with rex_scenario plugin.

Create a free web site with Weebly
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About