actually Corno_1, what I actually meant is how to give a light a time limit, like after 10 seconds, it turns off and has to be activated again, but no worries, I got some idea in your script, and got this, it works great
;Artificial Intelligence Script
;Header
desc = 10-second light
;Triggers
:state=0:state=2
:state=1,activated=1:state=2,lighton,etimerstart
:state=2,activated=0:state=1,lightoff
:state=2,etimergreater=10000:lightoff
;End of Script
You just need a switch to turn it on, and after 10 seconds, boom, it turns off..
**fact: this is my first script that actually worked..