I know very little about writing script but I pulled this off of the forum where I play. Been changing stuff around all night to get it to work and nothing. Basically, I dont know if the trigger is firing off correctly. The timer doesn't get reset so I am guessing not, but once I start it I get the "TICK IN 7 SECONDS!" spam every 34 seconds until I turn it off.
Here is what my screen looks like:
<74hp 131m 124mv 9:30pm>
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
A gully dwarf walks southeast.
<74hp 131m 124mv 9:30pm>
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
<74hp 131m 124mv 10:00pm>
A gray wolf cub walks southeast.
<74hp 131m 124mv 10:00pm>
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
A gully dwarf walks in.
<74hp 131m 124mv 10:30pm>
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
<74hp 131m 124mv 11:00pm>
All of those messages are exactly 34 seconds apart, instead of resetting like they should.
Trigger said:
<triggers>
<trigger
enabled="y"
group="Timer"
keep_evaluating="y"
match="^\&lt;(.*?)hp (.*?)m (.*?)mv (.*?):(.*?)(am|pm)\&gt;$"
name="TickTimer"
regexp="y"
sequence="100"
>
<send>now = "%5"
if(now ~= GetVariable('time')) then
ResetTimer('TickTimer')
SetVariable('time', "%5")
end -- if</send>
</trigger>
</triggers>
<triggers>
<trigger
enabled="y"
group="Timer"
keep_evaluating="y"
match="^\&lt;(.*?)hp (.*?)m (.*?)mv (.*?):(.*?)(am|pm)\&gt;$"
name="TickTimer"
regexp="y"
sequence="100"
>
<send>now = "%5"
if(now ~= GetVariable('time')) then
ResetTimer('TickTimer')
SetVariable('time', "%5")
end -- if</send>
</trigger>
</triggers>
Timer said:
<timers>
<timer name="TickTimer" enabled="y" second="34.00" offset_second="0.00" send_to="12"
group="Tick" >
<send>Note("TICK IN 7 SECONDS!")
Note("TICK IN 7 SECONDS!")
Note("TICK IN 7 SECONDS!")</send>
</timer>
</timers>
<timers>
<timer name="TickTimer" enabled="y" second="34.00" offset_second="0.00" send_to="12"
group="Tick" >
<send>Note("TICK IN 7 SECONDS!")
Note("TICK IN 7 SECONDS!")
Note("TICK IN 7 SECONDS!")</send>
</timer>
</timers>
Variable said:
<variables>
<variable name="time">8:30pm</variable>
</variables>
<variables>
<variable name="time">8:30pm</variable>
</variables>
Here is what my screen looks like:
<74hp 131m 124mv 9:30pm>
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
A gully dwarf walks southeast.
<74hp 131m 124mv 9:30pm>
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
<74hp 131m 124mv 10:00pm>
A gray wolf cub walks southeast.
<74hp 131m 124mv 10:00pm>
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
A gully dwarf walks in.
<74hp 131m 124mv 10:30pm>
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
TICK IN 7 SECONDS!
<74hp 131m 124mv 11:00pm>
All of those messages are exactly 34 seconds apart, instead of resetting like they should.