Questions tagged [text-based]

233 questions
-1
votes
1 answer

In Java: how to 'pickup' an element of a container and 'place' it in another container?

I'm exploring how to create a text-based game, and I was tinkering around with moving between rooms. I have this part down and a very elaborate map created where you can type, "go north" etc. The only thing is that the game is very dry, and I wanted…
-1
votes
2 answers

Using nested IF statements for text based RPG skill point allocation with python

I am creating a text based RPG where the player starts with 600 skill points to allocate between 6 skills. So I start by assigning the value 600 to the skill_points variable. skill_points = 600 then I assign a default value for each skills…
-1
votes
1 answer

Simple function not interning

I am writing a simple text-based game and have written a simple combat system. The system works like rock-paper-scissors. It will iterate the loop, nor with it even move pass the first printed line. Thanks!. This is on Python3 I have tried making it…
-1
votes
1 answer

Battleship coordinate input (with letter) Java

I'm new here (stackoverflow and programming in general), and am trying to create a battleship game in Java. I am quite happy with what I have, and am aware that the code might not be the most effective, but that is not the problem I want to solve…
user10532764
-1
votes
1 answer

how do i update frames for a text based game

right now im a sorta half fine in a way programmer and im trying to make an text based game. i started today and i made some what of a world map that will later be updated and i will make it vast! but for the life of me i cant update frames…
Pie Pie
  • 13
  • 4
-1
votes
2 answers

How do I add a defined function into another defined function?

So I'm a beginner creating a text-base game, and I am in a situation where the player figures out how to unlock a locked door and are capable of exiting. But I don't want them to exit the door before they unlocked it. Therefore, I though I'd create…
John
  • 37
  • 5
-1
votes
1 answer

Text Block Tableview With Local Notifications Swift IOS

I developed a game and I have a text list. I want to display this text list on tableview cells line by line. I can display one line on tableview cells. And when the app is on background, I want to display the next line on this text list with local…
-1
votes
1 answer

C# | Text-Based RPG | Combat System & Currency (Randomisation)

I'm currently making my first Text-Based RPG but I can't seem to find a way about making a Combat System, what I have so far: System.Threading.Thread.Sleep(500); // Stops all code from running for 0.5 second Console.WriteLine("What do you want to…
Anthony P
  • 31
  • 2
  • 9
-1
votes
1 answer

C# Ton of Errors

I'm coding a Text-Based RPG currently, everything was going fine but then I guess I did something that destroyed my code, I'm not sure what I did but I now have 242 errors. My code is in a GhostBin File (Just a website where you can paste your code…
-1
votes
1 answer

Text Based RPG Drop and Keep Item Functions

So in my programming class I have to make a text based RPG. The issue I'm having is figuring out what to put inside of my Player_dropItem() function and my Player_keepItem() function. I know what they're supposed to do and I have some kind of an…
Dheraxys
  • 17
  • 5
-1
votes
1 answer

How to dump a class into another class to create a save state

I have a small class which is for a character and we can assign to it from outside the class. I need to know how I can dump all the information in that class into another that can be used to create a YAML file. require "yaml" module Save …
-1
votes
1 answer

Somehow, Only Every Fourth Tile Renders

So I'm working on a rendering system for a small Python game I'm making and I found that when I print the Render's Dictionary that I use to store tile renders, I found that only the fourth tile of every row is actually rendered.I intended for it to…
-1
votes
1 answer

Displaying images while still having a console for a java based text game

I want to make a java text game, but also want picture representations of what's happening. How can i make it so that i have a console and an area for the current image above? Jframe?
user3395786
  • 1
  • 1
  • 3
-1
votes
1 answer

how to go about first board game program… start with text based, or learn GUI?

I've been learning Python recently. As it's a relative joy to use, I've decided to start with that. I've done coding in college. Even though it was a decade ago, I still have knowledge of functions, flow control, scope, OOP, etc. (in languages such…
ackmondual
  • 385
  • 3
  • 12
-1
votes
3 answers

I'm looking for a specific search algorithm

Currently I am trying to create a little text based dungeon crawler in C where the map should be randomly generated. I try to accomplish this by using a quad-linked list, where every node(room) can have up to four connections to next rooms. typedef…
Markus
  • 93
  • 6