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
Blerghass
Beginner


Joined: 25 Nov 2001
Posts: 26
Location: USA

PostPosted: Tue Dec 25, 2001 3:50 am   

Trigger Precedence
 
Is there any way to know which triggers will go off first when a line of text matches more than one trigger? Is there any way to set this trigger precedence?

Basically, I'm going to be concatenating a bunch of lines together, when they contain certain tags, and throwing some highlighting in there too. I don't want my other triggers to be triggering on the separate lines until I'm done concatenating and highlighting the lines.

For example:
You also see a sjatmal gwethdesuan,GSL
a wind houndGSM
,GSL
a wind houndGSM
, and a rocky forest path.

I usually highlight the word "gwethdesuan". I will also concatenate all those lines so it says:
You also see a sjatmal gwethdesuan, a wind hound, a wind hound, and a rocky forest path.

However, if the gwethdesuan highlighting trigger goes before the concatenation triggers, the highlighting of gwethdesuan will no longer be there after the concatenation. That's the problem I foresee right now if I can't set trigger precedence.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue Dec 25, 2001 8:26 am   
 
There are buttons in the settings editor to move up and down. Those set the precedence.

You might wish to click on the all clases button first.

Excuse me if that make little sense I am completely drunk right now.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Dec 25, 2001 8:38 am   
 
<None> unequivocably comes first. The first subfolder in <None> then comes next, followed by its subfolders in like manner (ie, its first subfolder followed by its subfolders). When the first subfolder in <None> is done, the second folder in <none> comes next and so on.

li'l shmoe of Dragon's Gate MUD
Reply with quote
Blerghass
Beginner


Joined: 25 Nov 2001
Posts: 26
Location: USA

PostPosted: Tue Dec 25, 2001 12:57 pm   
 
Thanks for the help. I didn't even realize that those Up/Down buttons were there.

Another question, though. I was able to move the triggers with the Up/Down buttons, but can I move the classes like that too? They are in a certain order, which I can't seem to change. I can edit class scripts and move the sub classes around that way, but is there a way to edit the script for the <None> class?

Also, why is it that sometimes the syntax checker gives me errors in class scripts when none of the elements of the class have errors? It appears to be linked to my use of comments. Is there any way to get around this while still using comments?

Another thing--why does the syntax checker recognize ; comments but not // comments?

Hoping to get everything resolved soon,
Joe

P.S. I wish I was drunk right now, too.
Reply with quote
Blerghass
Beginner


Joined: 25 Nov 2001
Posts: 26
Location: USA

PostPosted: Tue Dec 25, 2001 7:05 pm   
 
I found out a few things this morning. The syntax editor is happy as long as you don't use ; comments in the first or last line of a trigger and you don't use // comments at the start of a line. Not sure why.

Still trying to figure out how to change order of the classes that are direct subclasses of <None>. I could export the class script for <None>, but I couldn't edit it.
Reply with quote
karthic
Wanderer


Joined: 28 Aug 2001
Posts: 86
Location: USA

PostPosted: Tue Jan 01, 2002 8:47 am   
 
on a side note... how you get the "GSL?"(is it called that?
tag to show in dragonrealms?
thanks
karthic

karthic
Reply with quote
Blerghass
Beginner


Joined: 25 Nov 2001
Posts: 26
Location: USA

PostPosted: Sat Jan 05, 2002 2:54 am   
 
Oh, you just gotta type FeStArT (case-sensitive). It's not the greatest thing in the world to write triggers to deal with the GS codes, but it definitely has its advantages.
Reply with quote
Reddytedy
Apprentice


Joined: 13 Oct 2000
Posts: 114
Location: USA

PostPosted: Sat Jan 05, 2002 3:58 am   
 
Them GS tags can be handy.. one time I had all the bleeders mapped out and what each number meant severeity wise along with location of the bleeding wound.. was helping to develop a plugin that never got finished. Maybe someone has the notes..or I can do it again. And we can make a status window thing that maps out the bleeders and where they are.

Alan
Reply with quote
Reddytedy
Apprentice


Joined: 13 Oct 2000
Posts: 114
Location: USA

PostPosted: Sat Jan 05, 2002 5:29 am   
 
Also think you could share the trigger you are using to concate them lines?

Alan
Reply with quote
Blerghass
Beginner


Joined: 25 Nov 2001
Posts: 26
Location: USA

PostPosted: Sun Jan 06, 2002 1:24 pm   
 
I'm not concatenating any lines right now, I got too lazy to do that. I have a scheme for concatenation with highlighting, perhaps using some ansi colors (6.16 doesn't have #pcol, and I don't want to use MXP because of the thing with #sub and < and > characters), but while trying to implement it I was frustrated by the difficulty I was having with zmud (whether it was bugs or poor design I don't know).

Basically, you just keep gagging lines and storing the text into a string, and finally when the last line of the concatenation comes you just #sub the big string. I was working on an FSM (finite state machine) type model to do this, because there are kinda a lot of possibilities, and I wanted to use classes to do it. Seems zmud's class priority stuff is a little strange/unwieldy, so I put it off for later and settled for highlighting without concatenation.

I have a hard time putting my mind to my triggers once I have something that works well enough for me to play. You know how addictive DR is. I'm going to get that concatenation working within a week though, I hope.
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