Questions tagged [role-playing-game]

A role-playing game (RPG and sometimes roleplaying game) is a game in which players assume the roles of characters in a fictional setting. Players take responsibility for acting out these roles within a narrative, either through literal acting or through a process of structured decision-making or character development. Actions taken within many games succeed or fail according to a formal system of rules and guidelines.

Filter by
Sorted by
Tagged with
3
votes
1answer
3k views

Text-Based RPG Dungeon Game in Java

I'm trying to follow as many OO concepts as possible. This project is for my github, as a means to enhance my portfolio for possible internships in the future. Question 1: Is there anything that's ...
5
votes
1answer
339 views

In-Progress Unnamed “D&D” Style Game (Python 3.5)

Short (Non-Explanatory) Summary of Code I just started learning Python a month or 2 ago, and this (small) 955 line mess is what I've worked on since summer started in June. I am basing it on Dungeons ...
12
votes
3answers
3k views

Character classes and character creation for an RPG (early prototype)

So, I've only started to learn actual programming about a week ago (only did some basic matlab scripting before) and because I wanted a challenge I decided to start with C++. To get more familiar ...
2
votes
0answers
187 views

Dungeons and Dragons Initiative Tracker

I just started learning JavaScript (and the Knockout framework), and decided to try and make an initiative tracker for Dungeons and Dragons 5th Edition. It is designed to take an arbitrary number of ...
22
votes
6answers
24k views

Simple text-based RPG in Java

I was looking for suggestions on how to improve the general flow of this code, as well as minimizing if / switch conditionals. ...
4
votes
1answer
68 views

Calculator for magic item creation in RPG

I have created a simple calculator that will assist in creating magic items from the tabletop RPG Pathfinder. Here are the full requirements, and if you want a more concise version, here is a player ...
8
votes
3answers
6k views

Save and load the state of a role-playing game using Pickle

I am working on a text-based adventure game and I'm implementing new features, one of these features being saves and loads. This code works, and I know that there is a more efficient way of coding it, ...
1
vote
2answers
194 views

Simple RPG - Alice fights Bob

This is designed to be a simple example of a RPG battle, for a talk I hope to give. The rules: Alice and Bob both have 5 hit points and inflict 2 damage. Each turn, Alice attacks Bob, and Bob attacks ...
5
votes
3answers
487 views

Text-based RPG (WIP)

I wanted to see how this code looks, what can be improved and how those improvements can be implemented. I'm still new to C++ so I hope it isn't too sloppy. ...
-1
votes
1answer
244 views

RPG for a school project

I'm trying to make an RPG game and I would like to make the code a lot shorter. This is only the first floor but there will be 5 floors. To advance to the next level, you have to defeat the boss of ...
6
votes
2answers
400 views

Browser-based Mafia game in PHP

Because I'm rather new to PHP and Object Oriented Programming, I'm often looking for some practice. Thus I decided to focus on making a browser-based Mafia game that should work like a Dutch variant: ...
6
votes
2answers
1k views

Reading large amount of player properties from CSV

I have written a class with a function that reads out the CSV from the webpage and creates an object with it. The class seems too big - it seems very unoptimized, prone to mistakes and it's not very ...
1
vote
1answer
174 views

A Generic “Augmentation” Collection for RPG Attributes/Resistances/Aversions

After having showed a previous implementation of my "Resistance System", I decided that I was completely wrong about how I had been going about things. The system, as it had been presented, was ...
2
votes
1answer
139 views

Custom resistance system for role playing games

For the game that I am creating I came across the need for an Elemental-based Resistance system. By that I mean, a system which would allow the player to mitigate damage or take more damage based upon ...
14
votes
5answers
3k views

Mini RPG equipment code

what do you think about this code? It's upgraded version of: Classes representing items in an RPG game ...
3
votes
1answer
1k views

Classes representing items in an RPG game

I wrote a little program in C# that contains classes representing Items in RPG game. I wanted to have access to all inherited classes parameters from list contains parent Item class instances, so this ...
6
votes
1answer
1k views

Generating RPG Characters (Objects)

I am a beginner Java programmer. I have just finished up an assignment and would appreciate some advice and/or constructive criticism on my program. I am trying to ensure I do not advance my knowledge ...
11
votes
2answers
3k views

Object-oriented dungeon crawler game

I am creating a simple dungeon crawler game. My program runs and does what I want it to do so far, but I am starting to run into difficulty with adding new functionality, and I think one of the main ...
3
votes
2answers
2k views

RPG character, levelUp system and stat checking for object usage

So I am working on a small RPG in Unity. Right now I am writing some business classes, POCOs, that have no link to Unity except being in the required C# flavor and using Debug.Log and stuff. I have ...
2
votes
1answer
625 views

Randomly generated world for text-based RPG

I am developing a text-based RPG with a randomly generated world space. I have built a light engine to produce a world for me and fill it with 'world objects' like trees, mountains, villages, and the ...
2
votes
1answer
2k views

Text-based RPG using OOP

I started this project after reading Chapter 3 of Python 3 Object-Oriented Programming by Dusty Phillips. At first I just wanted to create RPG-based objects to practice inheritance, but now I am more ...
4
votes
1answer
62 views

Simple React and Flux application to heal a player

I'm just trying to learn the basics of React and Flux, and the above code works and I can see it works nicely. index.js ...
6
votes
1answer
117 views

RPG Stack Exchange chat bot

