Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

That's this part. If the boss's hp is 0 or less give the victory message then restart the adventure. Think just changing 'return' to 'continue' should just move on the the next choice. Think you might have it as just '<0' which is just anything less than 0 and doesn't count 0 itself.

if boss_hp <= 0:

            print("With a final blow the creature falls to the ground, and the dungeon fall silent.")

            print("Congratulation! You have slain the creature and saved the people from it's evil!")

            return


Honestly if you're a coding amature like me ChatGPT is your friend and i don't mean letting it do the work for you. It's great for error assist, you can just post what error you got and the code and it will usually find the problem and recoment how to correct it and other ways of improving the code. Saves a bunch of time considering most of the time for me it's a spelling error or a missing bracket and i'd need to spend like 2 hrs looking for it. But ChatGPT is good for using it like a teacher in a school, it can show you an example and explain how it works and then you can apply that knowledge to do your own thing. The most improtant thing is that you understand what it shows you, so you can add it to your coding knowledge and be able to use it later on in future projects and stuff.

Fair enough! I had heard that about GPT. learning code has been very tough and I feel like a lot of the people who know it way more in depth than me aren't the best at explaining what they're making me do so whenever they're not around I feel like I don't have access to what they showed me anymore ;p

Oh yeah GPT's great for assistance in programing. When you start a conversation with it just make sure to inform it what level your programing skills are. Like: I'm a beginner programer learining python. Can you show me an example of a dictionary?  Something like that and it will give you a basic example with comments explaining what each line of code means. If it does something unexpectedly complicated you can customize it and where it asks 'How would you like ChatGPT to respond?' Just put 'Keep things simple.'