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
3answers
754 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" ...
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 ...
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 ...
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 ...
3
votes
1answer
277 views

JSON extraction

Given the code below, is there a better way to essentially create different native objects without changing the native constructor or the nativeList.json file? The only option I can see is adding a <...
3
votes
0answers
69 views

Mediator class to handle a bunch of rules between objects

When a LivingBeing attacks another LivingBeing, an attack roll is made to determine if a hit occurs. If a hit occurs, a damage ...
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. ...
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
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 ...
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 ...
6
votes
3answers
447 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 ...
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 ...
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 ...
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. ...
3
votes
2answers
6k views

RPG character creation implementation

This is a little yet unfinished RPG I made with C#. It runs well but I'm wondering if there are things I could improve to make it more clear or optimal. I'm basically asking for some feedback and ...
6
votes
1answer
331 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 ...
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 ...
4
votes
3answers
8k views

Communication between two classes in ruby

I cannot understand how I can make two classes work together by passing variables between them. During the last 5 days, I learned the basics of inheritance, singleton methods and eval methods. I even ...
14
votes
3answers
37k 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 ...