on $*:text:/^[!@]mafia*/Si:#: { /notice $nick Not finished. /notice $nick Mafia is a card game with a minimum of 8 players per game, /notice $nick one person administrates the players, 2 players are the mafia /notice $nick one person is a detective, and the rest are citizens. /notice $nick The point of the game is to get rid of the mafia /notice $nick OR if yo uare the mafia, get rid of the rest of the people. /notice $nick Citizens and detective don't get to see the mafia, but the admin does /notice $nick The admin also gets to know who the detective is, /notice $nick the rest must be citizens. To begin the game, people /notice $nick start to vote for a set time (60 sec) and try and get /notice $nick of someone they think is mafia. Afterwords, the game mode /notice $nick is called 'night time' and the mafia get to vote together /notice $nick and pick who they want to kill. The killed player sits out. /notice $nick after the night time, the detective can ask about ONE person /notice $nick the admin tells them if the selected person is mafia or not. /notice $nick Game goes until mafia is gone OR everyone else is. } on $*:text:/^[!@]playmafia/Si:#: { if (%game == on) /notice $nick Game already started! } elseif (%game == off) /set %game on set $+(%,player1,$nick,$chan) $nick /msg $chan Started, 30 sec to accept: !play /timer 1 30 /msg $chan Time up. Not enough players.! } on $*:TEXT:/^[!@]play*/^:#: { inc %p | set %player [ $+ [ %p ] ] $nick | if (%p == 7) { msg # Enough players! Start the game. } } /notice $nick you are player %p