|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sun Dec 24, 2006 8:38 pm
Color question... |
I doubt it, but I was wondering if there was a way to highlight something on the MUD screen and have zMUD recognize the colors and convert them appropriately. It's a hassle if I want the colors to show up to have to change colors every two or three words.
Charneus |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Tue Dec 26, 2006 7:39 pm |
You could use an ANSI trigger set to go off on the ANSI control code for the colour. CMUD I know has a Line Colour option for triggers that does exactly this, but I'm not sure how zMUD's equivalent option works.
|
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Wed Dec 27, 2006 4:43 am |
Well, here's what I'm trying to do.
Jupiter's star is here!
What I want to do is be able to copy Jupiter's star with the color so I can paste it in the command line and send it. For instance, I would want this result:
say I have found Jupiter's star! -> You say: I have found Jupiter's star!
This trigger would fire for anything I copied/pasted. Like I said, I don't know if this is possible, but maybe I can get some feedback on it. And I certainly can't set up a trigger to detect ansi codes and sub the actual word, otherwise I'd end up with a very messy zMUD screen.
I hope this clears things up a little. Thanks!
Charneus |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: Wed Dec 27, 2006 8:26 am |
If you sub it with an exact copy of the text it replaces and use MXP color it doesnt mess up. The issue seems to be combining ansi color (or whatever other form #CW and #CO use) with sub. When i convertent to using mxp <color red> my screen issues went away.
You could detect the ansi color and just plug the value into the mxp syntax. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Wed Dec 27, 2006 9:06 pm |
Okay, I'm not sure what exactly you're trying to do. I think you're trying to do this, but correct me if you're wrong:
Coloured text appears on the screen.
You copy this coloured text to the clipboard.
You paste the coloured text onto the command line.
The text pasted on the command line has retained the colour.
Unfortunately, I don't think there's a way to do this. One possible way would be to have an ANSI trigger, as I explained previously, that's triggered by that particular colour. I'm not sure what you mean by it being more spammy (you only enable it when you need it; you don't set zMUD to display the ANSI codes, you just set the trigger to respond to ANSI codes). |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Thu Dec 28, 2006 5:09 am |
Actually there is a way to do this
I don't have zmud open in front of my but somewhere in the options you can set up "color syntax"
fill in the values for how you input color commands to your mud and check syntax enabled. now anytime you copy/paste something it will convert the ansi color codes to your muds color codes. |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Thu Dec 28, 2006 8:48 am |
Awesome, nexela! That worked perfectly. Now if only CMUD had that capability. Apparently there is no editor in CMUD - or at least it's buggy. And even though I do the same thing in CMUD that I did in zMUD for the color syntax, it's not working correctly. Am I missing something here?
Charneus |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Fri Dec 29, 2006 2:19 am |
Unfortunately the color syntax in cmud doesn't seem to be working. and CTRL-SHIFT-ENTER should open the editor
|
|
|
|
|
|