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


Joined: 01 Dec 2000
Posts: 11

PostPosted: Fri May 10, 2013 3:29 pm   

#SLOW slowwalk triggers will not #PAUSE
 
#TRIGGER {$Three (%w) Miners and (%w) Miner are here.} {#PAUSE;#VAR mons2kill 4}

Now it populates the mons2kill variable... so I know the trigger is firing and working. but it does not issue the #PAUSE command.

#TRIGGER {Giant Undead Rat and Two Skeletons are here.} {#VAR undead2kill 3;#pause}

its the same with this trigger...

Any thoughts? advice?
Reply with quote
Galakoth
Beginner


Joined: 01 Dec 2000
Posts: 11

PostPosted: Fri May 10, 2013 10:56 pm   
 
I think I figured out what was causing it to not fire... the map tool was open. Once I closed it, then the #PAUSE command started being issued.

I ran into another problem tho...
#TRIGGER {Slow walking paused} {#IF (@mons2kill=4) {eeb} {kk}}

It only ever triggers the KK command even if the variable is true.
Reply with quote
shalimar
GURU


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

PostPosted: Sat May 11, 2013 1:23 am   
 
sounds like the the variable vaule is not getting updated...
do you have another trigger entering the #PAUSE command with a higher priority than this trigger?
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat May 11, 2013 3:25 am   
 
There's no priority system in ZMud. Even though triggers do follow the same scoping rules as every other setting, triggers are the only setting type that can execute simultaneously. As such, trigger order becomes dependent on how efficient 1)the pattern can be failed and 2)the code it runs can be executed.
_________________
EDIT: I didn't like my old signature
Reply with quote
shalimar
GURU


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

PostPosted: Sat May 11, 2013 7:56 am   
 
I could have sworn triggers did have a priority number... or some means or sorting them so one will fire 'first' even if it was a kluge
_________________
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 » 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