like you have 2 coal ore
' "test"
' Created with QDK Pro 3.53
define game <test>
asl-version <350>
gametype singleplayer
start <start>
game author <MaDbRiT>
game version <.001>
game copyright <© Al Bampton (MaDbRiT)>
game info <Created with QDK Pro 3.53>
command <drop coal> if ( %coal% > 0 ) then {
dec <coal>
msg <You drop a piece of coal, it immediately shatters into fine black dust which is carried away by the breeze.>
}
else msg <You don't have any coal to drop!>
define variable <coal>
type numeric
value <0>
display nozero <[!] piece*s* of coal>
end define
end define
define synonyms
end define
define room <start>
look <a very good place to start...>
south <another room>
define object <coal>
look <black, dusty, very coal-like (what did you expect?)>
take {
msg <You pick up a piece of coal (there must be several tonnes here).>
inc <coal>
}
prefix <a large pile of>
end define
end define
define room <another room>
north <start>
end define
define text <intro>
end define
define text <win>
end define
define text <lose>
end define