Working on Setlist, need serious help!!

Discuss problems and solutions.
Post Reply
metamorfosis18
Newbie
Posts: 23
Joined: 08 Oct 2014 15:40
Contact:

Working on Setlist, need serious help!!

Post by metamorfosis18 »

Hi everyone, I need help with a script to have one custom button send same data to different objects, one a a time, depending on the position of a switches, with twelve columns.
I need a way to maybe 'change' the object's name in relation to the switch.

Like: Switch 2 is On then, touching custom button will send data to 'name of object' plus 2.
Switch 5 is On then, touching custom button will send data to 'name of object' plus 5 and so on.

So far I have this script working, but I will be adding many more buttons like this one, and script is too long since I repeat same thing over and over!
I have included what I have so far, can someone please take a look, it is working but is UGLY!! :shock:
Any help will be greatly appreciated!!

A little bit of my code:

decl t = selection;
if (t==0){
setattribute(Dis.T1,'content', {'TEXT HERE'} );
tab1=3;
note1=20;}

if (t==1){
setattribute(Dis.T2,'content', {'TEXT HERE'} );
tab2=3;
note3=20;}

And so on...
Attachments
Setlist-.jzml
(38.47 KiB) Downloaded 73 times
Post Reply