Multiple choice selector switch
Posted: Wednesday 04 December 2019 23:40
Hi,
I have some selector switches by wich events will be executed or not, depending on its state.
Sometimes, multiple states may be executed but then i need to combine levels in new levels, like: level10= x, level20= y, level30= z, level40= x+y, level50= x+y+z, level60= y+z, level70= x+z. In my dzVents scripts i have to use string.match on the selector switch.state, wich does not always work witch symbols like ":" and "()".
Therefore it would be usefull if i could just enable the levels that need to be executed and then use somthing like <multiselectorswitch.level('x').active == true> in my scripts. I would also need less levels in my selector switch.
Or does something similar already exists?
Thx,
Jimmy
I have some selector switches by wich events will be executed or not, depending on its state.
Sometimes, multiple states may be executed but then i need to combine levels in new levels, like: level10= x, level20= y, level30= z, level40= x+y, level50= x+y+z, level60= y+z, level70= x+z. In my dzVents scripts i have to use string.match on the selector switch.state, wich does not always work witch symbols like ":" and "()".
Therefore it would be usefull if i could just enable the levels that need to be executed and then use somthing like <multiselectorswitch.level('x').active == true> in my scripts. I would also need less levels in my selector switch.
Or does something similar already exists?
Thx,
Jimmy