you dont need so many on dialog events. you can simplify it something like
on *:dialog:+CModes:sclick:*: { if ($did == 1) { /mode $$?="Set this where?(Include #)" +A } }
it will simplify it and look cleaner imo otherwise nicely done :)