I have recently begun working with GMCP on my cMud, and for the most part it works great. As you can see from my status window, I have char.vitals split up in health, mana, fatigue, food- and drinklevels and intoxication.
I used a bit of code that I found elsewhere on the Gen forums to update these vitals when Genesis sends the update:
Code: Select all
$gmcpData = %gmcp.Char.Vitals
#IF %ISKEY($gmcpData, "health") { health = %gmcp.Char.Vitals.health }
#IF %ISKEY($gmcpData, "mana") { mana = %gmcp.Char.Vitals.mana }
Unfortunately it seems my cMud always reports mana as being in a bad shape.
Code: Select all
#show %gmcp.Char.Vitals.mana
in a bad shape
Everything else seems to work fine. Any ideas what is going wrong here? I have tried relogging, but this does not seem to change the returned value from Genesis.
Thank you!