command <something> {
if got <thing> then {
msg <Blah blah>
give <wotsit>
}
command <warp to #target-room#> if ( $objectproperty(player%userid%; usrlvl)$ >= 2 ) then msg <I don't understand what you typed.|n> else {
msg <You focus intently on your destination and begin to plane shift.|n>
goto <#target-room#>
}
command <take-do> if ( $objectproperty(player%userid%-r-hand; held)$ = null ) then {
set string <target-object; $getobjectname(#target-object#)$>
move <#target-object#; player%userid%-r-hand>
property <player%userid%-r-hand; held=#target-object#>
property <player%userid%-r-hand; held-name=$displayname(#target-object#)$>
property <player%userid%-r-hand; held-short=$objectproperty(#target-object#; short)$>
if property <#target-object#; prefix> then property <player%userid%-r-hand; held-display=$objectproperty(#target-object#; prefix)$ $displayname(#target-object#)$>
if property <#target-object#; suffix> then property <player%userid%-r-hand; held-display=$objectproperty(#target-object#; prefix)$ $displayname(#target-object#)$$objectproperty(#target-object#; suffix)$>
msg <You pick up the $displayname(#target-object#)$ with your right hand.|n>
}
else {
if ( $objectproperty(player%userid%-l-hand; held)$ = null ) then {
move <#target-object#; player%userid%-l-hand>
property <player%userid%-l-hand; held=#target-object#>
property <player%userid%-l-hand; held-name=$displayname(#target-object#)$>
property <player%userid%-l-hand; held-short=$objectproperty(#target-object#; short)$>
if property <#target-object#; prefix> then property <player%userid%-l-hand; held-display=$objectproperty(#target-object#; prefix)$ $displayname(#target-object#)$>
if property <#target-object#; suffix> then property <player%userid%-l-hand; held-display=$objectproperty(#target-object#; prefix)$ $displayname(#target-object#)$$objectproperty(#target-object#; suffix)$>
msg <You pick up the $displayname(#target-object#)$ with your left hand.|n>
}
else msg <Both of your hands are full.|n>
}
As I say though, it should be possible for Quest to tell you which "define" block the problem resides in, as you can't nest those