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
Csontikka
Newbie


Joined: 04 Nov 2003
Posts: 3
Location: Hungary

PostPosted: Tue Nov 04, 2003 8:39 pm   

I dont want to see the mud's prompt line
 
My mud send a prompt:
BEGINPROMPT HP 585 HPMAX 585 ST 304 STMAX 313 MP 292 MPMAX 292 TP 1148K TPMEG 2627k PENZ 159K NEV fila HK 100 ENDPROMPT

this is my prompt line

i want to get the valuables into variables (with trigger i can do it)
my question is:
How can i hide this line from the window? so i dont want to see this window but i wan to get the valuables
Reply with quote
Talahaski
Enchanter


Joined: 10 Oct 2000
Posts: 656
Location: USA

PostPosted: Tue Nov 04, 2003 9:51 pm   
 
add #gag into your trigger at the end after getting all the variables
Reply with quote
Tygerhart
Novice


Joined: 04 Oct 2001
Posts: 43
Location: Canada

PostPosted: Tue Nov 04, 2003 10:01 pm   
 
Here's what I use for something similar....

HP:(%d)/(%d) Mana:(%d)/(%d) Move:(%d)/(%d) XP:(%d)/(%d) Gold:(%d)

#SUB %null
#VAR HpVar %1
#VAR HpMaxVar %2
#VAR ManaVar %3
#VAR ManaMaxVar %4
#VAR XpCuVar %7
#VAR Xp2Var %8
#MATH XpTotVar (%7+%8)

It has the added benefit of not gagging anything that you or your MUD might output after your prompt.

Tygerhart
Reply with quote
Csontikka
Newbie


Joined: 04 Nov 2003
Posts: 3
Location: Hungary

PostPosted: Tue Nov 04, 2003 10:27 pm   
 
it works!

Thanx a lot!

Csontikka
Reply with quote
Csontikka
Newbie


Joined: 04 Nov 2003
Posts: 3
Location: Hungary

PostPosted: Tue Nov 04, 2003 10:27 pm   
 
it works!

Thanx a lot!

Csontikka
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