Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
saet
Apprentice


Joined: 12 Jun 2006
Posts: 106

PostPosted: Wed Dec 12, 2007 2:33 am   

XML/MXP Help
 
Quote:
<style id="roomName" />[Truffenyi's Green]
<style id=""/><style id="roomDesc"/>A large common green stretches out over most of the northeastern section of the tier. The grassy area is an excellent spot for athletic activities, for a meal on the soft grass, or contemplating the sky above. The western edge of the field backs on to the temples of Chadatru and Glythtide, and a fountain dedicated to Truffenyi stands to the east near the intersection of the eastern-most road and East Palace Drive.<style id=""/> You also see a pale red moonbeam, a jadice flower, a curved wooden cane, some feather flights, some grass, a rotting driftwood chest, a pile of strawberries, a copper-edged deobar skippet, a poorly made ironwood trunk, some swallow-winged bolts, some sufil sap, a gift box, an origami primer, some darkened falconer's gauntlets, a pile of strawberries, a pile of jadice flowers, and a trash receptacle.
Also here: Doctor PlayerA, PlayerB, Warrior Mage PlayerC, and Gauntlet Champion PlayerD.
<compass><dir value="n"/><dir value="e"/><dir value="s"/><dir value="w"/></compass>Obvious paths: north, east, south, west.
<prompt time="1197423449">></prompt>
<dialogData id='minivitals'><skin id='manaSkin' name='manaBar' controls='mana' left='25%' top='0%' width='25%' height='100%'/><progressBar id='mana' value='100' text='mana 100%' left='25%' customText='t' top='0%' width='25%' height='100%'/></dialogData>
<prompt time="1197423450">></prompt>


Everything belows needs to be gagged except the "You put your pin in your sack."

Quote:
<right>Empty</right><clearStream id='inv' ifClosed=''/><pushStream id='inv'/>Your worn items are:
a black gem pouch
a faded black haversack crafted from a tattered skull and crossbones flag
a sturdy backpack
some black leather hand-tooled boots
a lustrous ebony spellbook case inset with silvery crystal stars
a greatsword sheath
a black leather hand-tooled highwayman's belt
an albredine crystal ring
a wide gold etched cambrinth armband
a Gorbesh catapult basket
a tag sack
a platinum kyanite gwethdesuan
a platinum jadeite gwethdesuan
a sack
a duffel bag
<popStream/>
<clearContainer id="stow"/><inv id='stow'>In the sack:</inv><inv id='stow'> a pearl pin</inv><inv id='stow'> a carving knife</inv><inv id='stow'> a jagged blue shard</inv><inv id='stow'> a tag sack</inv><inv id='stow'> a tag sack</inv><inv id='stow'> a tag sack</inv><inv id='stow'> a tag sack</inv><inv id='stow'> a tag sack</inv><inv id='stow'> a tag sack</inv><inv id='stow'> some boar bones</inv><inv id='stow'> a sapphire clasp</inv><inv id='stow'> a platinum band</inv><inv id='stow'> a moruryn stinger</inv><inv id='stow'> an inscribed snakeskin scroll</inv><inv id='stow'> an inscribed snakeskin scroll</inv><inv id='stow'> an inscribed snakeskin scroll</inv><inv id='stow'> a pewter tailband engraved with dark storm clouds surrounding a cambrinth sun</inv><inv id='stow'> an inscribed leather scroll</inv><inv id='stow'> an inscribed snakeskin scroll</inv><inv id='stow'> a fuzzy gem pouch</inv><inv id='stow'> a moruryn stinger</inv><inv id='stow'> a moruryn stinger</inv><inv id='stow'> a soft gem pouch</inv><inv id='stow'> a dotted gem pouch</inv><inv id='stow'> a piece of hhr'lav'geluhh bark</inv><inv id='stow'> a fine platinum chain</inv><inv id='stow'> a fine platinum chain</inv><inv id='stow'> a platinum pin</inv><inv id='stow'> a black gem pouch</inv><inv id='stow'> a platinum kyanite gwethdesuan</inv><inv id='stow'> a platinum kyanite gwethdesuan</inv><inv id='stow'> a jagged blue shard</inv><inv id='stow'> a jagged red shard</inv><inv id='stow'> a jagged blue shard</inv><inv id='stow'> a jagged black shard</inv><inv id='stow'> a jagged red shard</inv><inv id='stow'> a jagged red shard</inv><inv id='stow'> some kyanite stones</inv><inv id='stow'> an oak-handled burin inset with a medium star ruby tip</inv><inv id='stow'> an oak-handled burin inset with a small star ruby tip</inv><inv id='stow'> a pale black leather-bound sigilbook</inv><inv id='stow'> a solid-white leather-bound sigilbook</inv><inv id='stow'> a jadeite stone</inv><inv id='stow'> a white and blue painted vial</inv><inv id='stow'> a carving knife</inv><inv id='stow'> an oak-handled burin inset with a medium rose quartz tip</inv><inv id='stow'> a heavy wool gentlemen's cloak with a gold-buttoned mantle</inv>
You put your pin in your sack.



tags like these still get through:
Quote:

<compDef id='room desc'>Curious spires of rock, whether native to the spot or carved by some forgotten artist, form a bottleneck to the busy streams of traffic flowing up and down the roadway. Over the years, passersby have carved names, initials and colorful (and sometimes off-color) slogans on every aspect of the rocks.</compDef> You also see a high guard.

all prompts still appear as shown before.


In the bag: a large diamond carved into a slender tail band entwined with gold wire a green gem pouch a green gem pouch a green gem pouch a green gem pouch a leather bank book<inv id='stow'> an Immortal Phelim card</inv> an origami primer The Dark Figure card some feather flights a master's iron lockpick an origami-paper envelope an origami-paper envelope<inv id='stow'> an origami-paper envelope</inv> an origami-paper envelope some dragon instructions a piece of plain origami paper some braided grass a Silver Leucro anatomy chart<inv id='stow'> a mug of hot chocolate</inv> a vault book with a tooled leather cover a platinum pin bejeweled with a mosaic of colored gems some exquisite raven earrings carved in black diamond<inv id='stow'> a white canvas feedbag</inv> a glowing Everild orb a heavy greatcloak with a thick mane of clouded arzumos fur a glowing Everild orb a polished white gold ring set with a large amethyst<inv id='stow'> a crystal bracelet inlaid with precious stones</inv> a white gold necklace displaying a large amethyst pendant a serpentine platinum ring displaying a lustrous fang pearlYou pick up a large diamond carved into a slender tail band entwined with gold wire.

<openDialog id='quick-simu' location='quickBar' title='information'><dialogData id='quick-simu' clear='true'><link id='6' value='platinum' cmd='url:/dr/platinum/'/></dialogData></openDialog>




Alright... I don't even know where to begin with this stuff. Sometimes a tag will have attributes, sometimes not. <style id="" /> is a closing tag for style tags with id's. So for <style id="roomName" /> it closes on the next line for some reason. The prompt after dialogData needs to go away, so that the first prompt is the only thing on the line. I need to get the value from the progressBar tag. How do I gag stuff within tags? How would I color the part between <style id="roomDesc" /> and <style id="" />?

I set up a trigger for <right> and I can do variable = %mxp.data, but if I try putting #GAG or #SHOW in there it throws an exception, many exceptions.

But yeah for any of this stuff.... I really have no idea on to deal with it with MXP triggers. Any assistance would be welcome. Just a push in the right direction, an example for each type of these would be lovely. But anything will help.


Thanks!
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Wed Dec 12, 2007 5:15 am   Re: XML/MXP Help
 
saet wrote:
<style id="" /> is a closing tag for style tags with id's. So for <style id="roomName" /> it closes on the next line for some reason. How would I color the part between <style id="roomDesc" /> and <style id="" />?

The short answer is "with great difficulty". You should tell your MUD admins - this use doesn't follow the XML or MXP specifications (whichever this is supposed to be). The format <tag /> is for tags that don't require a closing tag, like the BR tag in HTML. Since the STYLE tag there ends in a slash, CMUD isn't looking for a closing tag, which is in line with the specification. They should change it so that <style id="roomName"> begins the style and </style> ends it. I have no idea why people insist on doing crazy stuff like this. MUDs are especially bad for it - many of them can't even use ANSI codes properly. There's a specification for a reason :(

With that said, you can probably fudge something together so that a trigger is enabled when the STYLE tag is recieved. The trigger fires on everything, doing whatever you want, and then is disabled by the "closing" STYLE tag.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net