well..i played around with the coderarray of a script, because the internal editor ist no real good for large scripts.
Ok..here are the results of the experiments:
All entrys are sval-entrys with attributes val and type.
The meaning of the entry depends on the level of the entry.
Level 0:
Entry 0: Root entry; allways has the val 10 and the type array.
Level 1:
Entry 1: Val is the name of the script type is string
Entry 2: Val is allways 25 type is allway int (unknown meaning)
Entry 3: Val is allways "Description" type is allway string
Entry 4+5 val alway 0 type allway int (seems to be deviding to the
real codebased part of the codearray)
Entry 6: Another array; size depends on the number of variables used
in the script. type is array
Every subentry contains the name of a variable as type
string; for example if you use a variable called i in the script
in this part, there is a entry with val "i" and type string.
Entry 7: The script code itself. explained later here.
Entry 8-10: allways val 0 type int; seems to be a mark for end of
the script.
ok...know to the script-part (entry 7):
The first level is always a array definition, depending on how many lines the script will have. For example, if you have a script with 4 lines, this entry will have val 4 type array. For the next level there is the next array definition (for each line of the script one array). size depends on how much parameters the command of the line will have. For example, if you have a line with an INC-Statement, you have val 2 type array.
The next level, descripes the commannd of a line, with its parametes.
The first sval-entry is the command itself. val seems to be the number of the corresponing entry at page 2003 in the languagefile. For example if you have an INC statement there is the val 142 with type int.
The next entrys are the parameters of the script. For variables, this is the number of entry in the array for variablenames above (based on zero).
So fare my knowlage about the codearray. Seems to be very simple

Hope this helps to get a external editor sometimes
