 |
deathtomb Newbie
Joined: 23 Oct 2011 Posts: 2
|
Posted: Wed Feb 15, 2012 11:44 pm
Editing line. |
Hello.
Problem which I have seems to be easy. I searched google for answer with no results so...
Example line from MUD:
Bla bla bla bla bla you hit him hard and do puf puf puf.
or
Bla Bla Bla you hit him hard and do boom.
Now. I would like to erase everything before 'you hit him hard.'
Replace it with ex 'Attack! !' and leave everything what comes
after 'you hit him hard' so after procesing (cpu friendly possibly)
i end up with this:
Attack! you hit him hard (and do whatever it writes here).
What is the simpliest way to do this ? |
|
|
 |
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: Thu Feb 16, 2012 12:53 am |
#trigger {(*) you hit him hard*} {#psub {<color red>Attack!</color>} %x1}
|
|
|
 |
|
|