Skip to main content

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
15 votes
5 answers
9k 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 ...
Linny's user avatar
  • 10.4k
31 votes
4 answers
17k 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 ...
WatCow's user avatar
  • 433
27 votes
4 answers
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/...
Ethan Bierlein's user avatar
16 votes
3 answers
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. <...
Edson Alcalá's user avatar
16 votes
5 answers
5k views

Mini RPG equipment code

what do you think about this code? It's upgraded version of: Classes representing items in an RPG game ...
TKK's user avatar
  • 375
13 votes
4 answers
31k 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 ...
Medullan's user avatar
  • 161
8 votes
3 answers
5k 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 ...
Hagartinger's user avatar
6 votes
3 answers
6k 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. ...
user avatar
5 votes
3 answers
131 views

Field class as a basis for a role playing game

My programs that I have written so far included only a few lines of source code. When I tried to write larger programs, it usually failed because I'm not a master of software engineering. This time, I ...
Dexter Thorn's user avatar
  • 2,174
5 votes
3 answers
993 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. ...
Keanu Jones's user avatar
4 votes
2 answers
3k views

Stats classes for a text-based adventure

I'm learning Python by creating a text-based adventure. I've put the stat creation and storage classes into separate files (modules?), and common functions (ValueError handling etc.) into another one ...
Broken Rose's user avatar
3 votes
2 answers
2k 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 ...
Adyn_G's user avatar
  • 121
3 votes
1 answer
2k 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 ...
TKK's user avatar
  • 375
2 votes
1 answer
178 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 ...
Krythic's user avatar
  • 1,498
1 vote
1 answer
222 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 ...
Krythic's user avatar
  • 1,498