User Tools

Site Tools


script_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
Next revisionBoth sides next revision
script_syntax [2017/10/13 11:22] justinscript_syntax [2017/10/16 07:19] justin
Line 2: Line 2:
 ---- ----
  
-The scripting language in RPG in a Box is a simple imperative language designed specifically for the engine. It is based on the language described [[http://jayconrod.com/posts/37/a-simple-interpreter-from-scratch-in-python-part-1|here]] in the series of articles by Jay Conrod.+The scripting language in RPG in a Box is a simple imperative language designed specifically for the engine. It is based on the language described [[http://jayconrod.com/posts/37/a-simple-interpreter-from-scratch-in-python-part-1|here]] in the series of articles by Jay Conrod. The syntax is useful to know for creating [[quick script|quick scripts]] for tiles and objects in the [[Map Editor]] or for script nodes in the [[Dialogue Editor]].
  
 =====Statements====== =====Statements======
Line 25: Line 25:
 **Examples:** **Examples:**
 <code lua> <code lua>
-if global.property["gems_collected"] > 5 then+if global.property["gem_count"] > 5 then
    display_message("You've collected more than 5 gems!")    display_message("You've collected more than 5 gems!")
 end end
script_syntax.txt · Last modified: 2023/11/06 14:13 by justin