I am trying to build an easy to use command system (I am not going into detail on it). I have an array like this:
Array1 = Array(Array("help", "List all commands", Function()
' Code for help
End Function,
Array("write", "Write a note: /write <title> <description>", Function(p1, p2)
' Code for write
End Function))
Array2 = Array("This is a title", "This is a description")
I want to call the first array's 3rd value like this: Array1(3)(Array2) without adding code to the command in Array1's function. Is this possible? If so please tell me how I can achieve this.
Array1 = ...statement.