mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2013
Posts: 140
R
raycomp Offline OP
Vogon poet
OP Offline
Vogon poet
R
Joined: May 2013
Posts: 140
I have a word scramble game and would like to add a command to the portion of script below to continue to the next word if correct.

At the moment the user must again type the command !next to produce a knew word. Is it possible to add a line before the closing brackets to automatically execute the command !next

Quote

on $*:TEXT:/^[!@.]guess/Si:#: {
if $($+(%,scram.scramword.,$chan),2) {
if ($2 != %scram.origword. [ $+ [ $chan ] ]) { .msg $chan LOL that was a wild quess! Try again! }
else {
writeini Docs\Scramble.ini points $nick $iif($readini(Docs\Scramble.ini,points,$nick),$calc($readini(Docs\Scramble.ini,points,$nick) + 5),5)
.msg $chan 5Clever little you! Great $nick $+ ! 10You now have $readini(Docs\Scramble.ini,points,$nick) points.
unset $+(%,scram.*.,$chan)

}
}
}

Last edited by raycomp; 09/04/20 09:03 PM.
Joined: May 2013
Posts: 140
R
raycomp Offline OP
Vogon poet
OP Offline
Vogon poet
R
Joined: May 2013
Posts: 140
geen hulp nie? Ek neem aan daar is nie 'n oplossing nie.

Joined: Jul 2014
Posts: 34
S
Ameglian cow
Offline
Ameglian cow
S
Joined: Jul 2014
Posts: 34
Well is hard without the !next portion, which I assume is already done. What you can do is put it in an alias then simply call it from the line you are suggesting. You could also just add the code triggered when the user types !next on the line you are suggesting this would not be the optimal solution, but it would do the work.


Link Copied to Clipboard