[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Tips and tricks
. . -> [Subject]  Tracking Time?

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Tracking Time?
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Sat 12 Nov 2011 09:58 PM (UTC)  quote  ]
Message
The time you get can be stored in a global (Lua) variable. This can be consulted later on by a different trigger. Then by subtracting one from the other you know how much time elapsed.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by TheExile   (12 posts)  [Biography] bio
Date Sat 12 Nov 2011 07:39 PM (UTC)  quote  ]
Message
Trying to make a dps tracker of sorts.

When I initially made this post I was doing it completely differently, because of a problem I encountered (it was tracking MOB damage) the only way I could solve it was to make 7+ triggers to activate (basically every time I did damage) the the one I wanted to time (the one that recorded damage) then I had to make it so that trigger deactivated immediately after it recorded damage.

Because of that I don't know how I can track time anymore but that might just be because of my inexperience.
[Go to top] top

Posted by Fiendish   USA  (848 posts)  [Biography] bio   Global Moderator
Date Sat 12 Nov 2011 03:36 PM (UTC)  quote  ]
Message
Quote:
but the way I'm doing this I can't use it.

Why?

http://aardwolfclientpackage.googlecode.com/
[Go to top] top

Posted by TheExile   (12 posts)  [Biography] bio
Date Sat 12 Nov 2011 03:34 PM (UTC)  quote  ]
Message
Damn, that's exactly what I want but the way I'm doing this I can't use it.

Hmm... I'll play around with it a little maybe I can change something.

Thanks!
[Go to top] top

Posted by Fiendish   USA  (848 posts)  [Biography] bio   Global Moderator
Date Wed 09 Nov 2011 07:23 PM (UTC)  quote  ]

Amended on Wed 09 Nov 2011 07:25 PM (UTC) by Fiendish

Message
http://mushclient.com/scripts/doc.php?lua=utils.timer

http://aardwolfclientpackage.googlecode.com/
[Go to top] top

Posted by TheExile   (12 posts)  [Biography] bio
Date Wed 09 Nov 2011 02:52 PM (UTC)  quote  ]
Message
I haven't been able to find anything on this, maybe I'm not looking hard enough.

I'm wanting to track the time between a trigger activating and turning off and the only way I know how to do it is to use variables to track the lines in between it activating and disabling but I don't think that would be very accurate.

So I was wondering if there is a script function maybe that will accurately keep track of time.

[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


1,379 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]