Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New NPC: Gambler #142

Open
Bogden400 opened this issue Aug 7, 2011 · 1 comment
Open

New NPC: Gambler #142

Bogden400 opened this issue Aug 7, 2011 · 1 comment

Comments

@Bogden400
Copy link

The idea is to have a little casino in an NPC. It could even possibly be linked to the creators of the NPC, so that the creator will receive any winning that the gambler gets.

Betting can be done with economy money, or a configurable currency item.

Games:

  • Simple Chance Games: (Should be fairly simple to code)
    • Flip a coin: Bet X, and then flip a coin. If you win, you get 2X. (With configurable chances and rewards)
    • Roll a dice: Bet X, then roll an N-sided die. The result is M. You get 2(M/N)X. (With configurable chances, die sides, and rewards)
    • Lottery/Roulette: Bet X on a number from 1 to N. If you win, you get N*X. (Configurable yada yada)
  • Not so simple chance games:
    • Blackjack/21: Same as in real life. Would basically have to code a blackjack game.
    • 3/5-reel slots: Configurable reels, wins, and payouts. The config might look something like this:

Reel 1: [Iron, Iron, Gold, Iron, Diamond]
Reel 2: [Iron, Iron, Gold, Gold, Diamond]
Reel 3: [Iron, Gold, Gold, Gold, Diamond]
Payouts:
1: [Gold, Gold, Gold]
Reward: $10 (or "10 266" for item rewards)
2: [Iron, Gold, Diamond]
Reward: $100

@havejack
Copy link

This would be cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants