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

rex_csv2array

Plugin, ACE table, Discussion thread
Dependence: official array plugin

Introduction
This plugin could load content of official array object by csv string.

Usage
Sample capx
There is only one "Action:Put csv data into array", put csv string at 1st parameter, and official array object at 2nd parameter. X/Y mapping from Row/Col at 3rd parameter, Z index at 4th parameter.
The format of csv string is

    
for each line, see sample capx for more detail.
The "Eval mode" setting in properties table is the same as rex_csv plugin.
  • number: 10
  • string: 'hi'
  • javascript function: Math.random() -- it return a number
Delimiter
Delimiter is set in property "Delimiter" or set by "Action:Set delimiter". Default is ",".

Split string
Sample capx
"Action:Put csv data into array" also could be used to split string by delimiter, and put sub-strings into an array.
Or uses "Condition:For each cell" to retrieve all sub-strings.

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