Share your repls and programming experiences

← Back to all posts
Player vs Enemy
Shemira (13)

Here is a simple text RPG I made in Python. I will occasionally provide updates.

Note: If you want to experience the game with a dark theme, just open the REPL in a new window.

P.S. If you encounter any errors, please post them in the comments below. Please include either a screenshot or the error message in its entirety. Also, I am open to any feedback you might have about the game, including suggestions on how it might be improved.

Commentshotnewtop
nullified (7)

The enemies should be more random, not just "Slime".
Also the moves should be displayed so it is more user-friendly.
Other than that, keep up the good work!

Shemira (13)

@nullified Thanks for the suggestion! I am going to be adding more monsters, as well as displaying the moves.

ChristopherLi5 (13)

Just a comment, to make your game a bit more playable, you can add the options of what you can do.

Examples: When I am in battle, I don't know what command to use.

Shemira (13)

@ChristopherLi5 I will be adding the option to view commands and their description while in a battle. Thanks for the suggestion, though. I will make sure to display the battle commands when your "turn" starts.

maxyang (27)

It crashed when I went to the town and bought a wooden sword. What's up with that?

Shemira (13)

@maxyang Can you provide the error message?

maxyang (27)

@Shemira Error message isTraceback (most recent call last):
File "main.py", line 32, in <module>
main_commands[user_input](main_commands[user_input])
File "/home/runner/75o2ydv1omx/buy.py", line 7, in buy
Hero.ownedWeapons.append(Item.name)
AttributeError: type object 'Hero' has no attribute 'ownedWeapons' Maybe you have an ownedweapons or and owned_weapons variable in your hero and you used the wrong variable name?

Shemira (13)

@maxyang Oh, I changed the name of the variable. I thought I updated all instances of it. Thanks! I will make sure to fix that.

Shemira (13)

@maxyang Okay, it is fixed now. Thanks for letting me know!

maxyang (27)

where are the options for where to travel?

maxyang (27)

maybe for every turn you should provide a list of things you can do that turn.

Shemira (13)

@maxyang Thanks for the suggestion. I was thinking of doing that. I just have not gotten around to it yet.

Shemira (13)

@maxyang At the moment, the commands for travel are 'town', 'dungeon', and 'cancel'. I will be adding in a command so that you can view the travel commands in-game.