you can always have a delay variable at the start of the script (or in an .ini, whatever you prefer), and do something like:
;; set delay between lines being sent:
var %delay 0
;; --- bunch-o-code goes here --
msg # blargh1
timer 1 %delay msg # blargh1
timer 1 $calc(%delay + 1) msg # blargh1
timer 1 $calc(%delay + 2) msg # blargh1
Bit rough maybe, but it probably works. Tastes differ. I prefer to keep everything on one line generally, but it depends on the case.
Actually knoeki, speed aside, WorldDMT's suggestion of using $exists() or $isfile() is recommended, because you want to make sure the file the script references to is there. If not, you may get an error. That's why people make checks to prevent errors from happening.
That's what the $findfile() is for.. again.. I must have had some reason to use that over $file() (or $isfile() or $exists() for that matter), but I really don't know why I didn't use it. May or may not have to do with the fact that I ripped this from a larger script I wrote.
what about $exists or $isfile
could have done that, I'm sure I had a reason not to do so.and you can replace == $null by adding "!" before the identifer
Not my style, sorry.and remove the "()" around the condition it will make the code slower
I really doubt it matters much, and if it does, then stop using the dusty old 486 in your mums basement as your PC (:
I prefer my code to be readable over "fast", especially when there's no real significant speed gain... 1ms more or less is not going to kill you with something trivial as this.