This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
set_entity_script [2021/04/21 18:51] – justin | set_entity_script [2022/05/07 14:24] (current) – justin | ||
---|---|---|---|
Line 6: | Line 6: | ||
====Signature: | ====Signature: | ||
<code python> | <code python> | ||
- | set_entity_script(entity, | + | set_entity_script(entity, |
</ | </ | ||
Line 13: | Line 13: | ||
|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, | |trigger_type|When to trigger the [[script]]. This argument is only applicable to [[tile|tiles]] (possible values are ENTER_TILE, STOP_ON_TILE, | ||
+ | |triggerable_by_npc|Determines whether or not [[npc|NPCs]] can trigger the [[script]].|[[Boolean]]|No| | ||
====Example: | ====Example: |