User Tools

Site Tools


en:orx:config:syntax

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:orx:config:syntax [2013/05/02 16:32 (13 years ago)] iarwainen:orx:config:syntax [2023/05/15 20:19 (2 years ago)] (current) sausage
Line 132: Line 132:
  
 Key2 = Var2; <= this will still be added to the 'MySection' section</code> Key2 = Var2; <= this will still be added to the 'MySection' section</code>
 +
 +===== Command =====
 +The Command module allows you to execute Orx functions from both the console and .ini files. Syntax for .ini files is specified in https://github.com/orx/orx/blob/master/code/bin/SettingsTemplate.ini. Console usage is discussed here: [[en:tutorials:command:commandnotes|Command Module notes]].
  
  
Line 137: Line 140:
  
 ==== Basic types ==== ==== Basic types ====
 +
 +Boolean values are expressed with literals ''true'' and ''false'':
 +
 +<code ini>VSync = true</code>
  
 Floating points (float) values are expressed using a decimal separator ('.'). Floating points (float) values are expressed using a decimal separator ('.').
Line 201: Line 208:
  
 The functions will then randomly return (1, 2, 3) or (4.0, 5.0, 6.0) for the vector one, and 1.0, 2.0 or 3.0 for the float one.\\ The functions will then randomly return (1, 2, 3) or (4.0, 5.0, 6.0) for the vector one, and 1.0, 2.0 or 3.0 for the float one.\\
-If the value was define using a random separator ('~'), any float value between 1.0 and 3.0 could have been returned.\\+If the values were defined using a random separator ('~'), any vector between (1, 2, 3) and (4.0, 5.0, 6.0) or any float value between 1.0 and 3.0 could have been returned.\\
 Please also note that controlled randoms using lists works also with non-numerical values. Please also note that controlled randoms using lists works also with non-numerical values.
  
en/orx/config/syntax.1367537547.txt.gz · Last modified: 2017/05/30 00:50 (8 years ago) (external edit)