Hi, Im trying to create a voting system that opens voting for 60 seconds, closes voting, and then posts the result to that vote. I thought I could do this with variables. EG (On Text !vote, SET %varVOTE On, after 60 seconds, SET %varVOTE off, post result to %chan).

Here is what I have so far:

on 1:TEXT:!VoteDS:#: {
if ($nick isop #) {
if ((%floodVOTING) || ($($+(%,floodVOTING.,$NICK),2))) { RETURN }
SET -u60 %floodVOTING On
/hmake Voting 6
/hadd -s Voting VoteA 0
/hadd -s Voting VoteB 0
/hadd -s Voting VoteC 0
/hadd -s Voting VoteD 0
msg $chan Vote has been activated!
}
}

on 1:TEXT:!VoteA:#: {
if ((%floodVote) || ($($+(%,floodVote.,$NICK),2))) { RETURN }
/hinc -s Voting VoteA 1
set -u60 %floodVote. $+ $nick On
msg $chan $+($nick) Voted A
}

on 1:TEXT:!VoteB:#: {
if ((%floodVote) || ($($+(%,floodVote.,$NICK),2))) { RETURN }
/hinc -s Voting VoteB 1
set -u60 %floodVote. $+ $nick On
msg $chan $+($nick) Voted B
}

on 1:TEXT:!VoteC:#: {
if ((%floodVote) || ($($+(%,floodVote.,$NICK),2))) { RETURN }
/hinc -s Voting VoteC 1
set -u60 %floodVote. $+ $nick On
msg $chan $+($nick) Voted C
}

on 1:TEXT:!VoteD:#: {
if ((%floodVote) || ($($+(%,floodVote.,$NICK),2))) { RETURN }
/hinc -s Voting VoteD 1
set -u60 %floodVote. $+ $nick On
msg $chan $+($nick) Voted D
}

Hope you can help smile