Using array elements and their indexes in a certain variable is a bad idea, because, let's say you add something in the beginning of the array, this will completely change the values set for the others.
For example:
Let's say you have 1 is exit, 2 is staff stick
Then you add staff boomerang as 1, what will happen is: 1 is staff boomerang, 2 is exit, 3 is staff stick.
And once triggering the server, it will trigger 1, this means it will call the first parameter which is exit (unless you rechange all variables on serverside everytime you add something).
It's a bit messed up, it's just easier to use array elements and not indexes.