Closed auraes closed 3 months ago
I said something wrong. I have to intercept the ##Take and ##Remove actions simultaneously if I want to act on the object taken including a container or a supporter object.
This works the same as in the standard library, and as you say, you need to catch both Take and Remove in before to block an object being picked up.
Closing.
Thanks.
For the benefit of others watching, @fredrikr cited page 89 of DM4 over at https://gitlab.com/DavidGriffith/inform6lib/-/issues/132 for this behavior. The relevant text is
For instance, if you only want to prevent an object from entering the player’s possession, you need only block the Take action, unless the object is initially in something or on something, in which case you need to block Remove as well.
If I explicitly take a ball from a box, or if I simply take the ball, this doesn't generate the same rules.
In the first case, the
react_before
andbefore
for the##Take
action are missing: