If you look at the code in the script, you will notice that you have somewhere in the beginning
---------------------------------------------------------------
-- Signal Library
---------------------------------------------------------------
SigLib = {
Then, one block as following for each signal
[mc.<signal name>] = function (state)
< code >
end
So, SigLib is a Table name, which contains handler functions for all signals in the list. The SigLib ends somewhere later on (around row 70) with a '}'
To add a new signal handler, make sure that you insert it in the Table and that you put a comma at the end of it.
---------------------------------------------------------------
-- Signal Library
---------------------------------------------------------------
SigLib = {
[mc.SIGNAL1] = function (state)
< code >
end,
[mc.SIGNAL2] = function (state)
< code >
end,
[mc.SIGNAL3] = function (state)
< code >
end,
...
[mc.SIGNALn] = function (state)
< code >
end
}