User Tools

Site Tools


scripting_reference

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
scripting_reference [2024/03/04 21:18] justinscripting_reference [2024/03/31 08:18] justin
Line 39: Line 39:
 |substr(//string//, //start_position//, //*length//)|Returns a substring of a [[string]]. The "length" parameter can be omitted to include all characters from the start position until the end of the [[string]].| |substr(//string//, //start_position//, //*length//)|Returns a substring of a [[string]]. The "length" parameter can be omitted to include all characters from the start position until the end of the [[string]].|
 |range(//min//, //*max//, //*step//)|Returns an array of integers based on the supplied parameters. See "Range" section of [[Script Syntax]] for examples.| |range(//min//, //*max//, //*step//)|Returns an array of integers based on the supplied parameters. See "Range" section of [[Script Syntax]] for examples.|
-|inverse(//value//)|Returns the inverse of the specified value. Supported data types are [[number]], [[boolean]], [[coordinate]], [[color]], [[cardinal direction]], and [[navigation_and_interaction|navigation type]]. See "Inverse" section of [[Script Syntax]] for examples.|+|inverse(//value//)|Returns the inverse of the specified value. Supported data types are [[number]], [[boolean]], [[array]], [[coordinate]], [[color]], [[cardinal direction]], and [[navigation_and_interaction|navigation type]]. See "Inverse" section of [[Script Syntax]] for examples.|
 |duplicate(//value//)|Duplicates an [[array]] or [[codex]] to create a unique copy of the data.| |duplicate(//value//)|Duplicates an [[array]] or [[codex]] to create a unique copy of the data.|
 |clamp(//value//, //min//, //max//)|Returns a numeric value clamped to the specified range. The result will be no less than the minimum value and no more than the maximum value.| |clamp(//value//, //min//, //max//)|Returns a numeric value clamped to the specified range. The result will be no less than the minimum value and no more than the maximum value.|
Line 84: Line 84:
 |[[detach_effect|Detach Effect]]|**detach_effect**(//entity//, //attach_id//)| |[[detach_effect|Detach Effect]]|**detach_effect**(//entity//, //attach_id//)|
 |[[detach_object|Detach Object]]|**detach_object**(//entity//, //attach_id//)| |[[detach_object|Detach Object]]|**detach_object**(//entity//, //attach_id//)|
 +|[[disable_action|Disable Action]]|**disable_action**(//action_id//)|
 |[[disable_container|Disable Container]]|**disable_container**(//entity_id//)| |[[disable_container|Disable Container]]|**disable_container**(//entity_id//)|
 |[[disable_conveyor|Disable Conveyor]]|**disable_conveyor**(//conveyor_group//)| |[[disable_conveyor|Disable Conveyor]]|**disable_conveyor**(//conveyor_group//)|
Line 93: Line 94:
 |[[display_image|Display Image]]|**display_image**(//image_name//, //*duration//, //*bg_color//, //*stretch_mode//)| |[[display_image|Display Image]]|**display_image**(//image_name//, //*duration//, //*bg_color//, //*stretch_mode//)|
 |[[display_message|Display Message]]|**display_message**(//message_text//, //*speaker//)| |[[display_message|Display Message]]|**display_message**(//message_text//, //*speaker//)|
 +|[[enable_action|Enable Action]]|**enable_action**(//action_id//)|
 |[[enable_container|Enable Container]]|**enable_container**(//entity_id//)| |[[enable_container|Enable Container]]|**enable_container**(//entity_id//)|
 |[[enable_conveyor|Enable Conveyor]]|**enable_conveyor**(//conveyor_group//)| |[[enable_conveyor|Enable Conveyor]]|**enable_conveyor**(//conveyor_group//)|
scripting_reference.txt · Last modified: 2024/04/04 20:38 by justin