command <addflamable #object#> {
type <#object#; Flammable>
}
define type <Flammable>
Burnrate = 1
end define
command <addflamable #@object#> {
type <#object#; Flammable>
}Tr0n wrote:Actually, to allow that sort of switching it shouldn't be too hard.
.. Out of curiosity, the fact that not only the code is very modular, but very confusing (to me), and it's better to ask the writer than guess etc.. (yeah, long line to prepare a question - I know.)
.. Geas: How does it handle the "set string <blah; 1>" and then the:
"set numeric <blah2; #blah# * 2>" ??
Does it convert the string into a numeric and then evaluate it? Does it substitute in ANY values - then parse the string equation? (and I assume you're using a standard string stream for this too).
define room <room>
command <f #@object#> {
type <#object#; Flammable>
action <#object#; eat> msg <You eat the thing.>
}
command <d #@object#> if action <#object#; eat> then doaction <#object#; eat> else msg <No action defined.>
define object <book>
end define
define object <sofa>
end define
end define
define type <Flammable>
Burnrate = 1
end define
> d book
No action defined.
> f book
> d book
You eat the thing.