MSDP Update ( Group )

Code changes, new spells/skills/songs, etc

MSDP Update ( Group )

Postby *Splork* » Sat Oct 18, 2014 10:47 am

Added a new variable called group. It looks something like the following:
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
User avatar
*Splork*
Site Admin
 
Posts: 1135
Joined: Tue Apr 29, 2003 8:50 pm
Status: Offline

Re: MSDP Update ( Group )

Postby *Breeze* » Sun Oct 19, 2014 2:25 am

You could add 'pstate'
For the groupie..

Standing
Sitting
Sleeping
Fighting
Incap
Morted
Dead
Etc
User avatar
*Breeze*
Avatar Poster
 
Posts: 520
Joined: Mon Nov 05, 2007 9:24 am
Status: Offline

Re: MSDP Update ( Group )

Postby *Splork* » Sun Oct 19, 2014 8:36 pm

The new group variable looks like the following:
Code: Select all
 GROUP = {
    MEMBER0 = {
      MANA = "578",
      POSITION = "Leader",
      MAX_MOVES = "366",
      MAX_HITPOINTS = "1382",
      MOVES = "366",
      MAX_MANA = "578",
      STATUS = "Fighting",
      HITPOINTS = "1382",
      NAME = "Jake"
    }
  },


Status options are the following:
Dead
Dying
Incapped
Stunned
Absent
Fighting
Standing
Resting
Sleeping
-- if none of those, Present

Thanks for the idea Breeze, enjoy your vacation@

Enjoy,
Splork
User avatar
*Splork*
Site Admin
 
Posts: 1135
Joined: Tue Apr 29, 2003 8:50 pm
Status: Offline

Re: MSDP Update ( Group )

Postby *Breeze* » Mon Oct 20, 2014 2:07 am

Looks good :)

And thanks
User avatar
*Breeze*
Avatar Poster
 
Posts: 520
Joined: Mon Nov 05, 2007 9:24 am
Status: Offline


Return to Mud changes and New Stuff

Who is online

Users browsing this forum: No registered users and 15 guests

cron