StatLine - Share StatusLine with other Plugins and Main Script.

Posted by Magnum on Mon 21 Oct 2002 08:25 AM — 1 posts, 10,360 views.

Canada #0
This plugin is soley intended for usage in conjunction with other plugins, and/or the main script. By itself, it serves no purpose.

Essentially, what it does is store a variable for each string you would like to present on the Status Line. The name of the variable is referred to as the "IDString". The value stored within the variable is referred to as the "StatLineString".

The variable list is sorted, and then the values are pulled and assembled to present the 'total' string, which is then sent to the status line.

From the plugin help:

---------------------------------------------------------------------------------------------------
This plugin allows several other plugins to share the Status Line.
---------------------------------------------------------------------------------------------------

The syntax to use from the client plugin (if using VBS) is:

World.CallPlugin "5c582b1da52fd6a9d5d912a8", "AddString", "IDString" & Chr(10) & "StatLineString"

	- An existing IDString of the same name will be replaced with the new value.

World.CallPlugin "5c582b1da52fd6a9d5d912a8", "DelString", "IDString"

	- Deletes the value identified by the IDString (and the IDString itself).

World.CallPlugin "5c582b1da52fd6a9d5d912a8", "Update", "AnyString"

	- Note, Adding or Deleting a string will cause an update of the status line anyway.
	- You must pass an argument, but it will be discarded. Required due to program structure.

---------------------------------------------------------------------------------------------------

The IDString's are sorted before displaying, so you can name them accordingly, should you want your
assorted strings presented in a particular order.

IDString Examples:  01_InPartyStatus, 02_Health, 03_SpellQ, 04_SQBusy, 05_CombatStatus

Each string will be seperated from the others by "  |  ", not including the quotes, of course.

Example:

|  InParty: No  |  HP: 80%  CP: 90%  |  SQ: On  |  Busy: Y  | Combat! |

---------------------------------------------------------------------------------------------------

Download from my website: http://www.MagnumsWorld.com/MUDs/