Instructions/Parameter Event

From Desynced Wiki

This Script Object ONLY works at the TOP LEVEL of scripts. It does not work in subroutines.

If you want a reaction on a variable change in a subroutine, you may only react on variables at the top level, and you MUST implement that event at the top level and induce it via an extra parameter into the subroutine, where you must implement the reaction as a "test for emptiness" or the like out of the normal control flow.


Parameter Event
     File:Instructions-Parameter Event.png
     Run event when the value of the specified parameter changes
Lua ID event_parameter
Category Flow
Icon Make Order.png