Welcome to the Achaea Forums! Please be sure to read the Forum Rules.

Location of GMCP Documentation

TorinnTorinn Member Posts: 1,350 @ - Epic Achaean
Greetings everyone!

I'm looking to get heavily involved in modifying or creating brand new scripts for mudlet.  I am looking for existing documentation on what sorts of things GMCP can be used for.  I have found http://www.ironrealms.com/gmcp-doc but it seems like it's missing things.  For example, I think Char.Afflictions exists but it isn't included in the documentation there.  It could also very well be that I am misunderstanding.  Does anybody have any insight?  Thank you!
Deucalion says, "Torinn is quite nice."


  • TectonTecton The Garden of the GodsAdministrator Posts: 2,507 Admin
    http://nexus.ironrealms.com is the primary source for GMCP documentation these days!
  • TorinnTorinn Member Posts: 1,350 @ - Epic Achaean
    Aha!  Tecton, you are amazing!  <3
    Deucalion says, "Torinn is quite nice."
  • KeneanungKeneanung Member Posts: 618 ✭✭✭✭ - Eminent
    The official documentation is still missing some information. I tried to document additional things on my GitHub page https://github.com/keneanung/GMCPAdditions
  • AtalkezAtalkez Member, Secret Squirrel Posts: 5,537 @@ - Legendary Achaean
    Did you message Mak, Nicola, or Cellorran about what is missing? 

    If not, you should!

    You hug Aurora compassionately.
  • KeneanungKeneanung Member Posts: 618 ✭✭✭✭ - Eminent
    Not specifically, mainly because this list is around for quite some time and was linked here quite often, so I'm sure they saw it online
  • TorinnTorinn Member Posts: 1,350 @ - Epic Achaean
    Another question for this, I've been working on modifying existing scripts and I want to add code that will give me the amount of Devotion I currently have.  It says in the documentation under Char.Vitals that Devotion is an additional key, so I thought I should be able to use it, but I haven't been able to figure out how to get it to display any data yet.  I've tried calling it many different ways including, gmcp.Char.Vitals.devotion, gmcp.Char.Vitals.Priest.devotion, I've tried devotionmax and devotion mirroring how HP works... does anybody have any ideas?
    Deucalion says, "Torinn is quite nice."
  • SenaSena Member Posts: 3,957 @@ - Legendary Achaean
    Devotion and all the other additional keys listed there are all under Char.Vitals.charstats.
  • VessilVessil Member Posts: 64 ✭✭ - Stalwart
    edited October 2016
    ^ Yeah, it's under gmcp.Char.Vitals.charstats. Figure out which entry it is(for instance, my Charstats as a Bard looks like {  "Bleed: 55",  "Rage: 7",  "Stance: None",  "Voice: Yes"} Bleed is the first entry for me, so to read it as a number into a variable, I could do(the bold stuff is what you'd change):
    bleed = tonumber(gmcp.Char.Vitals.charstats[1]:match("Bleed: (%d+)"))

  • TorinnTorinn Member Posts: 1,350 @ - Epic Achaean
    Aaah okay, thank you!  That clears up a lot of confusion.  It wasn't clear to me that charstats contained the class specific information as well.  I have much to learn  B)
    Deucalion says, "Torinn is quite nice."
  • LelumLelum Member Posts: 5
    edited October 2016
    for k,v in pairs(gmcp.Char.Vitals.charstats) do <br>	torinn[string.match(v,"([a-zA-Z0-9]+):")] = string.match(v,": ([a-zA-Z0-9]+)$")) <br>end<br><br>
    In case you needed help accessing the stuff, that would store each charstat in the torrin namespace. You could grab devotion by using
    after that function ran.

    Didn't see that it had already been explained.  Mabad:#
Sign In to Comment.