PPF Home
Plugins
Developers
   Font size:      

One (v1.2)

PDF
PDF

Description

This plugin allows you to play a game of One

The plugin allows you to play a game of One. Each Player is dealt 7 cards at the beginning of each game. At each players turn, the player must play a card that matches either the color and/or the value of the card on top. If a player does not have such a card, they must draw at least one card and then can either play the drawn card or pass. The player to play all their cards first, wins. The plugin also keeps track of scoring by nick and a top 10.

Configuration

The configuration file for this plugin is system/one/OneConfig.xml

commandStartGame

The command for starting a game of One. The bot will only then respond to One play commands in the channel where this command is given.

	
      <commandStartGame>!one</commandStartGame>
	
    

commandJoinGame

The command for joining an already started game of One. This command can only be used after the start of the game and before the deal command


      <commandJoinGame>!join</commandJoinGame>

    

commandDealCards

The command for dealing a game after a game has been started with the One command.

	
      <commandDealCards>!deal</commandDealCards>
	
    

commandPlayCard

The command for playing a card in the game of One.

	
      <commandPlayCard>!play</commandPlayCard>
	
    

commandDrawCard

The command for drawing a card in the game of One

	
      <commandDrawCard>!draw</commandDrawCard>
	
    

commandPassCard

The command for passing a card after a card has been drawn.

	
      <commandPassTurn>!pass</commandPassTurn>
	
    

commandShowHand

The command for showing a player their hand after a game has started.

	
      <commandShowHand>!hand</commandShowHand>
	
    

commandCountCards

The command for showing all players the count of the cards in play by player.

	
      <commandCountCards>!count</commandCountCards>
	
    

commandShowPlayerStats

The command for showing the stats of a particular player

	
     <commandShowPlayerStats>!onestats</commandShowPlayerStats>
	
    

commandShowTopTen

The command for showing the top ten players (and their scores) of One.

	
      <commandShowTopTen>!onetop10</commandShowTopTen>
	
    

commandEndGame

The command to stop or reset a game of One at any time.

  • authLevel - ANY, ADMIN, MASTER, TRUSTED, NONE
	
      <commandEndGame authLevel="admin">!reset</commandEndGame>
	
    

Commands

Play a card

Command: !play <color> <number>
Description: This will play a card
Auth Level: none
Where to give command: channel
Outputs to: channel
Example(s):

  • !play g 3
  • !play w r

Draw a card

Command: !draw
Description: This will draw a card
Auth Level: none
Where to give command: channel
Outputs to: notice to user
Example(s):

  • !draw

Count Players Cards

Command: !count
Description: Count the number of cards of each player
Auth Level: none
Where to give command: channel
Outputs to: channel
Example(s):

  • !count

Start a game of One

Command: !one
Description: Start a game of One
Auth Level: none
Where to give command: channel
Outputs to: channel
Example(s):

  • !one

Join a game of One

Command: !one
Description: Join a game of One after it has been started
Auth Level: none
Where to give command: channel
Outputs to: channel
Example(s):

  • !join

Deal out the cards for One

Command: !deal
Description: Deal a game of One to the players
Auth Level: none
Where to give command: channel
Outputs to: channel
Example(s):

  • !deal

Pass a players turn

Command: !pass
Description: A player can pass their turn after they draw a card
Auth Level: none
Where to give command: channel
Outputs to: channel
Example(s):

  • !pass

See your current hand

Command: !hand
Description: See the hand of the player that uses the command
Auth Level: none
Where to give command: channel
Outputs to: notice to user
Example(s):

  • !hand

Get the stats of a player

Command: !onestats <player>
Description: Get the stats of a player
Auth Level: none
Where to give command: channel
Outputs to: channel
Example(s):

  • !player Aradon

Get the top ten players

Command: !onetop10
Description: Get the top ten players and their scores
Auth Level: none
Where to give command: channel
Outputs to: channel
Example(s):

  • !onetop10

reset a game of one

Command: !reset
Description: Reset a currently playing game of one
Auth Level: admin
Where to give command: channel
Outputs to: channel
Example(s):

  • !reset

Change History

v1.2 Aradon: Allows for multiple One games in Multiple channels
v1.1 Aradon: Added additional functionality and score recording
v1.0 First Version by DeadEd