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

rex_systemext

Plugin, ACE table, Discussion thread
Dependence: None

Introduction
It provides
  • Some actions to pick instances
  • Activate or deactivate group by number
  • Set layer visible or invisible by number
  • Some expressions to handle number and string.

Usage
SOL
Sample capx
"Action:Pick all instances" , "Action:Pick by UID", "Action:Pick inverse" could be used to pick instance(s). It will change the SOL after executing.
It could save the events by replace condition to action, and make the action sequence more compactly.

Group
"Action:Set group active" could activate or deactivate group by number.

Layer
"Action:Set visible" could set layer visible or invisible by number.

Random
Get normal distribution by "Expression:NormalDistribution".

Round number
Sample capx
"Expression:ToFixed" - Convert a number into a string, keeping only N decimals.
"Expression:ToPrecision" - Format a number into a specified length

Hex string
"Expression:ToHexString" could transfer decimal value to hex string.

Number string with decimal mark
Sample capx
"
Expression:ToDecimalMark" could transfer number into string with decimal mark.
The number
format type could be assigned in 2nd parameter. For example
SysExt.ToDecimalMark( 123456.789 , "de-DE")  -> 123.456,789
SysExt.ToDecimalMark( 123456.789 , "
ar-EG")  -> ١٢٣٤٥٦٫٧٨٩
SysExt.ToDecimalMark( 123456.789 , "en-IN")  -> 1,23,456.789
SysExt.ToDecimalMark( 123456.789 , "zh-Hans-CN-u-nu-hanidec")  -> 一二三,四五六.七八九
Reference of this feature.

Get byte count of a string
Sample capx
Get byte count of a string by "Expression:String2ByteCount".

Get substring
Sample capx
Get sub-string by "Expression:SubString( string, start, end)". It will return a sub-string from (start) index to (end -1) index.

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