User Tools

Site Tools


set_zone_script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
set_zone_script [2024/02/03 18:03] – created justinset_zone_script [2024/10/11 09:35] (current) justin
Line 1: Line 1:
 ======Set Zone Script====== ======Set Zone Script======
 ---- ----
-Coming in v1.1!+Sets the [[script]] of the specified zone. An empty [[string]] value (i.e. two double quotes: "") can be specified for the [[script]] name in order to remove the zone's [[script]]. The [[script]] name is case-sensitive. 
 + 
 +====Signature:==== 
 +<code python> 
 +set_zone_script(zone_name, script_name, script_trigger) 
 +</code> 
 + 
 +^Argument^Description^Type^Required^ 
 +|zone_name|Zone to update the [[script]] for.|[[String]]|Yes| 
 +|script_name|Name of the new [[script]].|[[String]]|Yes| 
 +|script_trigger|When to trigger the [[script]]. Possible values are CHARACTER_ENTER, CHARACTER_EXIT, OBJECT_ENTER, and OBJECT_EXIT for passable zones, and CHARACTER_COLLIDE for impassable zones.|Trigger Type|Yes| 
 + 
 +====Example:==== 
 +<code bauxite> 
 + 
 +</code> 
 +//Results:// 
 + 
 +<WRAP center round tip 100%> 
 +Use the **Set Zone Script** function to... 
 +</WRAP> 
 + 
 +---- 
 + 
 +<WRAP group> 
 +<WRAP half column> 
 +====Editor Node:==== 
 +{{:set_zone_script_node.png?nolink|}} 
 +</WRAP> 
 + 
 +<WRAP half column> 
 +</WRAP> 
 +</WRAP> 
 + 
 +~~NOTOC~~
set_zone_script.1707012210.txt.gz · Last modified: 2024/02/03 18:03 by justin