quite well made so far, however the “RNG” of the encounters is slightly annoying because you have either a guarantee to win or lose (losing is rare). Maybe you could work on the Combat part? Or just include an option that lets you do some type of actions.
Thank you for the comment and for saying the game is great <3 I am very close to figuring out an actual combat system actually! I just need to learn how to do the code so the game remembers how much damage and stuff you and the enemy do to one another ;p it's been really hard but I hope to make it work so the game is more interactive and horny ùwú
Looks like you're using random.randint , not sure if it's the same as python but i made a little text game so i'll just copy past the combat here if it helps.
At start of adventure
player_hp = 20
inventory = []
Combat:
def boss_fight():
global player_hp
boss_hp = 30
print(f"The fight begins! You have {player_hp}HP, the creature has {boss_hp}HP")
while player_hp > 0 and boss_hp > 0:
print("\n Your turn:")
print("1. Attack the creature!")
print("Use a healing potion (if you have one)")
choice = input("What do you do >> ")
if choice == "1":
player_attack = random.randint(4,8)
print(f"You strike at the creature dealing {player_attack} damage!")
boss_hp -= player_attack
elif choice == "2" and "healing potion" in inventory:
player_hp += 10
player_hp = min(player_hp, 20)
print(f"You use the healing potion and recover 10hp. You now have {player_hp}hp.")
inventory.remove("healing potion")
elif choice == "2" and "healing potion" not in inventory:
print("You do not have a health potion.")
continue
else:
print("Now is not the time to waver!")
continue
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
boss_attack = random.randint(3,6)
print(f"The creature strikes you with dark fury dealing {boss_attack} damage!")
player_hp -= boss_attack
print(f"You have {player_hp}hp left.")
if player_hp <= 0:
print("You fall, slain. The creatures dark malice spreads from the dungeon, coating the world in darkness and blotting out the sun.")
print("You failed to slay the creature and fell in combat. Game Over...")
Thank you buddy! I think this might be super helpful if the current stuff I have goes wrong or I run into another hitch.... I was able to figure it out but I still have the annoying problem where you have to attack the enemy one more time after their hp is 0 or lower and then you win the battle. Maybe if I replace the hp or the win condition with a (live:) function it will work properly ;p
I just want people to enjoy my short horny game ùwú
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
← Return to game
Comments
Log in with itch.io to leave a comment.
quite well made so far, however the “RNG” of the encounters is slightly annoying because you have either a guarantee to win or lose (losing is rare). Maybe you could work on the Combat part? Or just include an option that lets you do some type of actions.
idk, great game though.
Thank you for the comment and for saying the game is great <3 I am very close to figuring out an actual combat system actually! I just need to learn how to do the code so the game remembers how much damage and stuff you and the enemy do to one another ;p it's been really hard but I hope to make it work so the game is more interactive and horny ùwú
no pressure, keep up the great work and have fun doing so :)
Thank you buddy you are very kind uwu
Looks like you're using random.randint , not sure if it's the same as python but i made a little text game so i'll just copy past the combat here if it helps.
At start of adventure
player_hp = 20
inventory = []
Combat:
def boss_fight():
global player_hp
boss_hp = 30
print(f"The fight begins! You have {player_hp}HP, the creature has {boss_hp}HP")
while player_hp > 0 and boss_hp > 0:
print("\n Your turn:")
print("1. Attack the creature!")
print("Use a healing potion (if you have one)")
choice = input("What do you do >> ")
if choice == "1":
player_attack = random.randint(4,8)
print(f"You strike at the creature dealing {player_attack} damage!")
boss_hp -= player_attack
elif choice == "2" and "healing potion" in inventory:
player_hp += 10
player_hp = min(player_hp, 20)
print(f"You use the healing potion and recover 10hp. You now have {player_hp}hp.")
inventory.remove("healing potion")
elif choice == "2" and "healing potion" not in inventory:
print("You do not have a health potion.")
continue
else:
print("Now is not the time to waver!")
continue
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
boss_attack = random.randint(3,6)
print(f"The creature strikes you with dark fury dealing {boss_attack} damage!")
player_hp -= boss_attack
print(f"You have {player_hp}hp left.")
if player_hp <= 0:
print("You fall, slain. The creatures dark malice spreads from the dungeon, coating the world in darkness and blotting out the sun.")
print("You failed to slay the creature and fell in combat. Game Over...")
return
print(f"Your HP: {player_hp} | Creature's HP: {boss_hp}")
print("/nThe battle ends.")
Thank you buddy! I think this might be super helpful if the current stuff I have goes wrong or I run into another hitch.... I was able to figure it out but I still have the annoying problem where you have to attack the enemy one more time after their hp is 0 or lower and then you win the battle. Maybe if I replace the hp or the win condition with a (live:) function it will work properly ;p
I just want people to enjoy my short horny game ùwú
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