Custom response for the action "run"

Inform 7 newbie here. I want to make it so that when the player enters “run” or “run [direction]” as an action, they get the message “It’s too hot to run anywhere.” However, I can’t seem to figure out how to overwrite Inform’s default responses to the “run” command. This is what I tried:

Running is an action applying to nothing.
Understand "run" as running.
Carry out running:
	say "It's too hot to run anywhere."

Any help is appreciated!

1 Like

Add this to your code:
understand the command "run" as something new

run [direction] would be another thing to deal with, if you wanted to.

Read about it here in 17.3 of the docs.

alternate solution

Besides the “something new” approach, these commands could be treated as mistakes. I think people forget that mistakes can do conditional text; they’re very powerful. I often forget, anyway.

WI 17. Understanding


Excellent, thanks much!