Up to Main Index Up to Journal for November, 2026
JOURNAL FOR SUNDAY 22ND NOVEMBER, 2026
______________________________________________________________________________
SUBJECT: WMProto: health, barriers, name variations and more
DATE: Sun 22 Nov 18:28:55 GMT 2026
Work has continued on the WMProto with more commits being pushed out to the
repository[1] during the week. What’s new in prototype land?
The SPAWN attribute has been added for the RESET field. SPAWN affects thing in
containers. Lets assume we have a bean in a jar. Without SPAWN we can pick up
the jar and we get the jar with the bean in it. We can remove the bean and now
have a jar and a bean. If we specify SPAWN on the bean then the bean will keep
respawning in the jar and we can keep removing it and collect a load of beans.
Support has been added for HEALTH records:
Health: AFTER=<delay> JITTER=<delay> CURRENT=<hp> MAXIMUM=<hp> RESTORE=<hp>
HEALTH does not do much at the moment as there is no combat. However, it does
let us define mobiles[2]. In WolfMUD, mobiles are any entity that can self
heal. To self heal mobiles need a minimum of AFTER and/or JITTER, MAXIMUM and
RESTORE defined.
An isMobile flag is now added for easy identification. This flag has been used
to improve the GET, PUT and TAKE commands.
Default health settings have been added to players.
In preparation for combat a health event has been added so that health can be
regenerated when a player or mobile is injured.
Support for name variations have been added. These are title cased names,
“the” names and title cased “the” names. For example, if we have a mobile with
the name “a frog” then the following strings are available:
strName: a frog
strNAME: A frog
strTheName: the frog
strTheNAME: The frog
These strings can then be used when constructing nice looking messages. For
example:
c.msg("There is %s here.", what.str[strName]) → There is a frog here.
c.msg("You examine %s.", what.str[strTheName]) → You examine the frog.
c.msg("%s hops around.", what.str[strTheNAME]) → The frog hops around.
All of the current command messages have been reviewed and improved using name
variations.
The LOOK command has had an overhaul. It now displays information in the same
order as the current WolfMUD:
[ Room E ]
This is room E. There is a door here leading west.
Player 48 is here.
You see a box here.
You see exits: west and down
+
For a crowded location thing are no longer shown. This is the same location
when crowded:
[ Room E ]
This is room E. There is a door here leading west.
It's too crowded here to see anything.
You see exits: west and down
+
When someone enters a location it no longer says they are looking around.
The matcher had a minor performance update. If a location is crowded then
thing.who is no longer scanned.
Support has been added for simple sets with the addition of thing.set, which
allows items in a set to be quickly checked. This has improved the performance
of the matcher by moving aliases and qualifiers from lists to sets.
Support for barriers have been added:
Barrier: EXIT=<dir> DENY=<alias,...> ALLOW=<alias,...>
Barriers are one way checks that can prevent players and/or mobiles from
moving in a specific direction. They can be useful for corralling mobiles in a
specific area.
Players now have the specific “PLAYER” alias added automatically. This can be
used with barriers. Movement commands have been updated to check for barriers.
The sample data/world.wrj file has been updated with test barriers and a new
“frog room” location, the frog can enter but the tester cannot.
The loading of doors/portals has been fixed. The short directions “U” and “D”
and all of the long directions can now be used. An invalid door/portal no
longer skips other doors/portals in the same location.
The grammar for OPEN and CLOSE commands has been fixed.
There has been a large refactor for resets, spawning, thing management and
event management. Part of this is the addition of an isOriginal flag to track
thing loaded at world build time as opposed to spawned and created thing. The
core.junk method is renamed core.recycle and handles unique, original and
spawned thing life cycles. Work is ongoing to simplify thing management and
life cycles.
I still have some clean-up to do, then I’ll look at combat. However, combat
needs bodies, armour and weapons. Might take me a little while to bring it all
together. Expect commits over the coming week.
Soon I need to work out a proper way to test everything. At the moment I’m
logging in via telnet and manually testing changes. Having a test suite I can
run would be much better. That means writing tests, which I hate doing.
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
[2] A mobile is old school for what we now call NPCs or non-player
characters. Some gamers still refer to “mobs”.
Up to Main Index Up to Journal for November, 2026