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
scripting_reference [2024/03/11 11:25] justinscripting_reference [2024/04/04 20:38] (current) 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 110: Line 110:
 |[[get_noise_2d|Get Noise 2D]]|**get_noise_2d**(//x//, //y//)| |[[get_noise_2d|Get Noise 2D]]|**get_noise_2d**(//x//, //y//)|
 |[[get_noise_3d|Get Noise 3D]]|**get_noise_3d**(//x//, //y//, //z//)| |[[get_noise_3d|Get Noise 3D]]|**get_noise_3d**(//x//, //y//, //z//)|
 +|[[give_currency|Give Currency]]|**give_currency**(//amount//, //*stat_id//, //*character//)|
 |[[give_item|Give Item]]|**give_item**(//item_id//, //*count//, //*character//)| |[[give_item|Give Item]]|**give_item**(//item_id//, //*count//, //*character//)|
 |[[give_loot|Give Loot]]|**give_loot**(//loot_name//, //*count//, //*character//)| |[[give_loot|Give Loot]]|**give_loot**(//loot_name//, //*count//, //*character//)|
Line 148: Line 149:
 |[[put_entity|Put Entity]]|**put_entity**(//entity//, //target_tile//)| |[[put_entity|Put Entity]]|**put_entity**(//entity//, //target_tile//)|
 |[[put_player|Put Player]]|**put_player**(//target_tile//, //*direction//)| |[[put_player|Put Player]]|**put_player**(//target_tile//, //*direction//)|
 +|[[remove_currency|Remove Currency]]|**remove_currency**(//amount//, //*stat_id//, //*character//)|
 |[[remove_entity|Remove Entity]]|**remove_entity**(//entity//)| |[[remove_entity|Remove Entity]]|**remove_entity**(//entity//)|
 |[[remove_from_group|Remove From Group]]|**remove_from_group**(//entity//, //group_name//)| |[[remove_from_group|Remove From Group]]|**remove_from_group**(//entity//, //group_name//)|
scripting_reference.1710181548.txt.gz · Last modified: 2024/03/11 11:25 by justin