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


Joined: 26 Dec 2002
Posts: 33
Location: USA

PostPosted: Fri Oct 07, 2005 4:11 am   

#FORALL #SAY blank line after 2
 
I noticed this in 7.05 when I first wrote a sorting script, and it's still present in 7.13, I assume it exists in 7.21.

1) I capture lines of output into a string-list variable (or parts of the output).
2) I sort the variable
3) Using #FORALL @variable, I #SAY the data (with some formatting)
4) Regardless of computer speed/etc, it will #SAY the first 2, pause exactly long enough to display my prompt from the MUD, and then #SAY the rest.

Example:
You are affected by the following:
Skill: blackrose (05:48)
Skill: sneak (00:54)
Spell: infravision (03:27:19)
Spell: combat mind (01:00:15)
Spell: giant strength (56:30)
Spell: darkness (03:13)

You are affected by 2 skills and 4 spells. <-- this is where I %sort() and begin the #FORALL
Spell: 207 min infravision
Spell: 60 min combat mind

1662hp..blahblahprompt
Spell: 56 min giant strength
Skill: 5 min blackrose
Spell: 3 min darkness
Skill: 0 min sneak

Is there a reason this happens or anything I can do to avoid it? It looks really ugly, is it just a bug in how zmud handles things? Note that there is some %ansi processing in the #SAY's, so it's not easy to whip up something to reproduce it. I can't remember right now if the pause only happens when the #FORALL is running directly after a %sort(), I'll have to test that tomorrow.
_________________
--Bremen, zMUD 7.21 on Windows 7 x64
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Oct 07, 2005 7:35 am   
 
Put the #FORALL into a #PRIORITY command.
Code:
#PRIORITY {
 #FORALL {
  #SAY {blah}
 }
}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Bremen
Novice


Joined: 26 Dec 2002
Posts: 33
Location: USA

PostPosted: Fri Oct 07, 2005 3:27 pm   
 
Perfect, thanks!
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