Up to Main Index                          Up to Journal for November, 2026

                    JOURNAL FOR SUNDAY 29TH NOVEMBER, 2026
______________________________________________________________________________

SUBJECT: WMProto: proper combat!
   DATE: Sun 29 Nov 18:22:48 GMT 2026

For onlookers from the sidelines, this week the WMProto repository[1] must
have seemed somewhat quiet. Was I slacking off? No! I was getting everything
ready for combat. Combat involves a number of things. Specifically armour and
weapons. In order for a player or mobile to use armour and weapons they need
to have body slots. So what actually landed in the repository this week?

Event handling got another round of clean-up.

An initial HIT command was added that brought together the HEALTH metrics and
health events for testing.

The mailman received an update so that messages to participants were handled
correctly.

The ACT command was updated to surface actions in items that were in a
player’s or mobile’s inventory.

The curious brass lattice test item was fixed. Its ACTION record was mangled.

Body slots were added so equipment could be held, worn or wielded. Players are
now given default body slots. The BODY record is now supported:


    Body: <slot>=<qty>…

    Body: HEAD→1 FACE→1 EAR→2 EYE→2 NOSE→1 MOUTH→1 UPPER_LIP→1 LOWER_LIP→1
          NECK→1 SHOULDER→2 BACK→1 CHEST→1 UPPER_ARM→2 ELBOW→2 LOWER_ARM→2
          WRIST→2 HAND→2 FINGER→8 THUMB→2 WAIST→1 PELVIS→1
          UPPER_LEG→2 KNEE→2 LOWER_LEG→2 ANKLE→2 FOOT→2


The HOLDABLE, WEARABLE and WIELDABLE records are now supported:


     HOLDABLE: <slot>=<qty>…
     WEARABLE: <slot>=<qty>…
    WIELDABLE: <slot>=<qty>…

     HOLDABLE: HAND=2
     WEARABLE: BACK CHEST
    WIELDABLE: HAND


The commands HOLD, WEAR and WIELD were added and can also be vetoed.

The INVENTORY command was updated to show what is being held, worn or wielded:


    [H:30/30]+ inv
    You are carrying:
      a leather cap (held)
      a leather jerkin (worn)
      a dagger (wielded)
      a box


Anything that is not a location, mobile or narrative can now be held in one
hand by default. This can be overridden by adding specific HOLDABLE records.

The GET command was been updated. Little cute critters that are holdable can
now be picked up and held.

Prompt handling has been moved from the client layer into the core. This
allows health to be shown. For example: “[H:30/30]”.

A new PROMPT command has been added. On its own it shows the current prompt
mode. The PROMPT command can be followed by a new mode to set the prompt mode.
Current prompt mode include:


            (L)ONG - display current/maximum  health "[H:30/30]+ "
           (B)RIEF - display current health "[H30]+ "
           (S)HORT - display no state "+ "
            (N)ONE - display nothing ""


Support has been added to the loader for ARMOUR and DAMAGE records:


    Armour: <amount>
    Damage: <fixed>+<random>


This allow armour and weapons to be defined:


    %%
          Ref: DAGGER
         Name: a dagger
      Aliases: DAGGER WEAPONS WEAPON ITEM
     Location: e
       Damage: 1+3
    Wieldable: HAND
      Cleanup: @QUICK
     OnCombat: [%A] stab[/s] out with [%a.their] dagger drawing blood.
             : [%A] slash[/es] at [%d] with [%a.their][r/] dagger.
             : [%A] stab[/s] at [%d].
             : [%A] cut[/s] [%d] with [%a.their][r/] dagger.
             : [%A] slice[/s] [%d] with [%a.their][r/] dagger drawing blood.
             : [%D] receives the pointy end of [%a][r/'s] dagger.
             : [%D] wince[s//s] in pain as [%a] stick[/s] [%d.them] with
               [%a.their][r/] dagger.
             : With a sneaky jab, [%a][r/'s] dagger bites into [%d].
        Reset: @QUICK

    This is a small, sharp dagger.
    %%
         Ref: JERKIN
        Name: a leather jerkin
     Aliases: +LEATHER JERKIN CLOTHING CLOTHES ITEM
    Location: e
      Armour: 3
    Wearable: BACK CHEST
     Cleanup: @QUICK
       Reset: @QUICK

    This is a sleeveless, soft leather jerkin.
    %%


Finally proper combat events that calculate attack and defense based on
equipment worn or wielded have been added. An example round of combat:


    [ Room F ]
    This is room F. The frog room.

    Player 58 is here.

    You see exits: east
    [H:30/30]+ hit player58
    You attack Player 58.
    [H:30/30]+
    You hit Player 58. (2 damage)
    [H:30/30]+
    Player 58 hits you. (3 damage)
    [H:27/30]+
    Player 58 hits you. (3 damage)
    [H:24/30]+
    You hit Player 58. (4 damage)
    [H:24/30]+
    You hit Player 58. (4 damage)
    [H:24/30]+
    Player 58 hits you. (6 damage)
    [H:18/30]+
    Player 58 hits you. (5 damage)
    [H:13/30]+
    Player 58 hits you. (7 damage)
    [H:6/30]+
    You hit Player 58. (3 damage)
    [H:6/30]+
    Player 58 kills you!


This also allows for multi-combatant combat too. Assume we have three players
A, B and C. Player B can attack player A, player C can attack player A or B.
Larger fights are also possible.

Next on my list is to add support for the ONCOMBAT messages. Combat messages
will then depend on equipment used.

If you have comments, spot bugs, have better ideas than mine — I’m just a
quick email away: diddymus@wolfmud.org

--
Diddymus

  [1] WMProto repository: git clone https://code.wolfmud.org/WMProto


  Up to Main Index                          Up to Journal for November, 2026