|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4689 Location: Pensacola, FL, USA
|
Posted: Thu Feb 26, 2004 12:49 pm
SUB Issues |
Whenever i try to use it to resize text in any way. It works fine if it only appears once per block, but it seems to freak zMUD out when it happens multiple times. It seems to place the text at its original location instead where previous executions have pushed it further down the line, if not to the next line, it also has phantom repeats extending well past the block.
Here are some triggers causing these troubles:
#TRIGGER {({@SilverGryphons})} {#SUB {~<b>~<color #C0C0C0 #808000>%1~</color>~</b>}}
#TRIGGER {({@25})} {#SUB {%1 (+25)}} |
|
|
|
Darker GURU
Joined: 24 Sep 2000 Posts: 1237 Location: USA
|
Posted: Thu Feb 26, 2004 3:58 pm |
Need more info.
Which version of zMUD (7.03 is out now)?
What's in the variables @SilverGryphons and @25?
Are you trying to replace text 5 chars wide with 3 chars and it's wrong, what exactly?
Examples of text before and after the triggers would help, too. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4689 Location: Pensacola, FL, USA
|
Posted: Thu Feb 26, 2004 11:38 pm |
Using the latest 7.03
Ok the second trigger doesnt seem to be troubling me now, but the first still goes a bit wonky on me. but it seems to be only when a word or phrase fragment is highlighted to another color.
#TRIGGER {({@SilverGryphons})} {#SUB {~<b>~<color #808000 #C0C0C0>%1~</color>~</b>}}
#TR {ruby} {red}
#TR {black} {black}
#VAR SilverGryphons {a black enameled bracer with a silver gryphon set in a ruby circle} |
|
|
|
Darker GURU
Joined: 24 Sep 2000 Posts: 1237 Location: USA
|
Posted: Fri Feb 27, 2004 3:20 pm |
Uh, okay, I'm multi-perplexed. Are you doing this with #sub just to get the bold and custom color? Otherwise #highlight or #color or one of its variants would probably be a better choice.
Perplexity #2: Why use a variable in that trigger? Why not just put the text in it instead? You're giving zMUD more to do this way, unless that variable's value changes regularly.
Perplexity #3: Am I reading this wrong, or do you want to send the command "black" every time you see the word "black" from the mud?
Perplexity #4: Ditto #3, but with "ruby"/"red" If you're intending for those to do #subs, they look a wee bit incorrect.
And all of this (if you keep using the sub) assumes you're familiar with MXP and its behavior... you never mentioned it, so I ask.
Details... Details are good. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4689 Location: Pensacola, FL, USA
|
Posted: Fri Feb 27, 2004 9:22 pm |
1. I did it to bold the text
2. its a variable array, extra members were removed do to it being that item in particular messing it up
3&4. typo on my part... the command triggered should be #CW red or #CW black
and i am working to improve my knowledge of mxp |
|
|
|
Darker GURU
Joined: 24 Sep 2000 Posts: 1237 Location: USA
|
Posted: Sat Feb 28, 2004 7:31 pm |
If it's just to bold, I'd use #Hi and ignore the MXP stuff.
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4689 Location: Pensacola, FL, USA
|
Posted: Sun Feb 29, 2004 2:07 am |
I would but #HI seems to be inaptly described.
It seems to highlight the text in question and uses the bold color, i want the text it self to be bold, which makes the letters thicker.
Also #HI gets the whole line as opposed to just the fragment i want with:
#AC {{@GilverGryphons}} {#HI} |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Mar 04, 2004 11:07 pm |
Make sure your ANSI Mapping prefs have Bold mapped to Bold font (default is Highlight color).
#TR {({@SilverGryphons})} {#CW bold,$C0C0C0,$808000} |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4689 Location: Pensacola, FL, USA
|
Posted: Fri Mar 05, 2004 10:07 pm |
thanks remapping the ansi works rather well
however this trigger is still giving me trouble, it just seemed to have worked for a day or two
#TRIGGER {({@25})} {#SUB {%1 (+25)}}
#VAR 25 {golvern|veil iron|sephwir|illthorn|krodera}
With the trigger turned off i get this output:
You are wearing a gold ring, some spike-soled sturdy black leather boots with polished veil iron toes, a tattooed white bunny entangled in a web and beset upon by a giant spider, an ancient battle satchel, a slightly malleable eggsack, a cobweb patched war-torn tabard bearing a black spider on a field of red, a burnished yierka-hide duster, an etched mithglin rune, some ornate veil iron gauntlets, a black enameled bracer with a silver gryphon set in a ruby circle, a veil iron spider beard clip with tiny ruby eyes, an exquisite veil iron earring of a black widow spider descending from a thread, an intricate chain of interlocking veil iron arachnids, a furry brown spider charm, a black turban shrouded in layers of gossamer spider-webbing, a speckled teal-crested lizard, some dark veil iron plate, some veil-iron spiked bracers, a pair of veil iron chausses, a ribbed spider sack, an undulating patch of sticky cobwebs, a chain mail battle-vest, a slender steel spike carved to resemble a leaf-bladed spear in the middle of his nose, a mirrored veil iron parma, a mithglin double-heart bracelet, a nine-stranded platinum braid band, a crystal amulet, a blackened veil iron toolkit, a petrified witchwood pipe clenched between his teeth, a sturdy black leather utility belt supporting various loops and spider-embroidered red silken pouches and a dark weblike bag.
But when i turn it on you can see how the errors fire from having to parse the trigger too many times:
You are wearing a gold ring, some spike-soled sturdy black leather boots with polished veil iron (+25) toes, a tattooed white bunny entangled in a web and beset upon by a giant spider, an ancient battle satchel, a slightly malleable eggsack, a cobweb patched war-torn tabard bearing a black spider on a field of red, a burnished yierka-hide duster, an etched mithglin rune, some ornate veil iron (+25) gauntlets, a black enameled bracer with a silver gryphon set in a ruby circle, a veil iron (+25) spider beard clip with tiny ruby eyes, an exquisite veil iron (+25) earring of a black widow spider descending from a thread, an intricate chain of interlocking veil iron (+25) arachnids, a furry brown spider charm, a black turban shrouded in layers of gossamer spider-webbing, a speckled teal-crested lizard, some dark veil iron (+25) plate, some veil-iron spiked bracers, a pair of veil iron chausses, a ribbed spider sack, an undulating patch of sticky cobwebs, a chain mail battle-vest, a slender steveil iron (+25)carved to resemble a leaf-bladed spear in the middle of his nose, a mirrored veil iron parma, a mithglin double-heart bracelet, a nine-stranded platinum braid band, a crystal amulet, a blackened veveil iron (+25)oolkit, a petrified witchwood pipe clenched between his teeth, a sturdy black leather utility belt supportingveil iron (+25)loops and spider-embroidered red silken pouches and a dark weblike bag. |
|
|
|
|
|
|
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
|
|