Discussion:
um, help
(too old to reply)
Kokoro
2003-06-24 22:32:35 UTC
Permalink
Hii,

Please can you help me.

Ive been having a problem, Ive got a few on text scripts and they are fine,
like ones that read a random line from a textfile, be it quotes or
somthing.

What I want to do though it get something that will read and display in the
channel one half of a line in a text file and then after a set amount of
time display the second half. Maybe something in the middile of the line
in the text file?

Does that make sense?

Thanks
spearman
2003-06-24 23:14:35 UTC
Permalink
find the length of string divide it by 2, split it , say 1st half , timer
the 2nd half
Post by Kokoro
Hii,
Please can you help me.
Ive been having a problem, Ive got a few on text scripts and they are fine,
like ones that read a random line from a textfile, be it quotes or
somthing.
What I want to do though it get something that will read and display in the
channel one half of a line in a text file and then after a set amount of
time display the second half. Maybe something in the middile of the line
in the text file?
Does that make sense?
Thanks
Zoolook
2003-07-19 14:43:28 UTC
Permalink
Reading the original post, I am going to assume you are looking for a way to
(for example) ask a joke, pause, then deliver the punchline.

I would use a character in between the two portions on one line(or maybe
even the question mark), such as
"Why did the punk rocker cross the road?Because he was stapled to the
chicken"

Then use (i cant remember the actual mIRC command) the command to find a "?"
in the string to work out the LEFT and RIGHT portions of the line.

Then say/msg/etc... the left portion and set a timer to say/msg the right
portion afterwards...

I would be able to post a working script for you to type in, but I'm on my
sisters boyfs laptop at moment, and they aint installed mIRC yet :o(
Grizz
2003-08-03 07:42:34 UTC
Permalink
Post by Zoolook
Reading the original post, I am going to assume you are looking for a way to
(for example) ask a joke, pause, then deliver the punchline.
I would use a character in between the two portions on one line(or maybe
even the question mark), such as
"Why did the punk rocker cross the road?Because he was stapled to the
chicken"
Then use (i cant remember the actual mIRC command) the command to find a "?"
in the string to work out the LEFT and RIGHT portions of the line.
Then say/msg/etc... the left portion and set a timer to say/msg the right
portion afterwards...
I would be able to post a working script for you to type in, but I'm on my
sisters boyfs laptop at moment, and they aint installed mIRC yet :o(
The command would be "goto ?" w/out the quotes, i think. hmmm.. why
don't you just split it into 2 lines?
Zoolook
2003-08-25 10:22:31 UTC
Permalink
why don't you just split it into 2 lines?
Habbit I suppose... it might not be as readable, but if I wanted to take out
a particularly crap joke... I find it easier to delete 1 line instead of
finding 2 associated lines.

And I havn't used GOTO yet either, so I dont know how to implement that.
Continue reading on narkive:
Loading...