User Tools

Site Tools


set_entity_script

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
Last revisionBoth sides next revision
set_entity_script [2020/04/28 10:28] justinset_entity_script [2021/04/21 18:51] justin
Line 12: Line 12:
 |entity|[[Entity]] to update the [[script]] for.|[[Entity]]|Yes| |entity|[[Entity]] to update the [[script]] for.|[[Entity]]|Yes|
 |script_name|Name of the new [[script]].|[[String]]|Yes| |script_name|Name of the new [[script]].|[[String]]|Yes|
-|trigger_type|When to trigger the [[script]]. This argument is only applicable to [[tile|tiles]] (possible values are ENTER_TILE, STOP_ON_TILE, and EXIT_TILE, with a default of ENTER_TILE).|Trigger Type|No|+|trigger_type|When to trigger the [[script]]. This argument is only applicable to [[tile|tiles]] (possible values are ENTER_TILE, STOP_ON_TILE, and EXIT_TILE, with a default value of ENTER_TILE).|Trigger Type|No|
  
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-set_entity_script(entity["chest01"], "empty_chest")+set_entity_script(entity["chest01"], "empty_chest");
 </code> </code>
 //Results:// The [[script]] for [[entity]] "chest01" is removed and replaced with the "empty_chest" [[script]]. //Results:// The [[script]] for [[entity]] "chest01" is removed and replaced with the "empty_chest" [[script]].
set_entity_script.txt · Last modified: 2022/05/07 14:24 by justin