I suppose %Nick. [ $+ [ $chan ] $+ [ $nick ] ] contains the level you want triggered.
You can put the commands in a hash table with the level as item and the command as data
if (%Nick. [ $+ [ $chan ] $+ [ $nick ] ] >= N) {
if ($hget(levelhash,$ifmatch) $ifmatch
else kickban $nick $chan Level higher than I have commands for in my hashtable
}
You could also make a text file with on each line the command for that level (no numbers before it) and then use $read(commands.txt,p,level)
You could also use ini files with the format 1=command and then use $readini(commands.ini,p,commands,level)