Dispatching an action to another object

Is there an elegant way to dispatch an action to another object?

Instead of doing something other than examining the portrait:
    try doing the action with the canvas.

This of course doesn’t work.

Is it even possible to get the action from the parser like the noun or the second noun?

I know that I could get it via action name part of (stored action) (12.20. Stored actions), but it doesn’t feel like the right way to do it.

Somebody posted the same problem on stack overflow (How to change a stored actions noun or the overall current action in Inform7? - Stack Overflow) and found a solution for himself, but never shared his way of doing it.

1 Like

I think you’re just looking for “try the current action” – see this bit of the Recipe Book, especially the Fine Laid example.

3 Likes