Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on 1:TEXT:*!Start-TD*:#:{
- if (%td == on) {
- .msg $nick Game already in progress, $nick $+ .
- }
- else {
- .enable #group1
- .set -u600 %td on
- .msg $chan Truth or dare started. The game will last 10 minutes type !Truth for a truth question, !Dare for a dare, !Pass to pass your go, !End-TD to end the game, !Answer Blah Blah to answer your truth questions and !Accept to accept your dare.
- .timer 1 1 msg $chan $nick you started the game so you go first! Truth or Dare?
- $+(.timerexpire) 1 600 expire #
- .set %turn.nick $nick
- }
- }
- #Group1 off
- on 1:TEXT:!Truth*:#:{
- if ($nick == %turn.nick) && (%type == $null) {
- set %type Truth
- var %truth_or_dare $read(truth.txt)
- .msg $chan Truth for $nick : %truth_or_dare
- .writeini ToD.ini $nick Last_Truth_Or_Dare Last Truth: $+ %truth_or_dare
- .msg $chan Use !Answer <Answer> to answer! Or, use !Pass to skip your go!
- }
- else {
- if ($right(%turn.nick,1) == s) {
- .msg $nick Please wait your turn $nick $+ ! It is %turn.nick $+ ' go.
- }
- if ($right(%turn.nick,1) != s) {
- .msg $nick Please wait your turn $nick $+ ! It is %turn.nick $+ 's go.
- }
- }
- }
- on 1:TEXT:!Dare*:#:{
- if ($nick == %turn.nick) && (%type == $null) {
- set %type dare
- var %truth_or_dare $read(dare.txt)
- .msg $chan Dare for $nick : %truth_or_dare
- .writeini ToD.ini $nick Last_Truth_Or_Dare Last Dare: %truth_or_dare
- .msg $chan Use !Accept to accept your dare! Or, use !Pass to skip your go!
- }
- else {
- if ($right(%turn.nick,1) == s) {
- .msg $nick Please wait your turn $nick $+ ! It is %turn.nick $+ ' go.
- }
- if ($right(%turn.nick,1) != s) {
- .msg $nick Please wait your turn $nick $+ ! It is %turn.nick $+ 's go.
- }
- }
- }
- on *:TEXT:!Skip*:#: {
- if ($nick isop $chan) {
- if ($2 == %turn.nick) {
- .writeini ToD.ini Away_Idlers $2 $chan
- .mode $chan -v $2
- .msg $2 You've been devoiced and set to away for taking too long to respond.
- .msg $2 Please use /msg $me !Back when you are present, and I will allow you to play again! [:
- :set
- .set %turn.nick $nick($chan,$rand(1,$nick($chan,0,v)),v)
- if ($nick($chan,0,v) <= 2) {
- .timer 1 1 .msg $chan $nick($chan,1,v) was the last remaining player!
- .timer 1 2 .expire $chan
- .halt
- }
- if ($me == %turn.nick) {
- .goto set
- }
- else {
- unset %type
- .timer 1 5 msg $chan %turn.nick $+ ! Your Turn! Type !Truth for truth or !Dare for dare.
- }
- }
- }
- else {
- .msg $nick You aren't an OP, $nick $+ .
- }
- }
- on 1:TEXT:!Pass*:#:{
- if ($nick == %turn.nick) {
- .writeini ToD.ini $nick Last_Response turn was passed, too scared to play! D:
- .mode $chan -v $nick
- .timer 1 120 .mode $chan +v $nick
- %pass = $replace($read(pass.txt),(u),$nick)
- .msg $chan %pass
- .msg $chan $nick has been devoiced for two minutes and cannot play. ]:
- :setpass
- .set %turn.nick $nick($chan,$rand(1,$nick($chan,0,v)),v)
- if ($nick($chan,0,v) <= 2) {
- .timer 1 1 .msg $chan $nick($chan,1,v) was the last remaining player!
- .timer 1 2 .expire $chan
- .halt
- }
- if ($nick == %turn.nick) {
- .goto setpass
- }
- if ($me == %turn.nick) {
- .goto setpass
- }
- else {
- unset %type
- .timer 1 5 msg $chan %turn.nick $+ ! Your Turn! Type !Truth for truth or !Dare for dare.
- }
- }
- else {
- if ($right(%turn.nick,1) == s) {
- .msg $nick Please wait your turn $nick $+ ! It is %turn.nick $+ ' go.
- }
- if ($right(%turn.nick,1) != s) {
- .msg $nick Please wait your turn $nick $+ ! It is %turn.nick $+ 's go.
- }
- }
- }
- on 1:TEXT:!Answer*:#:{
- if ($nick == %turn.nick) {
- if (%type != Truth) {
- .msg $chan $nick $+ , you picked dare! Please !Accept or !Pass.
- .halt
- }
- .writeini ToD.ini $nick Last_Response Last Response: $2-
- if ($nick($chan,0,v) <= 1) {
- .timer 1 1 .msg $chan $nick($chan,1,v) was the last remaining player!
- .timer 1 2 .expire $chan
- .halt
- }
- while $istok($nick $me ,%turn.nick,32) {
- .set %turn.nick $nick($chan,$rand(1,$nick($chan,0,v)),v)
- }
- unset %type
- .timer 1 5 .msg $chan %turn.nick $+ ! Your Turn! Type !Truth for truth or !Dare for dare.
- }
- else {
- if ($right(%turn.nick,1) == s) {
- .msg $nick Please wait your turn $nick $+ ! It is %turn.nick $+ ' go.
- }
- if ($right(%turn.nick,1) != s) {
- .msg $nick Please wait your turn $nick $+ ! It is %turn.nick $+ 's go.
- }
- }
- }
- on 1:TEXT:!Accept*:#:{
- if (%type != Dare) {
- .msg $chan $nick $+ , you picked truth! Please !Answer or !Pass.
- .halt
- }
- .writeini ToD.ini $nick Last_Response dare was accepted.
- if ($nick == %turn.nick) {
- .msg $chan %turn.nick has accepted their dare! Make sure they do it! [:
- if ($nick($chan,0,v) <= 1) {
- .timer 1 1 .msg $chan $nick($chan,1,v) was the last remaining player!
- .timer 1 2 .expire $chan
- .halt
- }
- while $istok($nick $me,%turn.nick,32) {
- .set %turn.nick $nick($chan,$rand(1,$nick($chan,0,v)),v)
- }
- unset %type
- .timer 1 5 .msg $chan %turn.nick $+ ! Your Turn! Type !Truth for truth or !Dare for dare.
- }
- else {
- if ($right(%turn.nick,1) == s) {
- .msg $nick Please wait your turn $nick $+ ! It is %turn.nick $+ ' go.
- }
- if ($right(%turn.nick,1) != s) {
- .msg $nick Please wait your turn $nick $+ ! It is %turn.nick $+ 's go.
- }
- }
- }
- #group1 end
- on 1:TEXT:!End-TD*:#:{
- if (%td == $null) {
- .msg $nick No game is in progress, $nick $+ .
- }
- else {
- .expire $chan
- }
- }
- on *:TEXT:!Info*:#:{
- var %info1 $readini ToD.ini $2 Last_Truth_Or_Dare
- var %info2 $readini ToD.ini $2 Last_Response
- if (%info1 == $null) {
- .msg $nick $2 has not played yet, $nick $+ .
- }
- else {
- if ($right($2,1) == s) {
- .msg $nick $2 $+ ' %info1
- .msg $nick $2 $+ ' %info2
- }
- if ($right($2,1) != s) {
- .msg $nick $2 $+ 's %info1
- .msg $nick $2 $+ 's %info2
- }
- }
- }
- on *:TEXT:!Away:#:{
- .writeini ToD.ini Away_Idlers $nick $chan
- .msg $chan $nick is now away and can no longer be selected to play.
- .mode $chan -v $nick
- }
- on *:TEXT:!Back:?:{
- var %ab $readini ToD.ini Away_Idlers $nick
- .mode %ab +v $nick
- .msg %ab $nick is no longer away and can be selected to play.
- .remini ToD.ini Away_Idlers $nick
- }
- alias expire {
- .msg $1 The game has ended Type !Start-TD to start a new game!
- .unset %turn.nick
- .unset %td
- .unset %type
- .mv $1
- .timers off
- .disable #group1
- }
- alias mv {
- var %a $nick($1,0)
- while (%a) {
- if ($readini(ToD.ini,Away_Idlers,$nick($1,%a)) != $null) goto check
- if ($nick($1,%a) !isvoice $1) var %b %b $nick($1,%a)
- if ($numtok(%b,32) == $modespl) { mode $1 $+(+,$str(v,$modespl)) %b | var %b $null }
- :check
- dec %a
- }
- if (%b) mode $1 $+(+,$str(v,$numtok(%b,32))) %b
- }
- menu channel {
- Truths File:run truth.txt
- Dares File:run dare.txt
- Passes File:run pass.txt
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement