1. I have four button activate four lightsources (easy enough)
2. I have a lever I want to activate to spawn a gem, but only when all the lightsources are on.
Here's my problem:
How do I script that a lightsource is on (activated) without actually turning it on (thus making the four buttons pointless)? I tried to use terms like is activated or isActivated but that just resulted in an error or nothing happening (it may also have something to do with my placement of something small like an equal sign or brackets). Now if the lightsources were pressure plates or torch holders I wouldn't be having this problem, but lightsources are a different matter. It's probably one of those scripts that requires a part of lua I haven't touched yet (and there are MANY) or something simple that will make me bang my head repeatedly on the desk.
Also, as a side note, can you setSubtileOffset on a spawned item like so = spawn("red_gem",2,7,19,0):setSubtileOffset(0,0) or do you have to write it differently?
Your extremely grateful fan Grimfan.

