Ok, I've been trying to make a poll.
Trigger: (*: Poll.
Enabled: Checked
Ignore Case: Checked
Label/Script: Poll
sub Poll (thename, theoutput, thewildcards)
dim Name
Name = world.gettriggerinfo (thename, 101)
world.send """Well hello there, " + Name + ". Todays poll is: Who will win the Steelers VS. Browns game?"
world.enabletrigger "Vote", TRUE
end sub
Trigger: (*: Vote: *
Ignore Case: Checked
Label/Script: Vote
sub Vote (thename, theoutput, thewildcards)
dim Name
dim Vote
dim Vote2
dim fVote
Name = world.gettriggerinfo (thename, 101)
Vote = world.gettriggerinfo (thename, 110)
Vote2 = LCASE(Vote)
fVote = RIGHT(Vote2, 9)
if fVote = "steelers." then
world.send """Your vote has been registered as the Steelers. #SA"
elseif fVote = ": browns." then
world.send """Your vote has been registered as the Browns. #SA"
else
world.send """Error: Vote did not register. Please try again."
end if
world.enabletrigger "Vote", FALSE
end sub
Now, the whole thing works fine. But I need to know how to save the persons vote into a text file and how to retrieve it. Also I was wondering if there was a way I could add them in the notepad so it would give me the total votes for each team.
Trigger: (*: Poll.
Enabled: Checked
Ignore Case: Checked
Label/Script: Poll
sub Poll (thename, theoutput, thewildcards)
dim Name
Name = world.gettriggerinfo (thename, 101)
world.send """Well hello there, " + Name + ". Todays poll is: Who will win the Steelers VS. Browns game?"
world.enabletrigger "Vote", TRUE
end sub
Trigger: (*: Vote: *
Ignore Case: Checked
Label/Script: Vote
sub Vote (thename, theoutput, thewildcards)
dim Name
dim Vote
dim Vote2
dim fVote
Name = world.gettriggerinfo (thename, 101)
Vote = world.gettriggerinfo (thename, 110)
Vote2 = LCASE(Vote)
fVote = RIGHT(Vote2, 9)
if fVote = "steelers." then
world.send """Your vote has been registered as the Steelers. #SA"
elseif fVote = ": browns." then
world.send """Your vote has been registered as the Browns. #SA"
else
world.send """Error: Vote did not register. Please try again."
end if
world.enabletrigger "Vote", FALSE
end sub
Now, the whole thing works fine. But I need to know how to save the persons vote into a text file and how to retrieve it. Also I was wondering if there was a way I could add them in the notepad so it would give me the total votes for each team.