ShuShiXyz Posted November 30, 2021 Share Posted November 30, 2021 I want to get status value return to function or How to get status value emcollect2 = {bp = {status = on}} function emcollect(path) return emcollect2[path].status.value end function EM2() a2 = gg.choice({ emcollect("bp").."Big Pan"}) end Link to comment Share on other sites More sharing options...
AmbitiousNoob Posted November 30, 2021 Share Posted November 30, 2021 emcollect2 = {bp = {status = "[On]"}} function emcollect(path) return emcollect2[path].status end function EM2() local a2 = gg.choice({emcollect("bp") .. " Big Pan"}) end EM2() Is this what you need? Link to comment Share on other sites More sharing options...
MAARS Posted December 1, 2021 Share Posted December 1, 2021 I think in this case it is better to use boolean then evaluate it. it will be easier to make a setter function script.lua Link to comment Share on other sites More sharing options...
Question
ShuShiXyz
I want to get status value return to function or How to get status value
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.