mIRC Homepage
Posted By: dude22072 Random choice from a set critera? - 17/05/14 11:54 PM
Like, i wanna make a !quotes command. the command would be used like "!quotes NICKNAME" and it'd read a file and chose a random quote from NICKNAME. I have no clue how to go about doing this.
Posted By: Nillen Re: Random choice from a set critera? - 18/05/14 12:01 AM
You need to check an ini file with $ini for a number with quotes that are under the section $nick and then add a random a number from 1 to max of those, using $rand. Then you gotta use $ini again to get the value from said randomed number and use that to message whatever it is you wish to message, I assume channel.

The help files will come in handy now that you know what you're looking for.
Posted By: dude22072 Re: Random choice from a set critera? - 18/05/14 12:38 AM
Thanks. that should point me in the right direction.
© mIRC Discussion Forums