My trigger is based on my prompt line:
trigger: <(H|T|HT)>
Regular expression
Runs this subroutine:
sub DiscardQueue (name, line, wilds)
world.DiscardQueue
IF world.getvariable ("Sleeping") = "yes" then
world.send "rest"
end if
if world.getvariable ("Sleeping") = "no" then
end if
dim count
for count = 1 to 3
world.send "emote drinks soup"
next
world.send world.getvariable ("Sleeper")
end sub
(note: I do have the variable for when I sleep, and when I wakeup change the variable "Sleeping" when appropriate)
This doesn't quite work the way I thought it should work.
I was figuring it to do the if statements, then the dim then the last world.send. But it doesn't for some reason it does the dim first, then everything afterwards.
basically i want it to check to see if I am sleeping, if yes, then rest, drink soup 3 times, then sleep again.
if no then drink soup and sleep pillow.
Of course discarding the queue first regardless of what its supposed to be.
basically trigger looped myself because of my prompt.
I needed to test if it worked while I was sleeping. It didn't. So I changed world.send "drink soup" to world.send "emote drinks soup"
I had a world.note in there as well but for the reasoning I posted it up on the forum it wasn't needed. It was for testing pourposes.
trigger: <(H|T|HT)>
Regular expression
Runs this subroutine:
sub DiscardQueue (name, line, wilds)
world.DiscardQueue
IF world.getvariable ("Sleeping") = "yes" then
world.send "rest"
end if
if world.getvariable ("Sleeping") = "no" then
end if
dim count
for count = 1 to 3
world.send "emote drinks soup"
next
world.send world.getvariable ("Sleeper")
end sub
(note: I do have the variable for when I sleep, and when I wakeup change the variable "Sleeping" when appropriate)
This doesn't quite work the way I thought it should work.
I was figuring it to do the if statements, then the dim then the last world.send. But it doesn't for some reason it does the dim first, then everything afterwards.
basically i want it to check to see if I am sleeping, if yes, then rest, drink soup 3 times, then sleep again.
if no then drink soup and sleep pillow.
Of course discarding the queue first regardless of what its supposed to be.
basically trigger looped myself because of my prompt.
I needed to test if it worked while I was sleeping. It didn't. So I changed world.send "drink soup" to world.send "emote drinks soup"
I had a world.note in there as well but for the reasoning I posted it up on the forum it wasn't needed. It was for testing pourposes.