tick timer off prompt line

Posted by EsP on Tue 05 Jul 2011 04:22 AM — 5 posts, 21,475 views.

#0
Sorry to have to ask but I'm in the dark on this stuff and couldn't hash it togeter off other posts.

prompt line loosk like
<30hp 100m 100mv 21> with the fourh number being the hour

Ideally I would like it to send a message when the hour rolls over with a warning at 20 seconds in and 25 seconds into the hour. The hour is variable, somewhere around 30 seconds.

I have it matching on
<trigger enabled="y"
keep_evaluating="y"
match= <(.*?)hp (.*?)m (.*?)mv (.*?)>
regexp="y"
send_to=World

Was trying this and other variations of in send,
if %4 ~= old_hour
old_hour = %4
DoAfterNote (30, "TICK IN 5 SECONDS!") -- 5 seconds warning
end -- if

However all it does is spam me with what I have entered in the send box.
USA #1
Change the send_to value to 12 (if using the XML serialization) or "Script" (from the dialog). Right now it looks like you're trying to send to World, which would send what's in the box as commands to the MUD.
#2
Thanks, I had had a feeling that the 12 I'd seen in other posts for similiar setups was "script" and had tried it before.

This is the error message I get when it goes there.

error number: 0
event: compile error
description: [string "Trigger: "]:2: 'then' expected near 'old_hour'
called by: immediate execution
#3
bwahaha, didn't read the error message I guess.

was missing the then and it works once added. Thanks
USA #4
Awesome, glad you got it working. :)