Example of script triggered by value rather than by LinkId?

From https://openstagecontrol.ammd.net/docs/widgets-reference/#script :

value or linkId properties can be used to receive other widgets' values. The value property must actually change to trigger the execution, where linked widgets via linkId can submit the same value over and over and trigger the execution

You could for instance set the script's value property to @{widget_id} to make it receive the value from widget "widget_id"