Greetings all. I worded this post largely by what I’m trying to do. I’m running into a little mental road block of how to accomplish this. So I have something like this:
A thing can be dangerous or benign.
Definition: a thing is exposed to the player if the player can touch it.
Simple enough. Then some object, like poison gas, that’s marked as dangerous. This allows me to do things like this:
Every turn:
if the poison gas is exposed to the player:
say "Exposed."
Again, simple enough. What I’m trying to do is something like this:
Before someone doing something that will expose a dangerous thing to the player:
say "Don't!"
That clearly won’t work. But I’m uncertain what would.
The context here is you might have NPCs that can be ordered to do things, like, say, open a box that contains poison gas. If they do so, and the player is in the room, the player would be exposed to something dangerous. So I’m trying to capture that sort of condition in the rules.
I’m trying for the simplest possible implementation but I recognize that perhaps using a definition like I’m doing is not the best way to go about it. Should I be creating an expose action for this? Even though it really won’t be an action, per se. It’s more a condition of the world.