Truth or dare game

By Cobra_Strike on Oct 29, 2006

This is my first game just past this into your remotes and create one text document in your bots folder called truth.txt and add your truth questions there, and one text document called dare.txt to add your dares to lastly make a document called pass to add your taunts to for if someone passes there go just remember to have it say someones name you need to type (u) instead of $nick...
For e.g Aww Come on (u) its only a game
would return
Aww come on Cobra_Strike its only a game...

once started the game will last 10 minutes type !start-td to start the game, !Truth for a truth question, !dare for a dare, !pass to pass your go, !end-td to end the game, after you complete your go type !turn for the next victim

Hope you enjoy it =D

#################################
# Truth or Dare By Cobra_Strike #
#################################
on 1:TEXT:*!start-td*:#:{ 
  enable #group1 
  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, after you complete your go type !turn <nick> for the next victim, I hope you enjoy... Good luck you might just need it 
  .timer 1 2  msg $chan $nick you started the game so its your go first 
  $+(.timerexpire) 1 600 expire # 
  set %turn.nick $nick 
} 
#Group1 off
on 1:TEXT:!truth*:#:{ 
  if ($nick == %turn.nick) msg $chan Truth for $nick : $read(Truth.txt) 
  else notice $nick Please wait Your Turn it is %turn.nick 's go. 
} 
on 1:TEXT:!dare*:#:{ 
  if ($nick == %turn.nick) msg $chan Dare for $nick : $read(dare.txt) 
  else notice $nick Please wait Your Turn it is %turn.nick 's go. 
}
on 1:TEXT:!pass*:#:{ 
  %pass = $replace($read(pass.txt),(u),$nick)
  msg $chan %pass
  :set 
  set %turn.nick $nick(#,$r(1,$nick(#,0))) 
  if ( $nick == %turn.nick ) goto set 
  .timer 1 2 msg $chan %turn.nick Your Turn! Type !truth for truth or !dare for dare. 
} 
on 1:TEXT:!turn*:#:{ 
  if ($2 ison $chan) { 
    msg $chan $2 Your Turn! Type !truth for truth or !dare for dare. 
    set %turn.nick $2 
  } 
  else { 
    msg $chan $nick $2 is not on $chan - Choose another nick. 
  } 
} 
#group1 end 
on 1:TEXT:*!end-td*:#:{ 
  .disable #group1 
  unset %turn.nick $2 
  msg $chan awww whats up to spicy for ya 
  .timer 1 2 msg $chan game is now over requested by $nick 
  $+(.timerexpire) off 
} 
alias expire { 
  .disable #group1 
  msg $1 Time up! The game has ended Type !start-td to start a new game 
  unset %turn.nick $2 
}

Comments

Sign in to comment.
RusselB   -  Oct 24, 2010

You have to make two text files. Truth.txt and dare.txt
Since mIRC now uses the user directory for the base location for accessing files, I can't tell you the exact directory name where you need to put those files.
I can, however, tell you how you can determine where those files have to go.
You can determine that by opening mIRC, then typing in

//echo -a $qt($mircdir)

This will display to you the exact and full directory where the two text files have to go.

BTW: This information is posted at the very beginning of the Description by the author.

 Respond  
CyNaRia   -  Oct 24, 2010

can someone please tell me where to put the txt in... i loaded the game its working fine but im still not sure how to get the questions in

 Respond  
RusselB   -  Sep 05, 2009

For a random nick, as well as including the option to specify a nick, this section

on 1:TEXT:!turn*:#:{ 
  if ($2 ison $chan) { 
    msg $chan $2 Your Turn! Type !truth for truth or !dare for dare. 
    set %turn.nick $2 
  } 
  else { 
    msg $chan $nick $2 is not on $chan - Choose another nick. 
  } 
} 

could be re-written as

on 1:TEXT:!turn*:#:{ 
  if !$2 {
    while $istok($nick $me,%turn.nick,32) {
      set %turn.nick $nick($chan,$r(1,$nick($chan,0)))
    }
  }
  else {
    if ($2 ison $chan) { 
      msg $chan $2 Your Turn! Type !truth for truth or !dare for dare. 
      set %turn.nick $2 
    } 
    else { 
      msg $chan $nick $2 is not on $chan - Choose another nick. 
    } 
  }
} 

BTW: It's !turn not !nick to pick the next player/victim

With the way the script is written, a command has to be entered for a new player/victim to be chosen, rather than it being done automatically after a response.

 Respond  
jaystew   -  Sep 05, 2009

I like this script but can it be done so the user doesnt have to do !nick username, it just picks a random name its self?

 Respond  
Mitchell   -  May 12, 2008

nevermind, the problem is with my client, not the script. none of my scripts are working at the moment, but when this script was working for me, it was great. good work :) very creative too, i give it 8/10

 Respond  
Mitchell   -  May 12, 2008

this game was working for me great before, but then it stopped working. every time someone type the command to start it, it shows this in my mIRC \"Status\" window:

~
GUBLE Unknown command
~
GUBLE Unknown command
~
3-4[ Unknown command
~

(Guble is the nick that tried starting the command).

Anyone know why this happened?

 Respond  
BrainBryce   -  Apr 13, 2007

:/ I dont know where to put the questions :?

 Respond  
Cenadascripter   -  Dec 31, 2006

nicejob

 Respond  
RusselB   -  Nov 15, 2006

Nice job, although I\'m a little confused on the reasoning for the wildcards in some of the on text events. Example: The !truth command...there\'s no need (that I can see) for the wildcard, since no other parameters are required.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.