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
chris123zugg
Apprentice


Joined: 23 Aug 2013
Posts: 126

PostPosted: Thu Jun 21, 2018 8:23 pm   

Trigger priority
 
I was curious about re-ordering trigger priority and if it actually matters that much in the grand scheme of things as far as in the miliseconds it all fires in under 1 second.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 3778
Location: Pensacola, FL, USA

PostPosted: Fri Jun 22, 2018 2:00 am   
 
Trigger priority does matter in select situations.
Especially if the stop further processing option is checked.
Unless two triggers are firing off the same line from the MUD, and it is causing you issues, I wouldn't worry about it.
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
Reply with quote
chris123zugg
Apprentice


Joined: 23 Aug 2013
Posts: 126

PostPosted: Fri Jun 22, 2018 5:13 pm   
 
ok, i appreciate the help! i don't have many active function triggers and those are already in the top 100 as far as priority.
I was just making sure that having 100k+ triggers would affect the system overall and make it less functional if i didnt try and make them all rated from 1 as most important and to last importance.
I think i've asked this before, but is there a way to make it automatically switch all priorities?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 3778
Location: Pensacola, FL, USA

PostPosted: Fri Jun 22, 2018 5:35 pm   
 
I would be impressed to see any setup with that many triggers.
Theoretically, no, it should not matter how many triggers you have.

I believe priority can only be set from the GUI, unless that setting has an ID.
#HELP %priority
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
Reply with quote
chris123zugg
Apprentice


Joined: 23 Aug 2013
Posts: 126

PostPosted: Sat Jun 23, 2018 12:03 pm   
 
sorry i mistatedm, i have over 3000 triggers, 90% of which are gags, the trigger priority assigns multiples of 10 or 100 i cant remmeber which actually lol. so the trigger priority is up to 140k
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 3778
Location: Pensacola, FL, USA

PostPosted: Sat Jun 23, 2018 1:37 pm   
 
Well, you could do the stringlist trick with your gags too yanno. Idea
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
Reply with quote
chris123zugg
Apprentice


Joined: 23 Aug 2013
Posts: 126

PostPosted: Sat Jun 23, 2018 2:21 pm   
 
hrrrm, i'm a bit of a noob to comprehend what that would entail :P
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 3778
Location: Pensacola, FL, USA

PostPosted: Sun Jun 24, 2018 12:54 am   
 
Mainly just putting all the static patterns (those without wildcards) into a stringList.
Then all you need is:

#TR {{@gagList}} {#GAG}

Along the same lines... though not necessarily for this example:
You can also go the capture to another window and gag method.

#EVENT onCombat {#CAPTURE Combat;#GAG}

Then instead of putting #GAG in the trigger, you could use:

#RAISE onCombat

#EVENTs are a lot like #ALIASes, only without a potential command sent to the game if the setting is not defined.
This could reduce a lot of clutter in the main window, while still allowing you to keep track of certain activites.
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
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