I think what I'm trying to do is simple: I want a trigger to create a timer. It can't be a "do after special" deal, because if it fails, I want to try again.
Something like this (in alias form):
I type: fart Bob
It creates a timer called FartBob if possible. I want it to have a unique name so it can be deleted later...
After 5 seconds it sends to world "fart Bob"
If successful ("you fart on bob!"), I can have a trigger "deletetimer fartbob" delete it.
Otherwise ("You don't see bob here..."), it will try again in another 5 seconds.
I've tried the world.addtimer function, but that seems like it will fire at a certain time of day, not at a certain interval.
I suppose it would be easier to make a "only fire once" timer that would re-create itself on the failed message somehow, but I haven't seen anything like that in the help files either.
It isn't THAT important that I fart on dear Bob, so if this is going to be overly complicated, just let me know and I'll drop it. I'm sure people have better things to do with their time. (And in case you're wondering, the practical application of this is to be able to cast spells on a target when they are in another room so they'll be cast when I see them again. I don't go around farting!)
Something like this (in alias form):
I type: fart Bob
It creates a timer called FartBob if possible. I want it to have a unique name so it can be deleted later...
After 5 seconds it sends to world "fart Bob"
If successful ("you fart on bob!"), I can have a trigger "deletetimer fartbob" delete it.
Otherwise ("You don't see bob here..."), it will try again in another 5 seconds.
I've tried the world.addtimer function, but that seems like it will fire at a certain time of day, not at a certain interval.
I suppose it would be easier to make a "only fire once" timer that would re-create itself on the failed message somehow, but I haven't seen anything like that in the help files either.
It isn't THAT important that I fart on dear Bob, so if this is going to be overly complicated, just let me know and I'll drop it. I'm sure people have better things to do with their time. (And in case you're wondering, the practical application of this is to be able to cast spells on a target when they are in another room so they'll be cast when I see them again. I don't go around farting!)