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


Joined: 24 Jul 2002
Posts: 18
Location: Denmark

PostPosted: Sun Jul 25, 2004 9:18 am   

Capture multi linies and post them in pop windows for 10 sec
 
Hey and thanks for a good new forum..

i would like a trigger set that shows in a pop windows what my score is and what the score of the one above and under me has, this window should pop up on all my zmud screens,
this is what it should look at each 10 mins.
to look at it, i use :

read 1
This is what shows when you read 1 :

Player of the Month - July 2004 (127 competitors)
1. Ripped ( 878519 points)
2. Galihad ( 855427 points)
3. Ryder ( 808581 points)
4. Lorlan ( 731892 points)
5. Leia ( 574535 points)
6. Zharr ( 518501 points)
7. Lanlin ( 502384 points)
8. Galen ( 419470 points)
9. Tyrial ( 390518 points)
10. Timothy ( 378132 points)
Current score: -220 points.

This should capture the name Zharr and the name above and under that name.
since it's Zharrs score thats importen.

if this should be importan this is my prompt : 419mh/230mm/83me/230m/78e/419h>
but i quess the capture can end with the current score..

hope someone can help me with this...

Thank you
_________________
Drystin
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Jul 25, 2004 10:00 pm   Re: Capture multi linies and post them in pop windows for 10
 
#TR POM {Player of the Month -} {#VAR POMrank {};#VAR POMscore {};#VAR POMz 0}
#COND {(%d). (%w) * (%d) points} {#ADDK POMrank {%1} {%2};#ADDK POMscore {%1} {%3};#IF (%2 = Zharr) {#VAR POMz %1}} {LoopPat|Param=10}
#TR {Current score: %n points.} {
#STATE POM 0
#IF (@POMz) {
#MESS {%if( @POMz> 1, %eval( @POMz - 1). %db( @POMrank, %eval( @POMz - 1)) %db( @POMscore, %eval( @POMz - 1))~,) @POMz. %db( @POMrank, @POMz) %db( @POMscore, @POMz)%if( @POMz < 10, ~, %eval( @POMz + 1). %db( @POMrank, %eval( @POMz + 1)) %db( @POMscore, %eval( @POMz + 1)))}
} {
#MESS {Not in top ten}
}
}

Not very pretty, but it's what you asked for. The status line or status window would probably be more suitable than the message window, but they won't go away in 10 seconds.
_________________
LightBulb
Senior member

Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious.
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