Hey All,
was wondering if anyone could help me with this, I have managed to get the first part working just fine, but when it comes to the !yes or !no it won't respond to the person who first did !minigun or the person who they picked as !yes or !no doesn't respond.
what i am trying to do is get the player who did !minigun first to have a choice of options, not the player who they picked.
on *:TEXT:!Minigun *:#: {
if ($2 ison $chan) {
set %Minigun $2
msg $chan 10Hello4 $nick 10it looks like you are ready to kill4 $2 $+ 0! 10Do you wish to carry out this operation0? 4!10Yes or 4!10No
}
}
on *:TEXT:!Yes:#: {
if ($nick == %Minigun) {
msg $chan 4 $+ $nick 10has killed4 %Minigun $+ 0!
}
}
on *:TEXT:!No:#: {
if ($nick == %Minigun) {
msg $chan 4 $nick has put their gun down and has surrendered to %Minigun $+ 0!
}
}
Thanks for looking! :)
You set %Minigun to $2, then you check that the person saying !yes or !no is %Minigun .. So you need two different variables, one for the nick who triggered it, and one for their target: