Im trying to remember how to capture a line from the world to reset a timer.
I need to be able to match on more than one line (propbably 12 or 13) so it should be expandable . I know this is easy , a trigger can do it , I just cant remember how :(
also , how do i set the timer so that the timer sends me my tic warning 5 seconds before it tics ?
Put them all into a trigger (as regexps) with | in between them. You can also use a variable and a trigger to do it, which is easier if you need to change it frequently. Details about that can be found here: http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4603
To reset a timer, you just call ResetTimer(TimerName).
As for tics, it depends on the timing, you can use the trigger offset to give you a "five second warning" assuming you can syncronize the timer with the server. (Set the timer for 1 minute, with a 5 second offset, if the tics are one minute apart, but youll need a trigger to get it in synch when you connect (and keep it if the server lags, or whatnot)).
heh , I got up to page 35 before I discovered most of what you said :)
appreciate the help tho :)
erm , world reset timer goes to command line im assuming ?
No, it goes in a script. Or something that eventually gets to the script engine. So either a subroutine in a script file, or the send box with sendto script.
so , now the question becomes , how do I reset the timer with what ive triggered from the mud ?
ie , where do I send what ive go to ? and what would the script be ?
enabled vbscript
trigger catches "The day has begun" etc
/world.resettimer Tictimer ( where tictimer is the name i gave it ) gets sent to world
tictimer resets :)
simplicity itself no wi know how lol :D
You need to replace * with .*
You also might try using the convert to regexp function for each line (or for all of them, but then youll have to go through un-escaping the pipes(|)).
A couple of your other characters need to be escaped as well. Such as the periods, you escape it with a slash.
\. will match on "."
You can read up on Regexp syntax in teh VBScript Docs, or plenty of other places, Nick uses PCRE which is a standard form.
Edit:
If you're creating this from an alias, you can use the MakeRegularExpression function to convert things to a regexp before you append them. You don't need to worry about this I dont think, since I believe you're hard coding the trigger. But just so you know.
Hi, Im not great at programming, all I know is html and Vbasic From about... 13 years ago or so? Anyways, not asking for you guys to do the work for me, but if you could point me to the right starting points, I think this is the best place to ask what im looking for.
K, I want a 60 sec tic timer that gives me a 10 second tic warning through the method of a tell in the mud using the command "Gtell <<<-!Tic in 10 seconds!->>>"
I need the commands that reset the ticcer/sink it to the mud to be allong the lines of
"dakina closes her prayer book" but instead of dakina, I need it to work if anyone in the room closes the book, also same for the gender,
And that would be something the mud would output (I think Im using all the terms correctly at the moment)
Can you help me with how I would set this up? Where I would find how I can learn to set this up? ive set allot of things in mushclient so far and am really likeing it, espessially since I've attached sounds to actions, but this is probable the desiding facter here on figuring out not only tic timers, but also what I think are called wild cards or variables.
OK, dont know if I explained it well. lets try again.
A tick is 60 seconds, because the mud is laggy and tics can exceed 60 seconds sometimes, I need triggers to reset my tick timmer such as
"the sun lights the sky"
"closes * spellbook"
"Closes * prayer book"
"you are hungry"
"you are thirsty"
Im not sure how to put this into the timer so it resets the count to 60 seconds from one of these events occuring.
I think the way to get my 10 second warning is to have a 60 second timer with a 10 second offset command to the mud of gtell tic in 10ish seconds.
Im just not sure how?where to insert the triggers that effect the timmer. i Downloaded the arctic mud timmer made by someone or the other thats listed on this sight, its a jave script file with xmp (I think) as the file type. I currently have it active on the mud but its not working correctly, I think because I dont have it set right in the timmer file or something, but dont know java script so dont know how to add to it or correct it.
A sample of what I want to see on the mud is:
123h 123v 1x 1c news> (this is the command prompt)
You tell the group "tic in 10 seconds"
(10 seconds latter)
You close your prayer books with a content smile on your face.
tic timmer reset
(50 seconds latter)
You tell the group "Tic in 10 seconds" (and so fourth)
Ok, so I think I might get it,
I want to the tick to keep firing every 60 seconds, I do the offset 50 seconds, so it fires the gtell 50 seconds after the action that reset the timmer? Right?
Ok, now, how do I use this jscript file I have to reset the timmer, do I have to specifie in the file the timmer name, or add the file in the script section of the timmer somehow, or should a script file be compleatly independant of the timmer, and just make the timmer entirerly in the script file?
(I found a websight that teaches jscript for free so Im in the process of updating the timmer for arctic mud thats listed on the arctic part of the mushclient forum)
I want to the tick to keep firing every 60 seconds, I do the offset 50 seconds, so it fires the gtell 50 seconds after the action that reset the timmer? Right?
After checking the code the offset is subtracted, so if you have a 60-second timer, but want it to fire 50 seconds after being reset, then the offset will be 10 seconds.