Questions tagged [text-based]
233 questions
1
vote
1 answer
Problems basing enemy stats off of player stats in text based rpg
So I am making a text based rpg, and I've come up with a weird syntax error that I can't seem to fix on the line:
max_hp = randint((player.level * 0.75) * 50, player.level * 50)
in class Enemy. Any help would be greatly appreciated :).
from random…

user1763914
- 7
- 2
1
vote
1 answer
How is assembly IO performed for text based stuff?
I'm looking to understand how to do basic input/output to write a text based game in x86 assembly, simply for the sake of learning of the instruction set and the internals.
I don't want to use stdlib.h or stdio.hin my assembly code unless it…

zeboidlund
- 9,731
- 31
- 118
- 180
0
votes
1 answer
What is the right approach of building a Text-Content Website?
Am building a website which will have articles, policies and laws and text stuffs. I am storing all the data (in some cases the articles with over 8000 characters) in MSSql 2008 database. I read some articles where they are saying text data should…

heaVenShaker
- 85
- 8
0
votes
1 answer
Creating text based RPG game for iPhone
I would like to create a text based RPG game for iPhone. In this user will have some questions with answers, and navigate to the next page depends on the answer in which the user selects. As per the requirement I have to store the entire story in…

Mithuzz
- 1,091
- 14
- 43
0
votes
0 answers
Game wont pick up one item
After editing the code, I have been able to see the items in the room now, and all other movements are working properly. However, when I enter into the Gym, I cannot pick up the corresponding item. Instead it prints the cannot find the item…

Rashy415635
- 13
- 1
0
votes
1 answer
Cant figure out how to get the code to display the item in the room
I am creating a text-based game for my Python class and I can't get it to display the item when entering the room. I can collect it, and the inventory gets displayed. Just not the item that is in the room. I have put in the code I am using…

Rashy415635
- 13
- 1
0
votes
1 answer
Issue with text based game I'm creating for practice. Bugs when entering room for a second time
The problem breaks down to this. In my text based game, before you can enter the training grounds, you must give the hungry guard the bread from your inventory. As of now, that works. The inventory updates to show the bread is no longer in the…

Krondor12
- 1
- 2
0
votes
2 answers
How to make it so that the option is given to rerun after each time an operation is done?
It only gives the prompt after the first time the function is run. Once you have said yes to the prompt and run another operation, the prompt is no longer shown to rerun the function yet again. I want the "run another operation" prompt to be shown…
0
votes
0 answers
What is the way to fix a segmentation fault (core dumped)?
I am making a text based adventure game, where I read from a text file containing all of the rooms, descriptions, etc. The code compiles but when ran it does cause a segmentation fault (core dumped).
#include
#include
#include…

Witch Kas
- 11
- 2
0
votes
1 answer
How can I generate a map displaying the layout of a house of a text-based game and print it out of the console?
I want to design a text based game that has a house as a layout with Swift (coded in a Linux VM on Visual Studio Code).
To achieve the house layout I have different 'Room' objects that have exits in each cardinal direction (North, East, South,…

StryfingBl4ck
- 3
- 1
0
votes
1 answer
How to deal with unrecognized user inputs in match/case --Python
I'm working on a text-based game in Python and basically it's a series of functions that store match/case statements where the player can type things in to select different choices, which then bring the player to different functions. The problem is…

Nolan__
- 3
- 3
0
votes
3 answers
How to print one character at a time but maintain print function -- Python
I am developing a text-based game on Python and I wanted to have the effect where letters appear one at a time. It has to be a function because I wanted the effect to apply to almost all printed strings. I am using the code seen below, which I got…

Nolan__
- 3
- 3
0
votes
0 answers
How to store a randomly generated value throughout a enemy fight in a text-based game with python
Newbie here. I'm making a simple fighting text game. I'm trying to generate a random enemy, then use that result throughout a fight, but my code keeps randomizing an enemy every time I call enemy. Sorry, it's hard for me to explain, but here is my…
0
votes
1 answer
Having trouble adding both one and 2 word dict key values to inventory list in my text based game
So far I have been able to add either one-word values or 2-word values but not both. For example, I want to go to one location and add a skull to my inventory, then move to another location and add an energy potion to my inventory. With my current…

zeroMana
- 1
- 2
0
votes
1 answer
Need help adding full value in dictionary to inventory in my text-based game
I have a key:value pair == 'item': energy potion. I'm trying to add the whole value energy potion to my inventory but only 'energy' gets added. I know it has to do with obj = command.lower().split()[1] as this just adds the value at location 1. I…

zeroMana
- 1
- 2