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
Retrovirus
Wanderer


Joined: 13 Jul 2002
Posts: 51
Location: Malaysia

PostPosted: Wed Sep 25, 2002 8:44 am   

Ticker Question
 
Yo again..
I have this ticker set, a tick is 60 secs yes i have set it to ts 60 on mana increase..
Now here's my question....

Redundent -- '<some crapy thing> tick.
grouptell -- 'Tick in <X>.'

how do i set X to say the current time it is to tick?

Cameth
Saweth
Fledeth my asseth offeth
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Sep 25, 2002 10:31 am   
 
Predefined variables:
%tick returns the number of seconds on the tick timer

You might have to do a little math
%eval(60 - %timer)
or you might not. Not sure if this counts up or down.

LightBulb
Senior Member
Reply with quote
Retrovirus
Wanderer


Joined: 13 Jul 2002
Posts: 51
Location: Malaysia

PostPosted: Wed Sep 25, 2002 2:38 pm   
 
Doesn't work i've tried everything...
%w -- ' %2 tick'
#math tin (60 - %timer)
grouptell Request by : %2, Tick in : @tin.

also tried
gt Tick in @%timer, tried %timer, tried @tick, tried %tick...

Cameth
Saweth
Fledeth my asseth offeth
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Wed Sep 25, 2002 4:13 pm   
 
Your pattern looks a little weird. And to clarify, %tick is the amount of time left until the tick.

#TR {(%w) -- '* tick} {grouptell Request by: %1, Tick in: %tick~.}

Troubadour
(Win 98, Pentium III, 550 MHz)
Reply with quote
Retrovirus
Wanderer


Joined: 13 Jul 2002
Posts: 51
Location: Malaysia

PostPosted: Wed Sep 25, 2002 5:00 pm   
 
I did what you said troubador
here's result
Kitn -- ' tick'
grouptell Request by: Kitn, Tick in: %tick.

<661hp 120ma 249mv>
You grouptell: ' Request by: Kitn, Tick in: %tick.

Cameth
Saweth
Fledeth my asseth offeth
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Sep 25, 2002 6:53 pm   
 
Oops. Got it right (%tick) one time and wrong (%timer) the next.
%eval(60 - %timer%tick)

Anyway, what you want is:
#TR {(%w) -- '* tick} {grouptell -- Request by: %1, tick in: <%tick>}




LightBulb
Senior Member
Reply with quote
Retrovirus
Wanderer


Joined: 13 Jul 2002
Posts: 51
Location: Malaysia

PostPosted: Thu Sep 26, 2002 9:25 am   
 
Im afraid it doesn't work... did i mention im zmud 5.55

Quins -- ' tick'
grouptell -- Request by: Quins, tick in: %tick
<566hp 442ma 231mv>
Quins -- ' [ 1051/1060 ]hp +75 [321]ma'
<566hp 442ma 231mv>
<566hp 442ma 231mv>
You grouptell: ' -- Request by: Quins, tick in: %tick'



Cameth
Saweth
Fledeth my asseth offeth
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Sep 26, 2002 5:14 pm   
 
<%tick>
NOT %tick
The <> does make a difference, that's why it's there.

LightBulb
Senior Member
Reply with quote
Retrovirus
Wanderer


Joined: 13 Jul 2002
Posts: 51
Location: Malaysia

PostPosted: Thu Sep 26, 2002 5:25 pm   
 
I added that, that's how it comes out in mud
as %tick.....

Cameth
Saweth
Fledeth my asseth offeth
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Sep 26, 2002 5:47 pm   
 
If you can't get one thing to work try another.
#TR {(%w) -- '* tick} {#VAR temp %tick;grouptell -- Request by: %1, tick in: @temp}

If all else fails, tell your friends they'll have to track the tick themselves. *grin*

LightBulb
Senior Member
Reply with quote
Retrovirus
Wanderer


Joined: 13 Jul 2002
Posts: 51
Location: Malaysia

PostPosted: Thu Sep 26, 2002 6:15 pm   
 
Ok it DOESN'T work =)
Thanks for your help anyways.


Cameth
Saweth
Fledeth my asseth offeth
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Sep 26, 2002 8:14 pm   
 
Sorry, but this appears to be one of the differences between v5.55 and v6.16. The current version has %tick as a predefined variable, the older version doesn't (I opened my copy of 5.55 for the first time in years to check). So, unless you're willing to upgrade you'll probably have to do without it.

In choosing to use an outdated version, you should be aware that there will often be suggestions which won't work for you even though they will work fine for almost everyone else.

LightBulb
Senior Member
Reply with quote
Retrovirus
Wanderer


Joined: 13 Jul 2002
Posts: 51
Location: Malaysia

PostPosted: Fri Sep 27, 2002 7:45 am   
 
Is it possible to make an alias that makes a variable to see how further it is to tick??

Or something of that sort.
Can #alarm be of any use??

Cameth
Saweth
Fledeth my asseth offeth
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