Didn't see a thread for general questions about coding in Mudlet specifically, so here you go! I'll start.
I'm trying to make a script to track certain information via GMCP. The code looks like this:
vitals = gmcp.Char.Vitals
if vitals.herb == 1 then
balance.herbs = true
balance.herbs = false
I'm using a registered event handler of 'gmcp.Char.Vitals'. This worked for me in Achaea using Mudlet, and I've checked to make sure gmcp.Char.Vitals.herb is a valid references in Aetolia. I put in error checks in the form of echoes, but the script doesn't function at all. Not even at 'stage 1'. This is also the exact error I get in the Lua console:
[ERROR:] object: (event handler function) function:(Status)(attempt to call a nil value)
*replaced HTML tags in the error.
Can anyone help?