Add MSDP status bar and protocol negotiation to mud.tin

This commit is contained in:
Jared Miller 2026-02-12 00:12:44 -05:00
parent e0376bbb05
commit 5c9c90c990
Signed by: shmup
GPG key ID: 22B5C6D66A38B06C

16
mud.tin
View file

@ -2,6 +2,22 @@
#NOP usage: tt++ mud.tin #NOP usage: tt++ mud.tin
#split 0 1 #split 0 1
#NOP initialize MSDP variables for status bar (before connection)
#variable {MSDP_HEALTH} {-}
#variable {MSDP_HEALTH_MAX} {-}
#variable {MSDP_STAMINA} {-}
#variable {MSDP_STAMINA_MAX} {-}
#NOP protocol negotiation - respond to server's WILL offers
#EVENT {IAC WILL GMCP} {#send {\xFF\xFD\xC9}}
#EVENT {IAC WILL MSDP} {#send {\xFF\xFD\x45}}
#NOP store incoming MSDP variables
#EVENT {IAC SB MSDP} {#variable {MSDP_%0} {%1}}
#NOP status bar: HP and stamina from MSDP
#status {[HP: $MSDP_HEALTH/$MSDP_HEALTH_MAX] [ST: $MSDP_STAMINA/$MSDP_STAMINA_MAX]}
#NOP reconnect after disconnect. defined before #session so it #NOP reconnect after disconnect. defined before #session so it
#NOP persists in the startup session when the mud session dies. #NOP persists in the startup session when the mud session dies.
#alias {reconnect} {#session mud localhost 6789} #alias {reconnect} {#session mud localhost 6789}