Where and how I can see a number of seconds before the next tick? I mean something like JMC internal ticker.
Ticker
Posted by Niko on Sat 23 Mar 2002 02:45 PM — 4 posts, 18,286 views.
It isn't built in, but you could do that with a bit of scripting. Something like a trigger to match on the 'tick' message, which remembers the current time. Then a timer that fires every second or so, subtracts the current time from the tick time, and displays the result on the status line (eg. 15 seconds to go).
See this post, it is about the same sort of thing: Timer triggers (help needed)
I wrote simple script to get the average tick time.
------------
Prompt example:
<100/100hp 100/100m 100/100s 13h>
------------
sub OnNewTick(strTriggerName, strTrigLine, arrWildCards)
dim cutTime
curTime = arrWildCards (7)
world.Note "Current time is " & curTime
end sub
------------
Trigger options:
Trigger = ^<(.*)/(.*)hp (.*)/(.*)m (.*)/(.*)s (.*)h>
Checked Options: Enabled, Ignore Case, Regular Expression
Other options by default
------------
PROBLEM:
========
I get a picture like this:
--- skip ---
<100/100hp 100/100m 100/100s 13h>
Current time is 13
<100/100hp 100/100m 100/100s 14h>
------ end of screen -----------
In other words, I can not correctly get a tick moment. :(
The string "Current time is 14" I will get only after typing any command or simply after ENTER pressing.
Please, show me my mistake..
------------
Prompt example:
<100/100hp 100/100m 100/100s 13h>
------------
sub OnNewTick(strTriggerName, strTrigLine, arrWildCards)
dim cutTime
curTime = arrWildCards (7)
world.Note "Current time is " & curTime
end sub
------------
Trigger options:
Trigger = ^<(.*)/(.*)hp (.*)/(.*)m (.*)/(.*)s (.*)h>
Checked Options: Enabled, Ignore Case, Regular Expression
Other options by default
------------
PROBLEM:
========
I get a picture like this:
--- skip ---
<100/100hp 100/100m 100/100s 13h>
Current time is 13
<100/100hp 100/100m 100/100s 14h>
------ end of screen -----------
In other words, I can not correctly get a tick moment. :(
The string "Current time is 14" I will get only after typing any command or simply after ENTER pressing.
Please, show me my mistake..
Triggers are evaluated after a newline is received. However the prompt line does not have a newline (as you type at the end of it). Thus, the trigger doesn't activate until you press <enter>.
You need to match on something else, ie. the message that gets sent when the area resets (eg. "You hear rustling sounds.").
You need to match on something else, ie. the message that gets sent when the area resets (eg. "You hear rustling sounds.").