Room Capture Variable

Posted by Alcander on Tue 13 Sep 2005 12:04 AM — 2 posts, 11,043 views.

#0
Hi All,

Is there a way that I can capture the room brief of a room when I am walking around and store it in a variable so that if I happen to kill a moster and want to report it on a channel it will allow me to use that variable? I'll give an example below:

>west
Mine Tunnel [n,e,w,d]

I want to store the information after 'west' in a variable so that if I kill a goblin I can do something like;

You killed Goblin.

race I have killed %1 at location @roominfo

Any help would be greatly appreciated.

Thanks.

Alcander
Amended on Tue 13 Sep 2005 12:07 AM by Alcander
Australia Forum Administrator #1
Your best bet would be to make a trigger that recognises room brief descriptions, preferably based on colour or something that isn't ambiguous. It might be possible to make a regular expression that matches:

<something>[ <some compass directions> ]

Could be tricky to get right.