Gaging lines which we take from buffer.

Posted by Ovvi on Thu 28 Nov 2002 09:41 AM — 4 posts, 17,399 views.

Poland #0
Hi,
I have some suggestion to gag lines. I try explain what I mean.
Example:
You see to ways: north and east.
Big happy ork, fat stupid goblin, old green goblin, Conrad,
Nicky, hard small dwarf, xxx yyy ork, xxx1 zzz
human, red head fast goblin and Roman arrvie from north.

My trigger:
^(.*) arrvie from (.*)\.$
Trigger open my script in VBasic and it starts analize text back.
Script take "human, red head fast goblin and Roman" and replay " and" to ",". After that script takes whole line before and check the last word. If last word is "." then put string "human, red head fast goblin, Roman" into array. Table [human,red head fast goblin,Roman]. But in my example last word is "zzz" and script takes whole line and add to my string: "Nicky, hard small dwarf, xxx yyy ork, xxx1 zzz human, red head fast goblin, Roman". Again the script takes all line before and try to find ".", when can't find than add to string: "Big happy ork, fat stupid goblin, old green goblin, Conrad, Nicky, hard small dwarf, xxx yyy ork, xxx1 zzz human, red head fast goblin, Roman". I the before line script finds "." and I use function 'split' to put whole string into array. Now I compare array with my database. For example: In my database name of fat stupid goblin is Gramk. I want to gag all lines and replace string:
Big happy ork, fat stupid goblin [Gramk], old green goblin, Conrad,
Nicky, hard small dwarf, xxx yyy ork, xxx1 zzz
human, red head fast goblin and Roman arrvie from north.

I know that is now impossible but my suggestion is add function to gag old lines. Now we can only read old lines by use: world.GetLineInfo().

Ovvi
ps. Sorry for my terrible English, I have hope that you understand what I mean.


Poland #1
Have you considered the following solutions?

1. Swich the MUD screen width to the maximum value,
and analyze only the line with ".. arrive from .."
replacing every description with description+name.

2. Add triggers with every description.

Pozdrawiam ;)
Poland #2
Hi,

I have about 1000 fields in my database. When I will move it into the triggers, than Mush will be worked too slow...
In my opinion easiest way will be add to the Mush function which will be gag line before.

Ovvi
Australia Forum Administrator #3
The trouble with gagging old lines is, what if they are logged? The line is logged once triggers are processed and you haven't omitted it from logging, but if you can retrospectively gag lines this would not work.