Toribash
Prev Previous Post   Next Post Next
Original Post
[REL] Move Library v22.11.5
MoveLib v22.11.5

MoveLib is a terminal-based application to save, load, and manage move sets. It is heavily inspired by the popular "Unlimited Movesaver" script.

MoveLib works via running commands in chat, and is written to be very extensible.

  • /m load - reload all moves from disk
  • /m help - display this help text
  • /m save - save all moves to disk
  • /m list - print the list of all moves
  • /m do <move> [left|right]
  • /m print <move>
  • /m push <move> [left|right]
Player sides are represented by the string "left", or "right". Therefore, to push (save) a move step called "lazyglute" from the current player username at the top right of the screen, I would do:
  • /m push lazyglute right

MoveLib also has a concept of an "attack side". All moves should be encoded such that they are saved as an attack on the left, per convention. Then, you can use the modifier "right" with the do command, which would queue up a kick on the right.
  • /m do slowkick right

Installation

1. Extract movelib.<version>.zip into your /data/script/ folder.
2. Replace "old_require(path)" with "return old_require(path)" in your /data/script/startup.lua file.
3. Open Toribash and run "/loadscript movelib.lua" in the terminal.


Note on Installation Step 2: 'startup.lua' manages some security settings, but has an issue present that prevents modern Lua module syntax. The modification does not affect any security constraints, while fixing the issue regarding Lua modules.


Changelog
v22.11.5: Initial release.
Attached Files
movelib.v22.11.5.zip (23.6 KB, 117 views)
Last edited by Vast; May 12, 2022 at 05:25 AM.
Ƹ̵̡Ӝ̵̨̄ᵃʳᵖ'ˢ⎠⎝SʰᵃᵈᶲʷӜ̵̨̄Ʒ