doors.tin
- doors.tin
#var {door} {exit} #alias {door} { #if { "%0" == "" } { #echo {<f437AED>$door<099> set to: <f7C4DFF>$door<099>} }; #else { #var {door} {%0}; #echo {<f437AED>$door<099> set to: <f7C4DFF>$door<099>} }; } #alias {block} { #if { "%0" == "" } { cast 'block door' $door; #echo {cast 'block door' $door} }; #else { cast 'block door' %0; #echo {cast 'block door' %0} }; } #alias {break} { #if { "%0" == "" } { cast 'break door' $door; #echo {cast 'break door' $door} }; #else { cast 'break door' %0; #echo {cast 'break door' %0} }; } #alias {od} {open $door; #echo {open $door}} #alias {cd} {close $door; #echo {close $door}} #alias {ud} {unlock $door; #echo {unlock $door}} #alias {ld} {lock $door; #echo {lock $door}} #alias {pd} {pick $door; #echo {pick $door}}
- doors.tin
#action {^The %w {is|are} {open|closed}.$} {#var {door_name} {%1}} #action {^You skillfully discover a hidden %w.$} {#var {door_name} {%1}} #action {^The %w {seem|seems} to be closed.$} { #var {door_name} {%1}; #if {"$auto_open" == "on"} {#send {open $door_name}} } #alias {dl} {#send {lock $door_name}} #alias {db} {#send {bash $door_name}} #alias {dp} {#send {pick $door_name}} #alias {du} {#send {unlock $door_name}} #alias {dc} {#send {close $door_name}} #alias {do} {#send {open $door_name}} {4} #alias {autoopen} { #if {("%1" == "on") || ("%1" == "off")} {#var {auto_open} {%1}}; #elseif {"$auto_open" == "off"} {#var {auto_open} {on}}; #else {#var {auto_open} {off}}; #echo {Auto Open $auto_open} } #var {auto_open} {on} #var {door_name} {}