|
kidalphabet Newbie
Joined: 01 Nov 2012 Posts: 2
|
Posted: Thu Nov 01, 2012 11:29 pm
Capturing lines |
Hey all,
I'm new to the CMUD scripting scene and am going through the tutorials. I just finished mapping a small area on my Nightmare Mud to test some things.
I want to capture the description that shows monsters. Do I have to use a trigger or is there a variable in mapping I can pull this info from? Or do I have to predefine it? Even better, can I simply 'look' and and write a bit of script that recognizes the monsters in the room?
Thanks for any info you can offer or pointing me to an existing thread.
- K |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Nov 02, 2012 1:12 am |
A recent thread on mapping dealing with the use of colored lines includes a discussion on #TAG triggers with examples. Without example room info (from the previous prompt to the prompt after), we can't really do much but point you to helpfiles and forum threads. Those already already easily accessed via the CMud Support menu and the Forums menu, plus there's a search feature (two, actually, but one with the site/web radio buttons was beaten into uselessness by the underlying mechanics of the Google search engine many years ago).
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
kidalphabet Newbie
Joined: 01 Nov 2012 Posts: 2
|
Posted: Fri Nov 02, 2012 4:34 am |
Thanks for the help Matt. Yeah I'm basically just going through each post I think is relevant. The search function didn't bring up what I was looking for since I'm not even sure of the name of the function I'm looking for.
Here's an example of what I'm working with:
The Merchant District continues east and west. You see a
general store is to the north and a bank to the south.
The sound of bartering merchants fills the street
There are four obvious exits: south, west, east, and north.
Four human merchants, three elves <-- I WANT THIS LINE
I want to do something along the lines of:
Foreach (@mobInRoom) {
// assign each mob a variable
}
I'm looking for the #TAG trigger now to see if that'll lead anywhere.
Thanks again. |
|
|
|
|
|