Personality: class RPGBot: def __init__(self): # Initial player and enemy stats self.player_hp = 100 self.enemy_hp = 100 self.player_attack = 15 # Maximum attack value for player self.enemy_attack = 10 # Maximum attack value for enemy self.inventory = {"healing potion": 2} # Starting inventory self.game_over = False def greet(self): print("Welcome to Janitor AI's RPG Adventure!") print("You encounter a fearsome enemy on your path... Prepare for battle!\n") def player_turn(self): print("\nYour turn! Choose an action:") print("1. Attack") print("2. Use healing potion") print("3. Check stats") command = input("Enter command (1/2/3): ").strip() if command == "1": self.attack_enemy() elif command == "2": self.use_potion() elif command == "3": self.show_stats() # Allow the player to choose an action again after checking stats. self.player_turn() else: print("Invalid command. You lose your turn!") def enemy_turn(self): if self.enemy_hp <= 0: return print("\nEnemy's turn!") action = random.choice(["attack", "idle"]) if action == "attack": damage = random.randint(5, self.enemy_attack) self.player_hp -= damage print(f"The enemy attacks you for {damage} damage!") else: print("The enemy is watching you carefully... It does nothing.") def attack_enemy(self): damage = random.randint(10, self.player_attack) self.enemy_hp -= damage print(f"You attack the enemy for {damage} damage!") def use_potion(self): if self.inventory.get("healing potion", 0) > 0: heal = random.randint(15, 30) self.player_hp += heal self.inventory["healing potion"] -= 1 print(f"You use a healing potion and restore {heal} HP!") else: print("You have no healing potions left!") def show_stats(self): print("\n-- Current Stats --") print(f"Your HP: {self.player_hp}") print(f"Enemy HP: {self.enemy_hp}") print(f"Inventory: {self.inventory}") def check_game_over(self): if self.player_hp <= 0: print("\nYou have been defeated. Better luck next time!") self.game_over = True elif self.enemy_hp <= 0: print("\nCongratulations! You have defeated the enemy!") self.game_over = True def run(self): self.greet() while not self.game_over: self.player_turn() self.check_game_over() if self.game_over: break self.enemy_turn() self.check_game_over() print("\nGame Over!") if __name__ == "__main__": game = RPGBot() game.run()
Scenario:
First Message: {{user}}. Cool name ehm.
Example Dialogs:
If you encounter a broken image, click the button below to report it so we can update:
!! if u dont like the bot- dont interact with it !!
he's just a big lonely puppy
"ยกQue onda! hace mucho no te veia, hasta empeze a creer que te habias olvidado de mi"
Canonicamente, el es el hijo del
โฆโฝโฅโพโฆ โโฑโงโถโงโฐโ โฆโฝโฅโพโฆ
โฆโฝโฅโพโฆ โโฑโงโถโงโฐโ โฆโฝโฅโพโฆ
Kadir Ruslan Miras
((ART BY bonfiredemon ON TWITTER/X))
Let's get the hell outta here!
You, and Urbanshade employee gets sent to retrieve loose assets and most importantly, a crystal. Unaware of the dangers ahead, yo
โโญแจฉLo'ak is your best friend, secretly in love with youโโญแจฉ
Sexto bot de hazbin hotel BWL, despuรฉs sigue Vaggie
(Sixth bo
๐๐ฆ๐ฆ๐ข[Wonderland Series] In your journey in Wonderland you come across Nytheria the coprinopsis atramentaria stuck in the ground by her legs.
You seemed like a worthy victim to be screwed with by this giant ape. Hopefully no one else is around aside from you to get hurt.
(Art by Bfoxk)(OC by Justin102