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


Joined: 08 Feb 2002
Posts: 7
Location: Sweden

PostPosted: Fri Feb 08, 2002 4:26 pm   

window problem
 
I have 2 questions.
First i have a trigger so i get all tells and party tells in another window my problem is that it is not just the party tells how get to the window it all lines there it says party. How do i do so only party tells and mud tells comes to the window??
And the other question is: how do i do so xp comes to status window i have so hp and sp comes to that window and it changes automatic when hp changes i want xp to change auto in status window when i get more xp, how do i do???
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Feb 08, 2002 5:11 pm   
 
1. Expand the trigger phrase from "party" to "tells the party" or whatever phrase is used on your mud.
2. Make an xp variable and trigger. Add the xp variable to your status window. Use your hp/sp triggers and variables as examples.

LightBulb
All scripts untested unless otherwise noted
Reply with quote
Norak
Newbie


Joined: 08 Feb 2002
Posts: 7
Location: Sweden

PostPosted: Fri Feb 08, 2002 7:17 pm   
 
But the party tells phrase is "party" so i dont now how to fix it...
And how do i do xp variable and trigger??
Reply with quote
dacheeba
Adept


Joined: 29 Oct 2001
Posts: 250

PostPosted: Fri Feb 08, 2002 7:58 pm   
 
Try being mo specific, like give us the muds output.Like does it say:
(Party)Someone: I like to party!
or
Someone tells the party:I like to party!

Also,Im not to clear on this.Are you trying to keep make it tell the difference from 'party tells' and lines that just say 'party'?Or do you want it to capture both?

For your second question, in order to make the trigger and variable for the status window, we need to know what your prompt looks like.If its like this:
<50/100hp 50/100mana 500xp>
Then your trigger would look something like this:
#TR {^~<(*)hp (*)mana (&xps)xp~>
Then you just need to put this in your command line:
#STW {XP:@xps}
But all of that probably wont work, and we cant give you anything that will work, unless you gives us EXACTLY what the mud puts on your screen, and exactly what you want it to do
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Feb 09, 2002 4:56 am   
 
*Nod dacheeba* That's why I only gave general instructions.

If you start the phrase with ^ it will only capture lines that BEGIN with "party". And if you make it case-sensitive, you can limit it to lines that start with "Party", "PARTY", or "party" depending on which is used.

LightBulb
All scripts untested unless otherwise noted
Reply with quote
Norak
Newbie


Joined: 08 Feb 2002
Posts: 7
Location: Sweden

PostPosted: Sat Feb 09, 2002 1:20 pm   
 
ok on the first its, someone [party]: tells something.
And the second it´s, Exp: 8064900 Money: (in pocket: 590.00) (in bank: 630370.78)
can i get so i can see money to in status field??

->¤Norak¤<-
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Feb 09, 2002 5:03 pm   
 
For the first problem, change your trigger phrase to
~[party~]:
That should be distinctive enough to eliminate most other uses of the word "party".

For the second problem:
#TR {Exp: (%d) Money: ~(in pocket: (%d).(%d)~) ~(in bank: (%d).(d)~)} {#VAR xp %1;#VAR pocket1 %2;#VAR pocket2 %3;#VAR bank1 %4;#VAR bank2 %5} {} {nocr|prompt}
#STATUS {Exp: @xp -- Pocket @pocket1~.@pocket2 -- Bank @bank1~.@bank2}

Of course, this leaves out your hp and sp but I expect you already know how to include those.

LightBulb
All scripts untested unless otherwise noted
Reply with quote
Norak
Newbie


Joined: 08 Feb 2002
Posts: 7
Location: Sweden

PostPosted: Sun Feb 10, 2002 5:40 pm   
 
It´s not working.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Feb 10, 2002 5:43 pm   
 
What's not working?

LightBulb
All scripts untested unless otherwise noted
Reply with quote
Norak
Newbie


Joined: 08 Feb 2002
Posts: 7
Location: Sweden

PostPosted: Sun Feb 10, 2002 5:53 pm   
 
The trigger for exp and money...

->¤Norak¤<-
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Feb 10, 2002 7:43 pm   
 
Try this:

#TR {Exp~: (%d) Money~: ~(in pocket~: (%d)~.(%d)~) ~(in bank~: (%d)~.(d)~)} {#VAR xp %1;#VAR pocket1 %2;#VAR pocket2 %3;#VAR bank1 %4;#VAR bank2 %5} {} {nocr|prompt}

If that doesn't work, then you probably need to adjust the number of spaces between items. If the spaces vary you'll need to use the %s wildcard.

LightBulb
All scripts untested unless otherwise noted
Reply with quote
Norak
Newbie


Joined: 08 Feb 2002
Posts: 7
Location: Sweden

PostPosted: Tue Feb 12, 2002 5:27 pm   
 
I cant get the exp trigger to work...nothing happends.

->¤Norak¤<-
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Feb 12, 2002 6:44 pm   
 
#TR {Exp~: (%d) Money~: ~(in pocket~: (%d)~.(%d)~) ~(in bank~: (%d)~.(%d)~)} {#VAR xp %1;#VAR pocket1 %2;#VAR pocket2 %3;#VAR bank1 %4;#VAR bank2 %5} {} {nocr|prompt}


LightBulb
All scripts untested unless otherwise noted
Reply with quote
Norak
Newbie


Joined: 08 Feb 2002
Posts: 7
Location: Sweden

PostPosted: Sat Feb 16, 2002 2:09 am   
 
Im sorry but it´s not working, nothing happens when i type exp to see my exp and money.

->¤Norak¤<-
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Feb 16, 2002 5:01 pm   
 
I'm sorry it's not working too, but I can't see any reason it wouldn't. I'd suggest you give up on it until you have enough understanding to either fix it yourself or at least provide useful information. "it's not working" just doesn't provide any clue as to where the problem is or how to go about solving it.

By the way, this is a trigger not an alias. Typing "exp" won't do anything UNLESS it's a command on your mud.

LightBulb
All scripts untested unless otherwise noted
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