Turning the noun in "say noun" into the player's last command

Hey All–

So I have a situation in which if the player says a noun, it becomes a tangible thing. So:

>say hammer
You’re now holding a hammer.

I’d like the player to now be able to say “X it” and the game will know “it” is the hammer. But it doesn’t, because the hammer didn’t exist until the player said the word.

Is there a way to make “hammer” the noun in the player’s last command so “x it” will work here as the next command?

3 Likes

You can write set pronouns from the hammer after creating the hammer object (or bringing it on-stage, or whatever you’re doing).

4 Likes

That is a very cool trick. Thank you!