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


Joined: 26 Oct 2009
Posts: 7

PostPosted: Thu Jan 27, 2011 8:44 am   

Multi-Line Trigger
 
I'm sure this has been asked before, but I'm trying to make an auto-offerer for Achaea. Upon inputting the ii corpse command, to do a detailed search through your inventory for anything with "corpse" in the name, you're prompted for a "You are holding:" with things like " knight325823 the corpse of a mhun knight," spaces included. I was wondering if the trigger "You are holding:" could prompt a multi-line trigger that could record the numerical value of the corpse, for later offering. Thanks for the help in advance!
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Thu Jan 27, 2011 2:55 pm   
 
You could do it with a multistate trigger. Another way to do it is to have "You are holding:" fire a trigger which enables a class. Within that class you have another trigger to capture the "knight325823" line. This trigger does whatever you want, and then disables the class again. The class should be set to disabled on startup. You may also want another trigger in there to fire on a prompt, which also disables the class, just in case the other trigger doesn't catch anything.
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