CleverRaven / CleverRaven/Cataclysm-DDA

Player-operable card games with companions

Open
#73,115 9 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

(P5 - Long-term) <Suggestion / Discussion>
Dominant language
C++
Stars
13.2k
Forks
4.6k
Avg merge
2d 1h
Merged PRs (30d)
205

Description

### Is your feature request related to a problem? Please describe.

I got to thinking about this while doing mundane technical work, and it occured to me that it might be a good idea to have the player be able to play card games with their companions in a human-operable way. I'm aware that the currently existing items can be used to "play", giving a small morale boost, but what if this functioned more like a selectable minigame?

### Solution you would like.

When prompted to use the card game's activate action, bring up a selection menu asking if you want to play the game in question in a minigame fashion, or use the existing automatic method with the activity. If the minigame mode is picked, it brings up a text box describing the game you are playing. For this example, let's pick blackjack.

In a dialogue box, your current hand is described (Ace of Spades, Queen of Hearts) along with a point total (21), and you have a few options to either hit (gain a new card from the deck) or stand (do nothing). Afterwards, the opponent (your companion) runs an algorithm to do the same. Then cards are "shown", which can be a simple greater-than check for point totals between you and your opponent(s). A small morale buff or debuff is applied based on if you won or lost.

This would be a small, but fun way for players to have a change of pace with the game and create interesting content to do with your NPCs. Maybe some NPC settlements could feature card sharks and tables like this, where the player can go and gamble.

### Describe alternatives you have considered.

Not doing this, and sticking to the automatic, activity-based method for games. This might also only be feasible for simpler games which can be confined to smaller algorithms; D&D is too complex and multifaceted to represent this way, and may only have an automatic mode to play.

### Additional context

This could possibly be done with basic selection EOC's and a chatbox, but it could also happen with C++ too. The biggest issue is finding someone with the time, knowledge, and willingness to create it (which might wind up being me), if at all.

Something like this could also lead into Red Dead-style poker matches, hopefully not concluding with a shootout.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing card-game activate action and its automatic activity-based method. Review whether selection EOCs and a chatbox can support a blackjack-style minigame, then define the game flow, opponent behavior, and morale outcome before implementation; done means a playable, optional card-game mode integrated with the existing action.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.