From 5f43e111be962a3bf7c0bc185228a4e03175d262 Mon Sep 17 00:00:00 2001 From: OlegTheSnowman <123775785+OlegTheSnowman@users.noreply.github.com> Date: Sat, 11 Jul 2026 00:14:52 +0300 Subject: [PATCH] Add toggleable numpad movement (Alt+Enter) Ports the zMUD/CMUD numpad.set convention: plain numpad for normal movement, Ctrl+numpad for moving up a level in that direction, and Ctrl+Alt+numpad for moving down a level, all sent as literal MUD commands via Accelerator. Alt+Enter toggles the whole set on/off (with a sound + spoken confirmation) by clearing/restoring the accelerators, so a disabled numpad types normally instead of doing nothing. Cleared the numbers/*/-/+ entries in the world's native block since they'd otherwise double-send alongside the new Accelerator-based bindings - left "." and "/" (hide/inventory) alone since those aren't part of this feature. Documented the full three-layer key list and the toggle in the readme. --- .../worlds/Cosmic Rage/cosmic rage.MCL | 18 +-- cosmic rage/worlds/plugins/NumpadMovement.xml | 107 ++++++++++++++++++ readme.md | 45 ++++++++ 3 files changed, 157 insertions(+), 13 deletions(-) create mode 100644 cosmic rage/worlds/plugins/NumpadMovement.xml diff --git a/cosmic rage/worlds/Cosmic Rage/cosmic rage.MCL b/cosmic rage/worlds/Cosmic Rage/cosmic rage.MCL index 80725e9..84a0535 100644 --- a/cosmic rage/worlds/Cosmic Rage/cosmic rage.MCL +++ b/cosmic rage/worlds/Cosmic Rage/cosmic rage.MCL @@ -312,44 +312,38 @@ date_saved="2026-07-10 23:31:00" > + - exits - sw - south - se - west - look - east - nw - north - ne @@ -361,15 +355,12 @@ - score - up - down @@ -457,6 +448,7 @@ + diff --git a/cosmic rage/worlds/plugins/NumpadMovement.xml b/cosmic rage/worlds/plugins/NumpadMovement.xml new file mode 100644 index 0000000..71d2f9a --- /dev/null +++ b/cosmic rage/worlds/plugins/NumpadMovement.xml @@ -0,0 +1,107 @@ + + + + + + + + + + + diff --git a/readme.md b/readme.md index 7b75854..ddea1e5 100644 --- a/readme.md +++ b/readme.md @@ -109,6 +109,17 @@ The soundpack mirrors game text into a separate notepad-style window titled "out ### Gag Manager - **Alt + F2**: Open the Gag Configuration menu (see [Gag Manager](#gag-manager) below) +### Numpad Movement +See [Numpad Movement](#numpad-movement) below for the full breakdown - summary: +- **Alt + Enter**: Toggle numpad movement on/off +- **Numpad 1-9, 0**: Move (with Numpad 5 as look, Numpad 0 as exits) +- **Numpad \* / Ctrl + Numpad \***: In / out +- **Numpad - / Numpad +**: Up / down +- **Ctrl + Numpad 1-9** (except 5): Move up a level in that direction +- **Ctrl + Numpad - / Ctrl + Numpad +**: Upstairs / downstairs +- **Ctrl + Alt + Numpad 1-9**: Move down a level in that direction (Ctrl+Alt+Numpad 5 is "go") +- **Ctrl + Alt + Numpad - / Ctrl + Alt + Numpad +**: Climb up / climb down + ## Gag Manager @@ -135,6 +146,40 @@ Press **Alt + F2** to open the Gag Configuration menu. From there you can: Your gags are saved to `gags.lua`, next to your world file (`worlds/Cosmic Rage/gags.lua`). It's a plain, human-readable file, so you can copy it to share your gag list with someone else or keep it as a backup. To load someone else's list, drop their `gags.lua` into your own `worlds/Cosmic Rage/` folder - this replaces your existing gags, so back yours up first if you want to keep it. + +## Numpad Movement + +The numpad can be dedicated entirely to movement, freeing you from typing full direction commands. It's on by default and works in three layers depending on what modifier you hold. + +### Plain numpad - normal movement +- **Numpad 7 / 8 / 9**: Northwest / North / Northeast +- **Numpad 4 / 5 / 6**: West / Look / East +- **Numpad 1 / 2 / 3**: Southwest / South / Southeast +- **Numpad 0**: Exits +- **Numpad \***: In +- **Ctrl + Numpad \***: Out +- **Numpad -**: Up +- **Numpad +**: Down + +### Ctrl + numpad - move up a level while heading that direction +- **Ctrl + Numpad 7 / 8 / 9**: Northwest-up / North-up / Northeast-up +- **Ctrl + Numpad 4 / 6**: West-up / East-up +- **Ctrl + Numpad 1 / 2 / 3**: Southwest-up / South-up / Southeast-up +- **Ctrl + Numpad -**: Upstairs +- **Ctrl + Numpad +**: Downstairs + +### Ctrl + Alt + numpad - move down a level while heading that direction +- **Ctrl + Alt + Numpad 7 / 8 / 9**: Northwest-down / North-down / Northeast-down +- **Ctrl + Alt + Numpad 4 / 6**: West-down / East-down +- **Ctrl + Alt + Numpad 1 / 2 / 3**: Southwest-down / South-down / Southeast-down +- **Ctrl + Alt + Numpad 5**: Go +- **Ctrl + Alt + Numpad -**: Climb up +- **Ctrl + Alt + Numpad +**: Climb down + +### Turning it off + +Press **Alt + Enter** to toggle numpad movement on or off - useful if you need the numpad free for typing numbers instead. You'll hear a confirmation sound and a spoken message each time you toggle it. When it's off, the numpad keys behave normally again rather than doing nothing. + ## FAQ **Q: My soundpack isn't working. What should I do?**