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


Joined: 10 Jan 2007
Posts: 1
Location: Sandpoint Idaho

PostPosted: Wed Aug 12, 2009 9:56 pm   

Parameters
 
Hate to be a pain but its been a while and i'm having a real hard time re-figuring some stuff out that I knew before.

I'm trying to do this inside triggers, mostly, with zMud, and REGEX synax is fine with me. I think thats why I can't remember, I think I was using REGEX before but I forgot most of it.

Anyway, I could've sworn using %-5 and %5- and something like %5-8 worked, but apparently not. Is there some way to specify everything up to parameter 5, everything after parameter 5, and paremeters 5 through 8?

Also I've been testing triggers using #gag and #echo %line (along with #say, etc) just to make sure my triggers are firing, and i've already run into the problem that the last line isn't necessarily the same line that made my trigger fire. Is there something better for this?


And anyway I think the help file is really horrendous. But then after a week or so I haven't found any web pages or anything that are doing it better. You'd think someone would make one. I always have lots of ideas and some time (not alot of time) if anyone has or is working on a better reference for zMud.


Last edited by Rieand on Fri Aug 14, 2009 3:08 am; edited 1 time in total
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Aug 13, 2009 5:22 am   
 
Quote:

Anyway, I could've sworn using %-5 and %5- and something like %5-8 worked, but apparently not. Is there some way to specify everything up to parameter 5, everything after parameter 5, and paremeters 5 through 8?


Nope. The trigger parser has no need for that silliness. You are thinking of aliases.

Quote:

Also I've been testing triggers using #gag and #echo %line (along with #say, etc) just to make sure my triggers are firing, and i've already run into the problem that the last line isn't necessarily the same line that made my trigger fire. Is there something better for this?


Use %1...%99 instead of %line. Alternatively, upgrade to CMud.
_________________
EDIT: I didn't like my old signature
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