- Code: Select all
GROUP = {
MEMBER1 = {
MANA = "611",
POSITION = "Back",
NAME = "Splork",
MAX_MANA = "611",
HITPOINTS = "1216",
MAX_HITPOINTS = "1216"
},
MEMBER2 = {
MANA = "316",
POSITION = "Leader",
NAME = "Whatta",
MAX_MANA = "316",
HITPOINTS = "319",
MAX_HITPOINTS = "319"
},
MEMBER0 = {
MANA = "179",
POSITION = "Back",
NAME = "Unmace",
MAX_MANA = "179",
HITPOINTS = "251",
MAX_HITPOINTS = "251"
}
This may change slightly if I can come up with a better way to declare position of the player in a group or decide to add more information. Currently, there are 5 possible positions: Pleader ( point and leader), Leader, Point, Front, or Back.
This creates variables inside the original "Group" variable. An example of how these can be accessed within Mudlet:
lua msdp.GROUP.MEMBER0.NAME
"Splork"
lua msdp.GROUP.MEMBER0.HITPOINTS
"1216"
Splork