GMCP - Mana always "in a bad shape".

Need some help with your MUD client? Forgot your password? Get help here.
Forum rules
- Use common sense and be respectful towards each other at all times, even when disagreeing.
- Do not reveal sensitive game information. Guild secrets, player seconds are examples of things not allowed.
Post Reply
Shesara
Beginner
Posts: 21
Joined: 06 Jul 2010 23:45
Contact:

GMCP - Mana always "in a bad shape".

Post by Shesara » 12 Mar 2015 17:40

Hello!

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 }
And so on.

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
Which on my status window is changed into 46%

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!
Attachments
Status Window.jpg
Status Window on cMud
Status Window.jpg (33.86 KiB) Viewed 3263 times

Mercade
Wizard
Posts: 67
Joined: 12 Jan 2013 18:03

Re: GMCP - Mana always "in a bad shape".

Post by Mercade » 12 Mar 2015 22:04

This appears to be related to your spell casting guild affiliation.
It will require some further investigation and may likely take time to get fixed.

Drip
Wanderer
Posts: 57
Joined: 31 Jan 2015 06:28
Location: Canada

Re: GMCP - Mana always "in a bad shape".

Post by Drip » 14 Mar 2015 04:24

This always happens:

Do these have something in common?
Attachments
Capture.PNG
Which one is the correct one?
Capture.PNG (99.53 KiB) Viewed 3211 times
(if you don't understand what I've written, assume I have bad wording)

Post Reply
http://tworzymyatmosfere.pl/przescieradla-jedwabne-z-gumka/