Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
kidalphabet
Newbie


Joined: 01 Nov 2012
Posts: 2

PostPosted: 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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
kidalphabet
Newbie


Joined: 01 Nov 2012
Posts: 2

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net