for each object in <#quest.currentroom#> {
set <TLSthisObj;#quest.thing#>
if property <#quest.thing#;invisible> or property <#quest.thing#;hidden> then {
}
else {
if type <#quest.thing#;TLTactor> then {
if property <#quest.thing#;named> then {
set <TLScharList;#TLScharList# |b$capfirst(#@quest.thing#)$|xb, >
}
else set <TLScharList;#TLScharList# #(quest.thing):prefix# |b#@quest.thing#|xb, >
}
else{
set <TLSobjList;#TLSobjList# #(quest.thing):prefix#>
set <TLSobjList;#TLSobjList# |b#@quest.thing#|xb, >
}
}
}
if ($lengthof(#TLScharList#)$ >0) then {
set <TLNlengthOf;$lengthof(#TLScharList#)$ - 1>
set <TLScharList;$left(#TLScharList#;%TLNlengthOf%)$>
set <TLScharList;$TLFcontentFormat(#TLScharList#)$>
if ($instr(#TLScharList#;_and_)$ >0) then {
msg <#TLScharList# are here.|n>
}
else {
msg <#TLScharList# is here.|n>
}
}
if ($lengthof(#TLSobjList#)$ >0) then {
set <TLNlengthOf;$lengthof(#TLSobjList#)$ - 1>
set <TLSobjList;$left(#TLSobjList#;%TLNlengthOf%)$>
set <TLSobjList;$TLFcontentFormat(#TLSobjList#)$>
if ($instr(#TLSobjList#;_and_)$ >0) then {
msg <You can see #TLSobjList# here.|n>
}
else {
msg <You can see #TLSobjList# here.|n>
}
}
set numeric <x; 0>
set string <item.list;>
for each object in <#quest.currentroom#> if not ($objectproperty(#quest.thing#; player)$) then {
inc <x>
set string <item%x%; #quest.thing#>
}
for <n;1;%x%> {
if (%n% = 1) set string <item.list; In this room you see #item%n%#> else {
if (%n% <> %x%) then set string <item.list; #item.list#, #item%n%#> else set string <item.list; #item.list#, y #item%n%#>
}
}
FATAL ERROR: Unrecognised 'if' condition in 'for each object in <#quest.currentroom#> if not ($objectproperty(#quest.thing#; player)$) then {'
for each object in <#quest.currentroom#> {
if not property <#quest.thing#; invisible> then {
set string <t.cont.list; #t.cont.list# #(quest.thing):prefix# |b#(quest.thing):alias#|xb,>
set string <t.cont.last; #(quest.thing):prefix# |b#(quest.thing):alias#|xb>
inc <t.cont.count>
}
}
if ( %t.cont.count% > 1 ) then {
set numeric <t.cont.pos; $instr(#t.cont.list#;, #t.cont.last#)$ - 1>
set string <t.cont.list; $left(#t.cont.list#;%t.cont.pos%)$ and #t.cont.last#.>
}
else {
set numeric <t.cont.pos; $lengthof(#t.cont.list#)$ - 1>
set string <t.cont.list; $left(#t.cont.list#;%t.cont.pos%)$.>
}
msg <#t.cont.list#>
}Bolumbero wrote:Thank you, "I think Im Dead", but QDK says something about one error:FATAL ERROR: Unrecognised 'if' condition in 'for each object in <#quest.currentroom#> if not ($objectproperty(#quest.thing#; player)$) then {'
Could you check the code, please ????
I'm not very good with ASL language, yet....
Thank you again.
for each object in <#quest.currentroom#> if not property <#quest.thing#; player> then {