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.
|