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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Thunderbuster
Novice


Joined: 07 Nov 2001
Posts: 45
Location: USA

PostPosted: Thu Oct 31, 2002 12:20 am   

Can I capture 3 lines that follow a trigger?
 
I want to capture random info that follows the Room Name, as in the Room Discription, how can I get this to happen?

Example:

A Run Down Shop
This shop is way past its prime. There is more than its share of dust that covers merchandise from top to bottom. An articulate eye would warn the buyer that this shop isn't frequently visited.

So if I #trigger {A Run Down Shop}, how can I assign the next 3 lines to a varable or multiple variables?

Thanks for any assistance.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Oct 31, 2002 12:59 am   
 
quote:

I want to capture random info that follows the Room Name, as in the Room Discription, how can I get this to happen?

Example:

A Run Down Shop
This shop is way past its prime. There is more than its share of dust that covers merchandise from top to bottom. An articulate eye would warn the buyer that this shop isn't frequently visited.

So if I #trigger {A Run Down Shop}, how can I assign the next 3 lines to a varable or multiple variables?

Thanks for any assistance.



#trigger (^Room name$(%*)$} {#variable Var1 "%1";#variable CountLines = 1;#T+ tTwoLines}

#trigger "tTwoLines" {^(%*)$} {#if (@Countlines < 2) {#variable Var@Countlines "%1";#add Countlines 1} {#T- tTwoLines}}

That can be improved, and I think I'm misinterpreting your use of the word "lines", but it's a solution to what you asked.

li'l shmoe of Dragon's Gate MUD
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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