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
jolopez
Novice


Joined: 31 May 2003
Posts: 49

PostPosted: Mon Oct 06, 2003 1:25 am   

2 questions triggers and ctrl Q
 
First question
is there a form to set priorities in the triggers? first this and after this this other.

Second question:
Why if i put control q repeatly the time geows up like this 14 15 16 17 etc ? what is the correct time the firs or the second ones?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Oct 07, 2003 12:22 am   
 
First question, you can use #PRIORITY if you want priority within your code. Beyond this, priority has little meaning in ZMud codewise. When you are working on triggers via the Settings Editor, however, you can sort triggers and settings to effect a slight form of priority. It is limited thusly:

1)all inherited settings go first (this is because the inherited settings are naturally loaded first). This means that inherited triggers will cause a seeming double-fire, the wrong code/value will be used, etc. Some types of settings are immune as they cannot be manipulated as an inherited setting (ie, variables.)

2)Classes form a top-down hierarchy, with subfolders of the parent folder (Class1) higher in the lineup than peer classes of the parent (Class2):

Class1
Class1|ClassA
Class2
Class2|ClassA

Zugg recently gave us a little OOP capability that allows us to specify particular settings, so this limitation isn't so glaring anymore.

3)Settings other than triggers work on a first-found basis. A button contained in the above Class2|ClassA class and is identical to a button in the Class1|ClassA class will never execute. ZMud searches for pattern-matches against EVERY active trigger, which allows us to simultaneously execute many different tasks on the same line. In a more limited sense than for classes, the newly-added OOP capability offsets this.
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