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/10/23 14:46] justinscripting_reference [2025/03/11 20:22] (current) justin
Line 3: Line 3:
 =====Global Variables===== =====Global Variables=====
 ^Variable^Description^Data Type^ ^Variable^Description^Data Type^
 +|global.property["x"]|Custom [[global_properties|global property]], where "x" is a [[string]] containing the name of the property. This can be used to either retrieve or change the property's value.|Varies|
 +|global.properties|All custom global properties. As it's a [[codex]], its keys can be iterated using a "for" loop (refer to the [[codex]] documentation for an example).|[[Codex]]|
 |global.theme|Current UI [[theme_editor|theme]]. Can be used to retrieve or modify the [[theme_editor|theme]].|[[String]]| |global.theme|Current UI [[theme_editor|theme]]. Can be used to retrieve or modify the [[theme_editor|theme]].|[[String]]|
 |global.gameplay|Gameplay settings. Can be used to retrieve the gameplay settings as defined in your [[Game Configuration]].|[[Codex]]| |global.gameplay|Gameplay settings. Can be used to retrieve the gameplay settings as defined in your [[Game Configuration]].|[[Codex]]|
Line 15: Line 17:
 |map.name|Name of the current [[map]].|[[String]]| |map.name|Name of the current [[map]].|[[String]]|
 |map.groups|List of [[groups]] defined for the current [[map]].|[[Array]]| |map.groups|List of [[groups]] defined for the current [[map]].|[[Array]]|
 +|map.property["x"]|Custom property stored on the [[map]], where "x" is a [[string]] containing the name of the property. This can be used to either retrieve or change the property's value.|Varies|
 +|map.properties|All custom properties defined for the current [[map]]. As it's a [[codex]], its keys can be iterated using a "for" loop (refer to the [[codex]] documentation for an example).|[[Codex]]|
  
 =====Camera Variables===== =====Camera Variables=====
Line 104: Line 108:
 |[[disable_conveyor|Disable Conveyor]]|**disable_conveyor**(//conveyor_group//)| |[[disable_conveyor|Disable Conveyor]]|**disable_conveyor**(//conveyor_group//)|
 |[[disable_effect|Disable Effect]]|**disable_effect**(//entity//)| |[[disable_effect|Disable Effect]]|**disable_effect**(//entity//)|
-|[[disable_screen_effect|Disable Screen Effect]]|**disable_screen_effect**(//*duration//)|+|[[disable_screen_effect|Disable Screen Effect]]|**disable_screen_effect**(//*duration//, //*screen_effect_id//)|
 |[[disable_turret|Disable Turret]]|**disable_turret**(//entity//)| |[[disable_turret|Disable Turret]]|**disable_turret**(//entity//)|
 |[[disable_zone|Disable Zone]]|**disable_zone**(//zone_name//)| |[[disable_zone|Disable Zone]]|**disable_zone**(//zone_name//)|
Line 114: Line 118:
 |[[enable_conveyor|Enable Conveyor]]|**enable_conveyor**(//conveyor_group//)| |[[enable_conveyor|Enable Conveyor]]|**enable_conveyor**(//conveyor_group//)|
 |[[enable_effect|Enable Effect]]|**enable_effect**(//entity//)| |[[enable_effect|Enable Effect]]|**enable_effect**(//entity//)|
-|[[enable_screen_effect|Enable Screen Effect]]|**enable_screen_effect**(//*duration//)|+|[[enable_screen_effect|Enable Screen Effect]]|**enable_screen_effect**(//*duration//, //*screen_effect_id//)|
 |[[enable_turret|Enable Turret]]|**enable_turret**(//entity//)| |[[enable_turret|Enable Turret]]|**enable_turret**(//entity//)|
 |[[enable_zone|Enable Zone]]|**enable_zone**(//zone_name//)| |[[enable_zone|Enable Zone]]|**enable_zone**(//zone_name//)|
Line 225: Line 229:
 |[[set_language|Set Language]]|**set_language**(//locale_code//)| |[[set_language|Set Language]]|**set_language**(//locale_code//)|
 |[[set_movement_speed|Set Movement Speed]]|**set_movement_speed**(//character//, //speed//)| |[[set_movement_speed|Set Movement Speed]]|**set_movement_speed**(//character//, //speed//)|
-|[[set_screen_effect_property|Set Screen Effect Property]]|**set_screen_effect_property**(//property_name//, //property_value//, //*duration//)|+|[[set_screen_effect_property|Set Screen Effect Property]]|**set_screen_effect_property**(//property_name//, //property_value//, //*duration//, //*screen_effect_id//)|
 |[[set_stat|Set Stat]]|**set_stat**(//stat_id//, //value//, //*character//)| |[[set_stat|Set Stat]]|**set_stat**(//stat_id//, //value//, //*character//)|
 |[[set_terrain_types|Set Terrain Types]]|**set_terrain_types**(//entity//, //terrain_mode//, //*terrain_types//)| |[[set_terrain_types|Set Terrain Types]]|**set_terrain_types**(//entity//, //terrain_mode//, //*terrain_types//)|
scripting_reference.1729719964.txt.gz · Last modified: 2024/10/23 14:46 by justin