It seems likely that the code is C-Script, as the error messages, seem to suggest A6 template dependencies.
Perhaps, the code is really only for use with the A6 Templates.
From here, level change alone didn't appear to be a difficult operation requiring specialized scripts and contributions.
However, difficulty might increase with A6 Template dependency, and the code contribution might be a simple pseudo-extension of the A6 Templates which helps overcome some difficulty when using the A6 Templates and changing levels (duh).

wait is almost certainly a C-Script command first and also.