I’ve forgotten a lot of what I once knew about Inform 6, and I’ve found this particularly tricky to search for, so I’m hoping someone here knows.
If I want to have a routine cause the equivalent of the player typing “get lamp”, I could use the statement
But, what if I want to cause the equivalent of the player typing “Floyd, get lamp”? I tried
<floyd Take brass_lamp> which understandably didn’t work. I also tried setting
actor first, which seemed to have inconsistent results:
actor = floyd;
Does anyone know a standard, correct way to do this?
Like with all things, I could factor out the relevant behavior into a method on floyd and call that both in the orders rule and where I want to invoke the command, but I think sometimes it would be cleaner to keep the logic in orders and be able to call it.
Thanks in advance!