i am having this exact same problem, thats why i am here lol, but i can't ever seem to get System.powerGetBatteryLifePercent() to work... i'll keep an eye out for any projects that use the command to see what we are doing wrong.
ok, download this version of LUA: http://www.luaplayer.org/LuaPlayer_v0.1 ... ware15.zip
and then the powerGetBatteryLifePercent() command will work. now my question is, how do i store that in a integer? or how do i create integers in lua?