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
50
votes
6answers
12k views

ASCII text-based RPG game in C++

I started to make a C++ RPG game just for fun. It does have quests but it isn't just one long adventure that lasts like 30 minutes. I would like to know what I did well on and things on which I can do ...
29
votes
4answers
9k views

Beginner object-oriented text-based RPG

I'm in the process of writing a text-based RPG in Java using object-oriented programming. I'm fairly new to programming and currently learning through CodeHS and coding this within their sandbox, any ...
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/...
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. ...
15
votes
3answers
802 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 ...
15
votes
1answer
334 views

Modeling a Mage character from nWoD, using Django

Goal Design a representation of a mage character from the World of Darkness RPG, as well their associated spells. Here is a visual representation of the schema. You can see it more closely on ...
14
votes
5answers
4k views

Player class for RPG/DND type game

I am recreating a game that I used to play on the Nintendo DSI, 'Dragon Quest IX'. I've made a player class, but have run into a code efficiency issue. When the ...
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 ...
14
votes
6answers
4k views

Printing RPG game character properties

I have written this code representing a class hierarchy of character classes, and a world class to print their properties. Is anything unclear about this code? Am ...
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. <...
14
votes
4answers
5k views

Fight against Enemies (RPG in Java)

I've written a program that simulates a fight between the player and an enemy to gain experience in the programming of such role-playing games. Above all, it was important to me to have good, object-...
14
votes
3answers
36k views

Text-based RPG in Java

I'm writing a simple text-based RPG in Java. I think it's a good exercise to practice OO and think about how objects should best interact. I'd be interested in hearing any thoughts! The ...
14
votes
3answers
19k views

Character creator for a role-playing game

Goal: Write a character creator program for a role-playing game. The player should be given a pool of 30 points to spend on four attributes: strength, health, wisdom, and dexterity. The ...
13
votes
4answers
23k views

Simple text RPG in Python

I am trying to teach myself to code using Python. The following is the first real program I have written from scratch. I feel that it is messy and in need of improvement, but I am either unsure of ...
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 ...
12
votes
2answers
21k views

Text-based RPG game

I started making a text-based RPG game and before I spend a lot of time on it, I wanted to know if there is a better way to make it. Currently I'm using switches to flow through the game, I also know ...
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 ...
11
votes
2answers
256 views

Simplistic (dumb) Card Fighter

I wanted to play with value types for Simon's challenge; I came up with this quick-and-dirty, basic implementation of a card-fighting game: I started with a value type to hold assets - I'd reuse that ...
10
votes
1answer
2k views

Very simple Python RPG

I am new to Python and am working on a small RPG game project to practice the language and OOP. I honestly don't know what I am doing though, so before I get into developing the battle system I ...
9
votes
4answers
896 views

Simple (Very Easy to Make) RPG Game Simulation in Python and Turtle

The code creates a very simple/easy RPG game, with 2 classes Jedi and Orc. The data is visualized using ...
9
votes
2answers
549 views

Item implementation for a role-playing game

I'm working on a cross-platform, implementation-independent Python library to make RPG-style game development easier, or at the very least more accessible. This code is designed to run on Python 3.6 ...
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, ...
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 ...
8
votes
3answers
520 views

Simple text-based RPG leveling system

I have two issues/questions with figuring out a proper way to write this code for a player leveling system. My First question/issue is that when this code is run it works as intended with a slight ...
8
votes
1answer
5k views

Python 3 text adventure game

After posting here before, reading that advice, and doing some research, I re-planned and started over. I appreciate the comments I get here at Code Review. The first thing I did was to create a ...
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? ...
7
votes
3answers
6k views

Very simple console RPG

I'm currently teaching myself C# and am looking for some feedback on my most recent project, creating a very simple c# RPG. I wasn't concerned at all with the balance of the game (it's VERY easy to ...
7
votes
2answers
866 views

Dice roller in Python

I'm trying to get better in Python and decided to rewrite my dice roller in Perl into Python. ...
7
votes
2answers
4k views

Character generator

I'm a total newbie teaching myself via Zed Shaw's Learn Python The Hard Way and I've gotten bored over a week long memorization lesson, so I thought I would make a character generator for a pen and ...
7
votes
2answers
2k views

Skeleton for a text-based RPG

I'm new to python and created this small program. It's basically a skeleton for a simple text-based RPG. The program is one menu that allows you to: Create a Character View Character Stats/Attributes ...
7
votes
1answer
281 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 ...
7
votes
1answer
139 views

RPG text game WIP

I would appreciate any constructive feedback on my game, I intend to add simple 2d graphics at some point but want to make the "skeleton' of the game first using just text. One question I had is a ...
7
votes
2answers
169 views

Revised version of my Python text game

Following all the good notes I've received from my question, I've edited my code quite a lot, so there are probably even more problems than there was before. Anyway, here are some details of the ...
6
votes
3answers
5k views

JavaScript text-based RPG

I'm making a text-based RPG in JavaScript. It works but I'd like to know how to improve it, like code-wise. Also, I want to know how to make it run on anything other than Internet Explorer. ...
6
votes
3answers
14k views

C++ text-based RPG

I have made this small text-based RPG in C++ which is based around one quest. I did this to practice what I have learnt so far. How could I improve it? Be as picky as you'd like. ...
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 ...
6
votes
3answers
446 views

Listing skills for role-playing characters

After I completed writing this code, I started to wonder if the switches should be replaced with a more OOP approach. I originally picked the switch approach because there will never be anymore skill ...
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 ...
6
votes
1answer
318 views

First C# RPG game and project as a beginner [closed]

I wanted your opinion on the first RPG game I made in C#. What things can I improve on with the code? Events: ...
6
votes
3answers
1k views

Learning C++ with an RPG game

I'm particularly focused on learning object oriented design right now there's some SDL code but it does nothing save generate a window. For now I am working with text until I get a better ...
6
votes
2answers
409 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
1answer
329 views

LPTHW exercise 36 game

This has taken me months to complete. From what little testing I have done, it seems to work. Let me know what I can do to spruce things up. I can't wait to start learning some more advanced ...
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 ...
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, <...
6
votes
1answer
121 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'...
5
votes
3answers
1k views

Python3 Health System

I made a code for a health system for the game I'm creating. I made it myself and I wanted some criticism on how to make it better. Thanks for viewing. ...
5
votes
3answers
10k views

Battle system in C++

I am not really having any problems with this. I'm just wondering if anybody has any ideas for a path for me to look down for bettering this little FF turn-based style of game in my free time. I ...
5
votes
2answers
408 views

Fantasy game inventory — Ch. 5 Automate the Boring Stuff

Here is a practice exercise — Fantasy Game Inventory \$-\$ You are creating a fantasy video game. The data structure to model the player’s inventory will be a dictionary where the keys are string ...
5
votes
3answers
756 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. ...
5
votes
3answers
156 views

RPG game using XNA

I know this code needs some organization like classes, enums, methods, arrays or something but I just want to know if I could have created a character movement script, thereby shortening the code ...