actioninform7

How to change a stored actions noun or the overall current action in Inform7?


EDIT: Massive cleanup, to make the current status clearer!

I want to modify an action in either of two aspects:
Either change the noun in an action previously retrieved by current action not in the same turn
or
Change the action name of the current (or stored) action (so change waiting to unlocking it with).

I tried:


Solution

  • I came up with a really hacky feeling solution to my problem. I switched an extra truthstate, repeated the stored action (using try) and then modified noun and second noun according to my needs.
    I am not happy with what I had to come up with to get this to work, but this seemed to be the only way possible.

    If there will be posted any other solutions to this that are cleaner I will mark them as correct.