User Tools

Site Tools


string

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
string [2020/01/17 19:00]
justin
string [2021/04/21 20:07] (current)
justin
Line 5: Line 5:
  
 ====Example:==== ====Example:====
-<code lua+<code bauxite
-display_message("Hello world! This is a string.")+display_message("Helloworld! This is a string.");
 </code> </code>
  
Line 16: Line 16:
  
 ====Example:==== ====Example:====
-<code lua+<code bauxite
-set_entity_property(entity["sign_01"], "message", "This is the sign's \"message\".")+set_entity_property(entity["sign_01"], "message", "The sign's \"message\".");
 </code> </code>
  
-The above example demonstrates 3 different cases of a string being used: an entity name reference, the name of the property, and a text value to store in the property.+The above example demonstrates 3 different cases of a string being used: an entity by ID reference, the name of the property, and a text value to store in the property.
  
 =====String Concatenation===== =====String Concatenation=====
Line 26: Line 26:
  
 ====Example:==== ====Example:====
-<code lua+<code bauxite
-display_message("Hello " + global.property["player_name"] + "!")+display_message("Hello" + global.property["player_name"] + "!");
 </code> </code>
  
 ~~NOTOC~~ ~~NOTOC~~
string.1579316454.txt.gz · Last modified: 2020/01/17 19:00 by justin