[MudWalker] Room Description
Dom Sengsouvanna
sengsod at yahoo.com
Thu Jan 29 06:31:37 PST 2009
Kevin Reid wrote:
"You want:
^ *Hp: *(\d+)\((\d+)\) +Gp: *(\d+)\((\d+)\) +Xp: *(\d+) +Quest Xp: *(\d +) +Socp: *(\d+)\((\d+)\) *$"
Thanks alot!! That seemed to do the trick.
I was also wondering if there's a specific trick to capturing a room description and announcing it other people.
For instance, if the room description is the following:
The Southern Courtyard [n,ne,s,nw,tower].
Trigger:
^(.*) * [(.*)].
I try to break it into two arguments using
Script:
@@roomvar=arg[1]
@@exits=arg[2]
Somehow, it's not capturing any of the arguments when I look for it in @@message. What am I doing wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/mudwalker/attachments/20090129/918b7db9/attachment.htm>
More information about the MudWalker
mailing list