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


Joined: 22 Nov 2001
Posts: 48
Location: Italy

PostPosted: Tue Mar 05, 2002 7:05 pm   

lagged trigger
 
I made a trigger not complex, but as it
starts the mouse cursor freeze lagging the
execution. Is there a way to see every line of code that zmud generates from a trigger.
I think that my trigger runs a hard code
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Mar 05, 2002 8:06 pm   
 
zMUD doesn't generate any code from the lines of a trigger. It just reads it line, interprets it, and executes it.

Could you post your trigger for all to see?

Kjata
Reply with quote
zeiuszeppo
Novice


Joined: 22 Nov 2001
Posts: 48
Location: Italy

PostPosted: Tue Mar 05, 2002 8:22 pm   
 
pattern: ^%s(%w)%s(%*)%sHP: (%d)~% MANA
value:
#MATH NumberPG @NumberoPG+1
#VAR PG@NumberoPG %1
#IF (@NumberPG=1) {#VAR Leader %1}
#IF (%3<@WoundedQ) {
#MATH WoundedQ %3
#VAR Wounded%1
}


The code freeze the zmud for a while if
zmud must executes this code a lot of times
(tipically 5-6 at the same time, because
I receive from the mud 5-6 string one after
another that matches the pattern)
this is the accused code (i suppose!)
I'm sure the freezing is caused in this
pattern, but not sure for the code!
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