I've made an action for an object, it's "use sugar on cauldron"
a part of the code is :
use <sugar> {
msg <You put the sugar in the cauldron.>
lose <sugar>
conceal <sugar>
flag on <caul_sugar>
if flag <caul_sugar> and flag <cauld_flames> then do <cook>>
}
But this command is not really natural, so I wanted also to include parts of the TypeLib that can handle containers.
define object <sugar>
take
prefix <some>
type <TLTobject>
type <TLTcontainable>
properties <onTable; edible; size=0.020; weight=0.5; tooBig=This doesn't fit here.>
action <contained> exec <use sugar on cauldron; normal >
The problem is now when I type "put sugar in cauldron" the sugar disappear from my object list and I get :
"you don't have that", and nothing more happens.
I used a procedure to replace the exec command so now it's ok, but is it normal it doesn't work in the previous code ?