gluxon / phpwolf

The popular Werewolf game (variant of Mafia) powered by a PHP IRC bot
GNU General Public License v3.0
12 stars 7 forks source link

Implement !roles #60

Open gluxon opened 11 years ago

arshem commented 10 years ago

wolf.inc if ($this->isCommand($command,'roles')) { $roles = $this->string('roles'); foreach($roles as $role) { $this->say($nick,$role); } }

locales/*.inc $en_US["roles"][] = "".$en_US["wolf"].": Someone who tries to kill anyone they can get their hands on."; $en_US["roles"][] = "".$en_US["seer"].": ".$en_US["seer"]." can see one person each day to see their role. Careful though, they can be misled."; $en_US["roles"][] = "".$en_US["harlot"].": You may spend the night with one person per round. If you visit a victim of a ".$en_US["wolf"].", or visit a ".$en_US["wolf"].", you will die."; $en_US["roles"][] = "".$en_US["angel"].": It is your job to protect the ".$en_US["villager"].". If you guard a ".$en_US["wolf"].", there is a 50/50 chance of you dying, if you guard a victim, they will live."; $en_US["roles"][] = "".$en_US["drunk"].": I wanna go drunk, ".$en_US["seer"].", I'm home."; $en_US["roles"][] = "".$en_US["villager"].": Nothing to see here...you do nothing special."; $en_US["roles"][] = "".$en_US["gunner"].": You hold a gun that shoots special homing bullets. You may only use it during the day. If you shoot a ".$en_US["wolf"].", they will die instantly, but if you shoot a ".$en_US["villager"].", they will likely survive. There is also the possibility of the gun blowing up, and killing you with it, so take caution."; $en_US["roles"][] = "".$en_US["detective"].": It is your job to determine all the ".$en_US["wolf"]." and ".$en_US["traitor"].". Your job is during the day, and you can see the true identity of all users, even ".$en_US["traitor"]."."; $en_US["roles"][] = "".$en_US["traitor"].": You are exactly like a ".$en_US["villager"]." and not even a ".$en_US["seer"]." can see your true identity. Only ".$en_US["detective"]." can. You turn into a ".$en_US["wolf"]." once they are all lynched."; $en_US["roles"][] = "".$en_US["crow"].": You are able to sneak at night. You can kill a ".$en_pir["villager"]." or you can see if they are in bed or not. You can only do one or the other each night."; $en_US["roles"][] = "Ghost: If you're lucky enought to be a ghost, or rather unlucky enough, you can still chat after death!";