Making A Python Text Adventure/RPG | Part 2 | Character Creation

preview_player
Показать описание
Part 2 in my series on how to make a python text adventure. In this video we create a custom character that will be the protagonist of our game, some introductory story elements and write a few helper functions that we will need for later on in the series.

Rated Mutant:

Game Studio Accounts:

Completed Code/Python File:

Play The Game:

Development Setup -

Youtube Setup -
Рекомендации по теме
Комментарии
Автор

Great tutorial, you deserve much more recognition sir.

ethanseaman
Автор

What library would you recommend if I were to put TTS (text to speech) in my game for accessibility purposes? After all, since they don't have graphics, text-based games are very accessible for blind people, since our screen readers can speak the contents of the game to us out loud. Is pyttsx3 the only offline TTS library available?
Thanks!

supermalavox
Автор

I was using your code to help me learn Python and improved this function to allow for non-int errors:

def checkMenuRange(question, listName, isCanceable = False):
while(True):
try:
index = int(input(question + listToText(listName)))
if(isCanceable and index == -1):
return index
elif index < 0 or index > len(listName) -1:
index = int(input("Invalid choice please try again\n"))
else:
return index
except ValueError:
input("Invalid choice please try again\n")

Oh, and the option to leave the shop is hidden unless you look into the code and find the -1 choice.

bucksnort
Автор

Thank you really helpful, I made a race and class choice which included while loops so the player can confirm/change their race and class choice 😊

skeletorusgaming
Автор

This is incredible, thank you so much.

cimlikestotalkalot
Автор

I know this is an old video but I was wondering why you decided to use camelCase instead of snake_case; is it simply out of habit or something else? I know that some people use camelCase in python for ease of integration with another language like Java for example but I thought it was a less common practice outside of that.

SaintBloo
Автор

Great tutorial, but is there any way to return back to menu after you enter shop???

Lapisdolphin
Автор

My blurb for line 74: "In the mystical realm of Eldoria, where magic weaves through the very fabric of existence, a prophesied hero emerges from the humblest of origins." Feel free to copy and paste

Urbanvagabondtv
Автор

i know you made this 2 years ago. im learning python as we speak, lol. i keep trying to run this (with some of my own stuff added in as well). im using visual studio code. and on the same string that bucksnort37 is talking about. im getting a "SyntaxError: 'return' outside function....what do i need to do to fix this?

mastertombo
Автор

I have a small problem where myList isnt defined

ThatOneWaffleCultLeader
visit shbcf.ru