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

Location of GMCP Documentation

TorinnTorinn Posts: 829Member ✭✭✭✭✭ - Grand 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."
Tagged:
Szanthax

Comments

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

    If not, you should!


    You hug Aurora compassionately.
  • KeneanungKeneanung Posts: 582Member ✭✭✭✭ - 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 Posts: 829Member ✭✭✭✭✭ - Grand 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 Posts: 3,910Member @@ - Legendary Achaean
    Devotion and all the other additional keys listed there are all under Char.Vitals.charstats.
    Torinn
  • VessilVessil Posts: 51Member ✭✭ - 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+)"))


    TorinnMathilda
  • TorinnTorinn Posts: 829Member ✭✭✭✭✭ - Grand 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 Posts: 5Member
    edited October 2016
    for k,v in pairs(gmcp.Char.Vitals.charstats) do 
    torinn[string.match(v,"([a-zA-Z0-9]+):")] = string.match(v,": ([a-zA-Z0-9]+)$"))
    end

    In case you needed help accessing the stuff, that would store each charstat in the torrin namespace. You could grab devotion by using
    torrin.Devotion
    after that function ran.


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