' "Sid Gentry"
' Created with QDK 3.53 - UNREGISTERED VERSION
define game <Sid Gentry>
asl-version <350>
gametype singleplayer
start <start>
game author <Steve Lingle>
game info <Created with QDK 3.53 - UNREGISTERED EVALUATION VERSION.>
properties <mm>
end define
end define
define synonyms
end define
define room <start>
alias <dark hallway>
look <In this hallway, the light is so dim that you cannot see more than a few feet in front of you.>
indescription <You are in a:>
afterturn {
inc <#(quest.currentroom):mm#>
if <#quest.currentroom:mm# = 2> then msg <You have successfully completed the test to make sure this type of property programming is working!>
}
end define
define text <intro>
end define
define text <win>
end define
define text <lose>
end define
properties <mm>' "Sid Gentry"
' Created with QDK 3.53 - UNREGISTERED VERSION
define game <Sid Gentry>
asl-version <350>
gametype singleplayer
start <start>
game author <Steve Lingle>
game info <Created with QDK 3.53 - UNREGISTERED EVALUATION VERSION.>
end define
define synonyms
end define
define room <start>
alias <dark hallway>
look <In this hallway, the light is so dim that you cannot see more than a few feet in front of you.>
indescription <You are in a:>
properties <mm=0>
afterturn {
set numeric <tempValue;#(quest.currentroom):mm# +1>
property <#quest.currentroom#; mm=%tempValue%>
if (#(quest.currentroom):mm# =2 ) then msg <You have successfully completed the test to make sure this type of property programming is working!>
}
end define
define text <intro>
end define
define text <win>
end define
define text <lose>
end define ' "test"
' Created with QDK 3.53 - UNREGISTERED VERSION
define game <test>
asl-version <350>
gametype singleplayer
start <test1>
game info <Created with QDK 3.53 - UNREGISTERED EVALUATION VERSION.>
define variable <recycling variable>
type numeric
value <0>
end define
end define
define synonyms
end define
define room <test1>
afterturn {
inc <recycling variable; 1>
if ( %recycling variable% = 2 ) then {
msg <this is the first time.>
goto <test2>
}
}
end define
define room <test2>
script {
set numeric <recycling variable; 0>
inc <recycling variable; 1>
if ( %recycling variable% = 2 ) then msg <This is the second time>
}
end define
define text <intro>
end define
define text <win>
end define
define text <lose>
end define
define room <test2>
script {
set numeric <recycling variable; 0>
inc <recycling variable; 1>
if ( %recycling variable% = 2 ) then msg <This is the second time>
}
end define
Using the code that MaDbRiT posted, I tested your theory. You are correct in that even invalid commands count as a turn.