Undo Last Movement/Action Plugin Request [RPG Maker MV]
Introduction
A staple of block-pushing puzzle games like Sokoban is the ability to undo a move/action by hitting a key. RPG Maker MV has reset functionality in the form of transferring the player out of the map and back to the map, essentially resetting the puzzle, bur we don't have single action undo options yet. Using existing Plugins I've been able to key a full reset to the R key on the keyboard, but have had no such luck for undos.
While I've looked into the components of such a system for other engines (I hear a lot about undo stacks, command patterns, move tables, etc.) they fall outside of my level of coding comfort.
Request
Ideally, the plugin would have the following features:
Hitting the undo key would bring that box right back to the position it was pushed from.
The same would be true for character movement, switches/variables changing, etc.
Thank you very much for any help you can provide towards implementing this mechanic. I'm sure a lot of puzzle making enthusiasts would appreciate this option.
Introduction
A staple of block-pushing puzzle games like Sokoban is the ability to undo a move/action by hitting a key. RPG Maker MV has reset functionality in the form of transferring the player out of the map and back to the map, essentially resetting the puzzle, bur we don't have single action undo options yet. Using existing Plugins I've been able to key a full reset to the R key on the keyboard, but have had no such luck for undos.
While I've looked into the components of such a system for other engines (I hear a lot about undo stacks, command patterns, move tables, etc.) they fall outside of my level of coding comfort.
Request
Ideally, the plugin would have the following features:
- Link the undo action to a configurable keyboard command.
- Track actions taken, including movement (player and event), interacting with an object, switches, variables, etc. Hitting the undo key should revert all changes applied by the previous action.
- Clear action log/begin tracking action log with a script or event call.
- I imagine the main use will be clearing and restarting on map transitions, but this could also be useful for checkpoints or level/stage completion.
- Have a configurable maximum undo length with the option for no undo limits within the same map.
Thank you very much for any help you can provide towards implementing this mechanic. I'm sure a lot of puzzle making enthusiasts would appreciate this option.