Is it possible to make a weapon that uses less energy based on light level? Is it possible to make a weapon that fires projectiles based on the first throwable in their inventory? EDIT: Now sounds like answerable questions.
I'm not sure about the second one, but have you tried using "world.lightLevel()" in a weapon ability's Lua file? Because if that works, then it should definitely be possible.
I have never tried that before, but I should. I think that most, if not all, the functions in the world table are accessible by most scripts.
Tried using world.lightLevel() in a weapon's lua file. It works perfectly fine, and I'm close to finishing a weapon using this function.