Citizens icon indicating copy to clipboard operation
Citizens copied to clipboard

New NPC: Gambler

Open Bogden400 opened this issue 14 years ago • 1 comments

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

Bogden400 avatar Aug 07 '11 09:08 Bogden400

This would be cool

havejack avatar Aug 16 '11 16:08 havejack