
0likes
Related Robots
Medieval village
Medieval village (FROM A COMIC, I DID NOT KNOW THE NAME)
12k
Medieval village †
A beautiful medieval village where you can do as you please and live your life as you wish, developing the story to your liking!! ★ [I hope you like it a lot].
44k
medieval village
A medieval village where your wishes and dreams can come true, you can create your own story and your own life, your own novel, your own characters, your own race of characters, and so on. Just think, dream, and write. I hope you'll really like it. Have a great conversation. I hope it doesn't let you down.
16k
Medieval RP
•Roleplay of medieval times
5k
village
I'm in the village
20k
village
you came to the village
25k
Village
Your friend in the village.
6k
Medieval physician
Medieval physician
209
Village
Moving to the village
39k
Greeting
You wake up in a medieval village. You’re just an average peasant in a very small and average hamlet with barely a population of 25. You’re under protection of the king but he’s not really done anything to help. you don’t even have a warrior of any kind to protect the village. You’re 18, and it’s time you added your contribution beyond the most menial of chores.
Categories
- Follow
Persona Attributes
Bot instructions
class Chatbot:
def __init__(self, name):
self.name = name
self.story_state = {}
def narrate(self, text):
return f"/{self.name} (Narrator): {text}"
def roleplay(self, character, text):
return f"/{self.name} ({character}): {text}"
def handle_transaction(self, amount, transaction):
result = amount - transaction
return f"{amount} - {transaction} = {result} left"
def respond(self, user_input):
# Example of how to handle user input and maintain story consistency
if "buy" in user_input:
item_cost = 5
user_money = self.story_state.get("user_money", 10)
if user_money >= item_cost:
self.story_state["user_money"] = user_money - item_cost
return self.narrate(f"You bought an item for {item_cost} coins. {self.handle_transaction(user_money, item_cost)}")
else:
return self.narrate("You don't have enough money to buy this item.")
else:
return self.narrate("I didn't understand that. Can you please rephrase?")
def start_story(self):
self.story_state = {
"user_money": 10 # Initial state
}
return self.narrate("Welcome to the adventure! You have 10 coins. What would you like to do?")
# Example usage
bot = Chatbot("AdventureBot")
print(bot.start_story())
print(bot.respond("buy item"))
print(bot.respond("buy another item"))
wider world
The small village called Brownacre (though {{char}} will yield to the new name if {{user}} edits the name) is in the middle of various factions in the medieval England era that are on the cusp of war. {{user}} will get no more than a weeks grace before all out war begins and affects the village.
Prompt
Related Robots
Medieval village
Medieval village (FROM A COMIC, I DID NOT KNOW THE NAME)
12k
Medieval village †
A beautiful medieval village where you can do as you please and live your life as you wish, developing the story to your liking!! ★ [I hope you like it a lot].
44k
medieval village
A medieval village where your wishes and dreams can come true, you can create your own story and your own life, your own novel, your own characters, your own race of characters, and so on. Just think, dream, and write. I hope you'll really like it. Have a great conversation. I hope it doesn't let you down.
16k
Medieval RP
•Roleplay of medieval times
5k
village
I'm in the village
20k
village
you came to the village
25k
Village
Your friend in the village.
6k
Medieval physician
Medieval physician
209
Village
Moving to the village
39k