Questions tagged [text-based]
233 questions
0
votes
1 answer
cin.ignore() not delaying input first time through loop
I'm trying to code a version of the picolo mobile drinking game app for me and my friends to play (it seemed simple enough and we were sick of the questions in the app so we wanted to be able to write our own). The way that it is supposed to work is…

scumjag
- 1
- 1
0
votes
0 answers
How do I add and implement my function into a menu
def main():
while(True):
print(f'********Library Management System*********')
print(f'1 - Add Book')
print(f'2 - Remove Book')
print(f'3 - Issue Book')
print(f'')
…

saif
- 1
0
votes
0 answers
For both Javascript processing and Text-based Browsing, is there a reasonable way to pipe headless Chrome to Lynx as a front-end?
Finding a current-day Text-based Browser with Javascript support is a challenge. Can headless Chrome be used as a javascript processor while making use of piped throughput into Lynx's setup for human to html interface? If there is a simple…

reallyhuh
- 11
- 3
0
votes
0 answers
Problem with Switch statement in for loop for turn based RPG battle in java
Essentially, I've put a switch statement in a for loop. It has not been working as intended. I think it has something to with the break statement.
What I want the loop to do is go to the first element in the array list, execute code based on the…

Bread Bouquet
- 23
- 1
- 1
- 10
0
votes
1 answer
Text-Based RPG Python Bug
i'm new to python and am trying to make a text-based RPG using VScode. I keep running into this bug and i'm not sure what is causing it, please help me :O
Here is the code:
from csv import reader
def import_csv_layout(path):
terrain_map = []
…

Crazyscientist09
- 5
- 2
0
votes
1 answer
Problem Calculating Experience Points For The Next Level in a Text Based Game
for class I've been tasked with making a text based adventure game. Recently, I've been trying to program in battling and exp in the game. Here is what I am using to calculate it in the Player class:
int level = 1;
int exp = 0;
int close;
public…

Bread Bouquet
- 23
- 1
- 1
- 10
0
votes
1 answer
How can I set a system like a turn order with 6 ints?
I'm trying to set a turn order on a text-based game but I don't know how to set it up correctly.
I've tried to set it this way, I know it's all wrong but it's just to give an example that what I'm expecting.
#EXAMPLES RESULTS
WarriorTurnOrder =…

Rafael David José
- 19
- 4
0
votes
1 answer
Python text based game - How to show the correct output when player wins or loses game by reaching the room with the villain
My code works fine moving between rooms and collecting items but when player gets to the Food court where the villain is without all 6 items in the inventory it should output the player lost, or if player has all item then player wins. See my code…

LizzzPyyy
- 3
- 2
0
votes
1 answer
Chat API - Similar service like TokBox but for text-based chat?
I find tokbox is a great service for video chat. But is there any other similar service for text-based chat, that provides api, so that i can manage my own users and chat participants.
Thanks

Peacemoon
- 3,198
- 4
- 32
- 56
0
votes
0 answers
RPG GUI turn based battle game in python
I am developing a text based GUI battle game in python 3.0 with 3 player units and 3 AI units. All three player units will get assigned to each role : Warrior and Tanker each with different atk points and dmg points. The AI roles and attacks will…
0
votes
1 answer
How to export a program from Visual Studio 2019?
I'm trying to export a text-based game, existing entirely in the command prompt, from Visual Studio 2019. The game is written in C# with .NET Framework 4.6.
I've been trying everything to think of to get it to export, and it always works fine on my…

Finch Youngs
- 33
- 4
0
votes
2 answers
How can I add items and avoid duplicates to my inventory in a text based adventure game?
So I am trying to design a text based adventure game for one of my classes. I have the movement from room to room down, but have been struggling when it comes to getting items added to the inventory for the escape. At first when I tried to enter…

tay
- 3
- 1
- 2
0
votes
0 answers
Items not adding to inventory text based game in python
So I have been working on this text based game in python for a project and I have gotten it where I can move around but can not get it where it will pick up the item itself. any help would be greatly appreciated. I am no expert as I am current going…
0
votes
2 answers
What is the best way to implement a text-based adventure game in fluter/dart with a decision tree model?
I am building a text-based adventure game as follows: I have 2 models Node and Message, in Node will contain:
1 list of messages
1 list of branching conditions
1 list of child nodes
My idea is to use Listview to print to the screen and when the…

An Tran
- 119
- 9
0
votes
1 answer
How do I make textwrap print a variable along with some text?
This is the code I'm using to make part of a text-based game:
armour = int(0)
message = "You have no weapons to fight with. The bokoblin hits you with its club (3 damage) but your armour
reduces the damage (-",str(armour),") and you manage to…

CretaceousCat
- 17
- 4