if not ( #quest.doorways.out# = ) then msg <You can go out to #quest.doorways.out#.>
if not ( #quest.doorways.dirs# = ) then msg <You can go #quest.doorways.dirs#.>
if not ( #quest.doorways.places# = ) then msg <You can go to #quest.doorways.places#.>
if not ( #quest.objects# = ) then msg <You can see #quest.formatobjects#.>
if not ( #quest.lookdesc# = ) then msg <#quest.lookdesc#>if not ( #quest.doorways.out# = ) then msg <You can go out to |cr#quest.doorways.out#|cb.>
if not ( #quest.doorways.dirs# = ) then msg <You can go |cr#quest.doorways.dirs#|cb.>
if not ( #quest.doorways.places# = ) then msg <You can go to |cr#quest.doorways.places#|cb.>
if not ( #quest.objects# = ) then msg <You can see |cy#quest.formatobjects#|cb.>
if not ( #quest.lookdesc# = ) then msg <#quest.lookdesc#>' "Game Name"
' Created with QDK Pro 4.1 Beta
define game <Game Name>
asl-version <410>
start <Start Room>
game author <Your Name>
game version <1.0>
game copyright <© 2008 ...>
game info <Created with QDK Pro 4.1 Beta>
default fontname <Courier New>
default fontsize <12>
background <black>
foreground <white>
end define
define options
debug on
panes off
abbreviations on
end define
define room <Start Room>
north <room 2>
end define
define room <room 2>
south <Start Room>
define object <object>
displaytype <Object>
article <it>
gender <it>
end define
end defineyou are in start room
you can go north
' "Game Name"
' Created with QDK Pro 4.1 Beta
define game <Game Name>
asl-version <410>
start <Start Room>
game author <Your Name>
game version <1.0>
game copyright <© 2008 ...>
game info <Created with QDK Pro 4.1 Beta>
default fontname <Courier New>
default fontsize <12>
background <black>
foreground <white>
description {
if not ( #quest.doorways.out# = ) then msg <You can go out to |cr#quest.doorways.out#|cb.>
if not ( #quest.doorways.dirs# = ) then msg <You can go |cr#quest.doorways.dirs#|cb.>
if not ( #quest.doorways.places# = ) then msg <You can go to |cr#quest.doorways.places#|cb.>
if not ( #quest.objects# = ) then msg <You can see |cy#quest.formatobjects#|cb.>
if not ( #quest.lookdesc# = ) then msg <#quest.lookdesc#>
}
end define
define options
debug on
panes off
abbreviations on
end define
define room <Start Room>
north <room 2>
end define
define room <room 2>
south <Start Room>
define object <object>
displaytype <Object>
article <it>
gender <it>
end define
end definedragoncymru wrote:Yup, got that now, although where exactly do you put that text formatting code to make an object appear blue in the object panel?
' "Test Game"
' Created with QDK Pro 4.1 Beta
define game <Test Game>
asl-version <410>
start <StartRoom>
game info <Created with QDK Pro 4.1 Beta>
background <black>
foreground <white>
description {
set string <roomtitle; |b|cl#quest.formatroom#|xb|cb>
if property <#quest.currentroom#; indescription> then {
set string <indescription; #(quest.currentroom):indescription#>
if ( $right(#indescription#;1)$ = : ) then {
set numeric <len; $lengthof(#indescription#)$ - 1>
msg <$left(#indescription#;%len%)$ #roomtitle#.>
} else msg <#indescription#>
} else {
msg <You are in #roomtitle#.>
}
if not ( #quest.doorways.out# = ) then msg <You can go out to |cr#quest.doorways.out#.|cb>
if not ( #quest.doorways.dirs# = ) then msg <You can go |cr#quest.doorways.dirs#.|cb>
if not ( #quest.doorways.places# = ) then msg <You can go to |cr#quest.doorways.places#.|cb>
if not ( #quest.objects# = ) then msg <You can see |cy#quest.formatobjects#.|cb>
if not ( #quest.lookdesc# = ) then msg <#quest.lookdesc#>
}
end define
define options
debug on
panes off
abbreviations on
end define