 |
Tzlil Newbie
Joined: 14 Jul 2004 Posts: 1
|
Posted: Wed Jul 14, 2004 11:34 am
Helpfull things |
I am trying to use the Zmud client to make the game more friendly :)
First – how can I use the wait command? For example I say a spell “bless”. It last for 374 seconds. I want to know at any time how many seconds I have left till the spell will be over. (the tik timer won’t help – because I want to do it for a number of spells).
Second - How can I save the config? I use 3 windows. And every time I open the Zmud, I have to move them to the right position, to remove the comand line and the status bar from the 2 over windows. Can I save it somehow?
And last one :) - how to unify similar rows? For example:
Keren eat a bread.
Keren eat a bread.
Keren eat a bread.
Instead of it I want to see: Keren eat a bread. [x3]
Is it possible?
Thanks. |
|
|
 |
omaek193 Novice
Joined: 10 Oct 2002 Posts: 30 Location: Italy
|
Posted: Wed Jul 14, 2004 2:30 pm |
first: take a look here http://www.zuggsoft.com/zmud/timers.htm
after said that, it seems like you don't need wait commands but a countdown
#VAR BlessTime {0} {0}
#ALARM "BlessCountdown" *1 {#IF (@BlessTime<=0) {#T- BlessCountdown} {#ADD BlessTime -1}}
#TRIGGER {^You say a spell 'bless'.$} {#VAR BlessTime {374};#T+ BlessCountdown})
#TRIGGER {^You no longer are blessed.$} {#VAR BlessTime {0}})
with this (or a thing like this, with you correct patterns) you have a variable called @BlessTime that shows you the seconds of bless remaining, you can put it where do you prefer (not tested).
second: adjust one window, click on it, alt-s, save (creates a nameofthewindow.mud in your zMud directory) and repeat these steps for each window.
third: probably more simple that I can figure out.
Sorry for my english, byez. |
|
|
 |
Frahg Newbie
Joined: 02 Aug 2001 Posts: 7
|
Posted: Wed Jul 14, 2004 3:39 pm |
I think you can even make the first one easier....
#alias castBless {#ALARM "BlessCountdown" +374 {#show Bless is over!};cast 'bless'}
#alias checkTime {#SHOW %eval(%alarm(BlessCountdown) / 1000) seconds left.}
The first alias sets a timer for 374 seconds, and that timer shows you a little message about bless being over. It could recast bless or anything, but what it doesn't isn't really important, then at the same time it casts bless. This way, the timer starts exactly when you cast bless.
The next alias simply lets you check the time remaining on the timer. Since timers are done in milliseconds, you divide by 1000 to get the seconds remaining on bless.
That's it.
3 - is kinda tough. I've been thinking of ways I might do it, but I still don't have an answer.
You're gonna have some fun issues to deal with. Unless there's a function in zMud I'm unaware of (which there might be) you'll have to check each line to see if it matches the first, and if it does only THEN can you gag the second line... Not exactly sure how this would be handled.
I thought I had it for a second, but I can't seem to make text appear on the screen without zMud parsing it... so it ends up in an endless loop. Maybe I'll keep working...
Frahg |
|
|
 |
Danlo Magician

Joined: 28 Nov 2003 Posts: 313 Location: Australia
|
Posted: Thu Jul 15, 2004 11:06 pm |
For 2, you have to lock the layout of the windows. It can be found in the Layout menu, and select Lock Layout.
For #3, I think I have a solution:
#class GroupText
#TRIGGER "Group" {({@GroupTexts})$} {#gag;#var MatchedPattern {%1};#add Count 1;#T- group;#T+ GroupTwo}
#TRIGGER "Grouptwo" {*} {#var Line {%line};#gag;#if (@line = @matchedpattern) {#add count 1} {#T- GroupTwo;#T+ Group;#say @MatchedPattern ~[@count~];count=0}} "" {disable}
#class 0
The trigger GroupTwo, must be processed before the trigger Group.
The texts you want grouped, must be put as items in the variable GroupTexts. Eg: add the line, Keren eat a bread., to the GroupTexts variable. |
|
|
 |
|
|
|
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
|
|