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
Piko
Newbie


Joined: 28 Aug 2011
Posts: 2

PostPosted: Sun Aug 28, 2011 8:36 pm   

Assistance with making a trigger
 
I'm trying to get a trigger that will capture an entire line of text from the mud, which will not be known entirely,
and then repeat that line to another channel in the mud.

Here's ideally what I would like to see happen.

You sense your glyph has been activated by Bob at A Dense Forest! <--- output from the mud
You grouptell "your glyph has been activated by Bob at A Dense Forest!" <--- triggers me to do this.

I know the first 2 words will be "You sense" but I have no idea how to capture the rest of the line or repeat it.

Anyone who can help me I'd appreciate it greatly!

- Piko
Reply with quote
Scirkhan
Apprentice


Joined: 14 Sep 2007
Posts: 167
Location: aztx

PostPosted: Sun Aug 28, 2011 9:15 pm   
 
You sense your glyph has been activated by (*)
gtell Glpyh activated:%1


Or another way

You sense your glyph has been activated by (*) at (*)!
gtell %1 %2


Yet another way (if players or glyph activators are only one word)

You sense your glyph has been activated by (%w) at (*)!
gtell %1 %2


I hope this works.. Hopefully you can forgive my crappy details. Look at wildcards and predetermined variables.
Reply with quote
Piko
Newbie


Joined: 28 Aug 2011
Posts: 2

PostPosted: Sun Aug 28, 2011 9:29 pm   thanks
 
This was extremely helpful. Thank You very much!
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