I’d like to remap a transitive action (“clear”) to “take all from”. So for example when the input is:
CLEAR CUPBOARD
it’s remapped to:
TAKE ALL FROM CUPBOARD
It doesn’t look like there’s any way to do this with either remapTo() nor replaceAction(). So this is not possible:
[code]DefineTAction(Clear);
modify Thing
dobjFor(Clear) remapTo(TakeFrom, ???)
;[/code]
or:
modify Thing
dobjFor(Clear) {
action() { replaceAction(TakeFrom, ???, self); }
}
;
Is there a straightforward way to do this? Right now, I’m trying to resolve ALL manually by using Thing.getAllForTakeFrom(), and then pass the list on to replaceAction(). But the list includes objects that a regular TAKE ALL FROM OBJ doesn’t include (like hidden objects, fixtures, etc.) It’s also not clear what the correct scope should be for getAllForTakeFrom().