Trying to build something out so my character will do X amount of things at a certain time (ie eat 30 pieces of bread at midnight).
I have adapted the alias found here:
https://www.gammon.com.au/forum/?id=8473
to something similar (just changed the initial repeat symbol)
Is there a way to adapt this into doing a set amount of things at a certain time like I stated initially? I figure it would be some sort of timer that's set to At this time instead of every interval, but that's as far as I've gotten. I have no idea how to produce the result I want. Any help would be fantastic!
I have adapted the alias found here:
https://www.gammon.com.au/forum/?id=8473
to something similar (just changed the initial repeat symbol)
<aliases>
<alias
name="itemrepeat"
match="^@\s*(\d+) (.*?)$"
enabled="y"
regexp="y"
send_to="12"
sequence="100"
>
<send>-- check at least 1 repeat
if %1 < 1 then
ColourNote ("white", "red", "Too few repeats specified (%1)")
return
end -- if
-- check not more than 1000 repeats
if %1 > 1000 then
ColourNote ("white", "red", "Too many repeats specified (%1)")
return
end -- if
-- execute (send to command processor) the command
for i = 1, %1 do
Execute "%2"
end -- for loop</send>
</alias>
</aliases>
Is there a way to adapt this into doing a set amount of things at a certain time like I stated initially? I figure it would be some sort of timer that's set to At this time instead of every interval, but that's as far as I've gotten. I have no idea how to produce the result I want. Any help would be fantastic!