mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2016
Posts: 86
B
Babel fish
OP Offline
Babel fish
B
Joined: Apr 2016
Posts: 86
I have a few greeting scripts that have only one response by is there a way for it to have more than just one?? If someone were to type hello for example, it wouldn't just be the same response everytime time, just a way to have multiple responses and it choose a different one randomly everytime

Joined: Jun 2015
Posts: 84
F
Babel fish
Offline
Babel fish
F
Joined: Jun 2015
Posts: 84
You could achieve this by using a text file with a bunch of pre-made greetings.

Then just read from the text file, as long as you don't specify the line, it'll be random.

This is just my idea on that at least.

Joined: Apr 2016
Posts: 86
B
Babel fish
OP Offline
Babel fish
B
Joined: Apr 2016
Posts: 86
I understand how to write the text file but I don't know the script to make it read a text file.....help??

Joined: Oct 2015
Posts: 112
B
Vogon poet
Offline
Vogon poet
B
Joined: Oct 2015
Posts: 112
To read a random line from a text file, it's just $read(textfile.txt) .

For more info, use /help $read in mIRC.


Link Copied to Clipboard