Shorlen2006-02-06 10:20:29
Is it possible to have an 'inline echo' such that I can add to a line as it is recieved?
In other words, when I get
The Command sphere.
A fighting ring rises up from the ground. An obsidian eye sigil is here. A sigil
in the shape of a small, rectangular monolith is on the ground. Lying flat on
the ground is a key-shaped sigil. Crackling with energy, the command chair rises
up from the floor.
You see a single exit leading south (closed door).
3149h, 4535m, 4766e, 10p, 14645en, 21575w exk-
I would like it to display:
The Command sphere.
A fighting ring rises up from the ground. An obsidian eye sigil is here. A sigil
in the shape of a small, rectangular monolith is on the ground. Lying flat on
the ground is a key-shaped sigil. Crackling with energy, the command chair rises
up from the floor.
You see a single exit leading south (closed door).
( 0 by 0 )
3149h, 4535m, 4766e, 10p, 14645en, 21575w exk-
if I am at coords 0,0 and I have just taken 150 damage.
I can add such to the end of my prompt, but I was hoping to put it on the ship's prompt so my info that appears after my prompt doesn't interfere.
In other words, when I get
The Command sphere.
A fighting ring rises up from the ground. An obsidian eye sigil is here. A sigil
in the shape of a small, rectangular monolith is on the ground. Lying flat on
the ground is a key-shaped sigil. Crackling with energy, the command chair rises
up from the floor.
You see a single exit leading south (closed door).
3149h, 4535m, 4766e, 10p, 14645en, 21575w exk-
I would like it to display:
The Command sphere.
A fighting ring rises up from the ground. An obsidian eye sigil is here. A sigil
in the shape of a small, rectangular monolith is on the ground. Lying flat on
the ground is a key-shaped sigil. Crackling with energy, the command chair rises
up from the floor.
You see a single exit leading south (closed door).
( 0 by 0 )
3149h, 4535m, 4766e, 10p, 14645en, 21575w exk-
if I am at coords 0,0 and I have just taken 150 damage.
I can add such to the end of my prompt, but I was hoping to put it on the ship's prompt so my info that appears after my prompt doesn't interfere.
Unknown2006-02-06 12:04:33
Capture the text on the line, and then #SUB it with the additional text tacked onto the end. That should ensure that your added text stays on the same line. If you just #ECHO it, you will most likely see it a couple lines later.
Shorlen2006-02-06 12:38:41
QUOTE(Zarquan @ Feb 6 2006, 07:04 AM) 254753
Capture the text on the line, and then #SUB it with the additional text tacked onto the end. That should ensure that your added text stays on the same line. If you just #ECHO it, you will most likely see it a couple lines later.
Meh, but it won't be coloured based on how damaged I am then, unless I code all that in manually, which is a bit much Ah well, I'll just put it either before my prompt or in a seperate window. Hmm... navigational window... I could do that
Unknown2006-02-06 17:55:45
You can include ANSI color codes in your subbed text to change the colors.
Unknown2006-02-07 08:41:44
Actually, for something like this I'd rather go with #PSUB, which allows partial replacements. That way the colors in the unmodified part of the line stay the same.
I use it to add a few extra balance markers to my normal prompt, without messing up the health status coloring. Haven't had time to do any nifty aethership scripting yet. (rotten examns )
Anyway, check out the zMud help on #PSUB, if there's any questions just drop Lommy a message or send a PM here.
I use it to add a few extra balance markers to my normal prompt, without messing up the health status coloring. Haven't had time to do any nifty aethership scripting yet. (rotten examns )
Anyway, check out the zMud help on #PSUB, if there's any questions just drop Lommy a message or send a PM here.