Recently, I made a small bot to simulate an ASCII-based RPG in a chat room. The other users can enter commands (.left, .right, <...
-1
votes
1answer
600 views

Classes (and maybe subclasses) for characters in a Python game

I am practicing classes and subclasses in Python. I'm not sure whether it might be useful to add a subclass to the following code, instead of just adding methods to the class. ...
2
votes
1answer
581 views

Beginner code for a text-based battle simulator

I wanted to see if anyone would like to review the existing code I have for a beginner program that simulates a battle. I have learned a heck of a lot while doing it, and I had a few questions ...
6
votes
1answer
120 views

First drafts of Ultima-like adventure code

A friend and I watched most of the thenewboston syntax videos for Python 3 and spent 2 hours attempting to piece together our first program / generic text adventure. First experience with coding. I'...
7
votes
2answers
841 views

Dice roller in Python

I'm trying to get better in Python and decided to rewrite my dice roller in Perl into Python. ...
2
votes
1answer
160 views

Range class to represent limited values, like HP, Stamina and so on

I made a small script for Unity3D, meant to be use as GameComponent for GameObjects. It is supposed to represent values that have a max value, and an actual value. In games that would be the case, for ...
5
votes
2answers
3k views

Beginning of simple rogue-like RPG (in console) in C++

I've started to learn programming recently and it's my first more or less "big" project. But coding this project for me is quite hard. I spent a lot of time to understand what I've done and my coding ...
5
votes
1answer
875 views

Initializing characters in a visual novel game

I am making a visual novel game and I was wondering is there a better way of setting character attributes and initializing than the way that I have done down below. As you can see I did an abstract ...
3
votes
1answer
83 views

Parsing speech out of text

I'm working on an experiment to parse speech out of an emote in a text roleplaying game (MUD) so that if you can't hear it correctly, or if it's in a different language, you won't understand it. This ...
3
votes
1answer
124 views

Monster Buff/Debuff System Design

Below are a collection of classes that compose my buff/debuff system. The largest flaw in my design that I couldn't overcome is the base class Effect having an <...
15
votes
3answers
801 views

Setting the scene for a role-playing game

I made some games in Pygame, but I am still new to making games. I made this RPG game, and this code is just a part of the game. The game executes different Pygame files for different levels of the ...
3
votes
3answers
4k views

Dynamic class instancing (with conditional parameters and methods) based on a dictionary

In an RPG game I'm developing, after building a base Weapon class, instead of having many subclasses of Weapon, I want the ...
7
votes
4answers
692 views

RPG User File (Stats Holder)

This is my Player file. It is mainly for saving purposes. Is it easy to understand and read? Anything I should add or change for improvements? ...
6
votes
2answers
6k views

Beginner Python Dungeon Crawler RPG

I made a game in python which plays a bit like old terminal based RPGs, though a lot more basic. I had originally intended to implement a weapons and armour system and thus remnants of this can still ...
-5
votes
2answers
259 views

Text-based C++ video game

Please critique this and make suggestions on the best practices. ...
8
votes
2answers
227 views

Checking DnD Traits in an enum

Overall, I'm working on a simulator for a modified DnD 3.5 system. Right now, I'm trying to write an enum class that handles the Classes/Professions, and am ...
-4
votes
2answers
628 views

C++ Text Based RPG Backpack System

Here is my backpack system. Please critique and give me advice on the best practices. ...
4
votes
2answers
410 views

Text-based RPG in C++

It is currently unfinished; only case 1 of the switch(hunt) is available for choosing. Please give detailed feedback and/or ...
5
votes
1answer
150 views

Enumerations for a game character's statistics

I would like to improve my functions and work properly on enums without all of those IFs as well as make it more consistent (for example ...
1
vote
1answer
2k views

Character class for an RPG game

I have an RPG-like program that uses a Character class to specify and return information about an individual player/character. I was curious about a way to best set ...
3
votes
2answers
763 views

Text-based RPG game in C++

This is a text-based RPG game I've made in C++ and would love some review on it. I am a 100% complete newbie with maybe 2 weeks of C++ experience so I'd love some lessons on what I did wrong and how I ...
4
votes
2answers
168 views

RPG Skeleton, Part 2 - The Entity, and a SpecType

This question is a followup to Simple RPG skeleton, Part 1 - The Character. This is the second "part" of my development of this skeleton, and it now includes two new classes, ...
25
votes
4answers
3k views

RPG skeleton, Part 1 - The Character

I've been on a quest to learn C++, and to learn, I've started building a small Role-Playing-Game skeleton to help myself learn the language. I've tried to make sure that I've followed C++ styles/...
1
vote
1answer
247 views

RPG Character with fluent interface

(Follow-up on RPG Character Builder) This implements a fluent interface for RPG game characters. Is this a valid implementation? There are 3 characters: Paladin, <...
14
votes
3answers
2k views

RPG Character Builder

This implements a builder pattern for RPG game characters. Is this a valid builder pattern implementation? There are 3 characters: Paladin, Wizard and Elfo. There are 3 items: Potion, Sword, Arch. <...
7
votes
1answer
279 views

Small text-based RPG (v2)

This is my first text-based game I made. It's very small because I just learned Python and wanted to start small, and then code bigger programs. I added some stuff since the last time. Please give ...
5
votes
3answers
753 views

Small text-based RPG

This is my first text-based game I made. It's very small because I just learned Python and wanted to start small and then code bigger programs. Please comment on this. ...
3
votes
3answers
728 views

Menu class/struct for RPG

I plan to use this menu struct in an RPG played in the terminal. I want to make a RPG similar to D&D. I would like advice on my methods for the menu struct, especially the "hide" and "unhide" ...