I try to add rules for breaking and smashing but i get what I assume is an automatic response programmed into using some actions: “Violence isn’t the answer to this one.”
Is there a way to override this automatic response? I have pasted sample code below, but have tried it in several different ways:
breaking is an action applying to one thing. understand "break [something]" as breaking.
instead of breaking pottery jar:
say "You smash the pottery jar hard against the wooden cross below you. It shatters into several large shards and manage to keep ahold of one as the others drop to the ground";
now pottery jar is nowhere;
now play has potteryshard;
increase score by one.
This is the best way to go, in my opinion - it’s less work for you, and it’s better from a player perspective since it makes the game’s behavior more consistent (if nothing else, there are a lot of other built in synonyms for attack that you’d need to remap to avoid player confusion).
Sure! Here’s what that would look like, if that’s helpful:
the block attacking rule does nothing when the noun is the pottery jar.
carry out attacking the pottery jar:
say "You smash the pottery jar hard against the wooden cross below you. It shatters into several large shards and manage to keep ahold of one as the others drop to the ground.";
now pottery jar is nowhere…
If you want to see the synonyms that are defined for ‘attack’, you can either look on the right hand pane under the Index tab → Actions Index → Commands and search for all the words listed as ‘same as “attack”’ or, more conveniently, in play you can type at the prompt showverb attack(or showverb break etc.), which by default displays this: