Mushclient Worn Items Splitter

by Esano

Back to Mechanic's Corner.

Esano2010-04-08 03:24:05
Fairly simple trigger in a plugin to split up worn items on a desc so it looks like this ...

CODE
She is an ordinary human demigoddess and epitomizes exacting uniformity, uncanny symmetry mirrored in every feature of her moderate build and frame. A sparse scattering of light lavender freckles dot her face and neck, perfectly aligned with each other from one rosy, dimpled cheek to the next. Brilliant eyes of spiraling teal and chartreuse seem sharply at odds with her sandy blonde pixie cut. Her complexion is otherwise pale, with a pair of small, rounded ears and a short narrow nose giving her a delicate appearance.
She is wearing:
a Circlet of Lucidity
a cryptic necklace of carved fangs
a ring of aetheric power
a ring of aetheric quickening
4 chitinous amber scabbards
a fesix backpack
animated sandals of moss and twining ivy
a stinging wasp brooch
a practical golden pocket watch
a matrimonial puzzle ring of blackened gold
Spectacles of Clairvoyance
a Brooch of the Tempest
a shroud of shadows
a parafilament purse
a duskily iridescent brooch
a twisting pendant of herbs
a symbol of an entrancing black rose
a striped orchid
a pair of black silk poisoner's gloves
a twisting crown of dogwood branches
and a golden suit of lace-trimmed field plate armour.
She walks with the truefavour of Viravain.

instead of
CODE
She is an ordinary human demigoddess and epitomizes exacting uniformity, uncanny symmetry mirrored in every feature of her moderate build and frame. A sparse scattering of light lavender freckles dot her face and neck, perfectly aligned with each other from one rosy, dimpled cheek to the next. Brilliant eyes of spiraling teal and chartreuse seem sharply at odds with her sandy blonde pixie cut. Her complexion is otherwise pale, with a pair of small, rounded ears and a short narrow nose giving her a delicate appearance. She is wearing a Circlet of Lucidity, a cryptic necklace of carved fangs, a ring of aetheric power, a ring of aetheric quickening, 4 chitinous amber scabbards, a fesix backpack, animated sandals of moss and twining ivy, a stinging wasp brooch, a practical golden pocket watch, a matrimonial puzzle ring of blackened gold, Spectacles of Clairvoyance, a Brooch of the Tempest, a shroud of shadows, a parafilament purse, a duskily iridescent brooch, a twisting pendant of herbs, a symbol of an entrancing black rose, a striped orchid, a pair of black silk poisoner's gloves, a twisting crown of dogwood branches, and a golden suit of lace-trimmed field plate armour. She walks with the truefavour of Viravain.


It's not flawless, but it's pretty decent.

Also note that it actually has a space before the item on the new line, but for some reason not even code is printing that properly.



If you have any suggestions, just let me know, although I can't promise I'll implement them. If you prefer the comma at the end of each line, open it up in notepad, find the line
CODE
      curchar = '\\\\n'

and replace it with
CODE
      curchar = ',\\\\n'

and it should be fine.
Everiine2010-04-08 03:30:05
Awesome sauce. I approve! At least until I try it out, then I'll let you know. Pre approved!
Shaddus2010-04-08 04:16:24
Love it!
Vadi2010-04-08 13:30:45
Mudlet version, with the fixed case of missing r's

won't let me upload, so file is here: http://drop.io/1p0hfyh
Unknown2010-04-08 13:58:08
You're missing some r's there, Vadi. wink.gif
Unknown2010-04-12 01:00:01
Thanks, Esano! You always have a knack for..