;Triggers
:state=0:flashlightrange=300,battery=1,setbattery=600,batterydecay=20,state=1
;F key check
:state=1,keypressed=33 1:flashlighton,state=2
:state=2,keypressed=33 0:state=3
:state=3,keypressed=33 1:flashlightoff,state=4
:state=4,keypressed=33 0:state=5
:state=5,keypressed=33 1:flashlighton,state=6
:state=6,keypressed=33 0:state=3
;End of Script
the key part works, but the battery part makes no sense, and the manual isnt helpful.
I tried various values to no avail - the current code seems to power the-flashlight for 20s and then turns off(there was supposed to be a kind of a light size dropping etc as power lowers).
battery = 1 should be correct (if 1 is on, 0 is off -manual didnt say).
setbattery=600 ... no idea... settign battery to 600 should mean that it lasts 600 sec if i set batterydecay=1 (or 12000 sec if its 20 - if the manual is right)
batterydecay= (1 point of energy per sec, so val 2 should mean 0.5 energy per sec etc).