#label main_menu:
#    with None
#       if not persistent.mm12_seen:
#        $ persistent.mm = '0.12'
#        $ persistent.mm12_seen = True
#   scene black pic
#    show mm_bg
#    $ renpy.transition(quickfade)
#    jump main_menu_screen

# Переменные: выбор действия.........
define ushel_po_moru = False
define ushel_po_zemLe = False
define prospal_ushel_po_zemLe = False
define iznasiloval_rabinu_Ses = False
define soglasie_Mi1 = False
define otkaz_Mi1 = False
define vitova_live = False
define vitova_yshla = False
define vitova_dead = False
define ati_touchbody1 = False


# складывать все ваши файлы изображений в папку images.
# Например, сцену bg room можно вызвать файлом "bg room.png",
# а eiLeen happy — "eiLeen happy.webp", и тогда они появятся в игре.
# Ensure your script begins with these necessary declarations.
init python:
    # This is to ensure compatibility with session data if you have changed the script.
    if "_reload_slot" in renpy.session:
        del renpy.session["_reload_slot"]

while True:
    $ renpy.pause(0.1, hard=True)  # Пауза для проверки событий
    if renpy.keymap['show_game_menu']:
        call screen game_menu("pause_menu")  # Вызываем игровое меню
# Вступление:
label start:

    scene black 
    with dissolve
    Ar "Welcome to my first game of Ancient Times."
    scene black 
    with dissolve
    Ar "I will try to immerse you in the time of the Roman Republic, but with a few changes.:)"
    scene black 
    with dissolve
    Wrn "The following content is intended for {color=#a40000}18/21+{/color}, depending on country of residence, and is entirely fictional."

    scene black 
    with dissolve
    Wrn "All characters are over {color=#a40000}18{/color} years of age. The author does not advocate any of the actions depicted in the game. The entire world, characters' relationships to each other, and sexual acts are fictional. For immersion in that time, according to the historical references read by the author."

    scene black 
    with dissolve
    Wrn "Don't ask how, the author doesn't know where he got them from."

    scene black 
    with dissolve
    Wrn "Are you more {color=#a40000}18{/color}?"

menu:
    Wrn "{color=#a40000}Want the correct answer.{/color}"

    "{color=#0f0}Yes":
        scene black with dissolve
        Ar "Then good luck!"
        $ menu_flag0 = True
        jump palatka
    "No":
        Ar "Then I wish you luck!"

        $ menu_flag0 = False
        return menu
#Начало игры
#Beginning of the game
label palatka:
    scene black with dissolve
# stop music fadeout 3
    play music "audio/music/background/tristan01.mp3" 
# $ renpy.pause(3.0, hard=True)
    "# rustle"
    "{i}You're getting up after a long sleep.{/i}"

    scene black with dissolve
    "{color=#BE7A1E}????{/color}" "...."

    scene ch1a1 with dissolve
    Sanitar "Ahem... {p} I'm sorry, but you can't come in here. The tribune is still resting.{p=1}"

    scene ch1a2 with dissolve
    Le "Why shouldn't I be allowed? I'm his friend. We found him still half dead, bleeding profusely."

    scene ch1a3 with dissolve
    Sanitar "That's why he needs to rest."

    scene ch1a4 with dissolve
    "{color=#BE7A1E}????{/color}" "{i}Tribun, is he talking about me?"

    scene ch1a4 with dissolve
    Le "..."

    scene ch1a5 with dissolve
    Sanitar "The other orderlies reported that he woke up several times and... I hate to say this, but he seems to be having memory problems."
    "{i}Two strangers noticed you waking up.{/i}"

    scene ch1a5 with dissolve
    "[Le] tired of arguing with the orderly."
    Le "stepped away."

    scene ch1a6 with dissolve
    pause 0.8

    scene ch1a7 with dissolve
    pause 0.8

    scene ch1a8 with dissolve
    pause 0.8
    
    scene ch1a9 with dissolve
# play sound "audio/sounds/furniture/chair02.mp3" 
# $ renpy.pause(2.0, hard=True)
    "While the man approaches you with a chair, the orderly turns to a third man busy with papers."
    Sanitar "Hey slave, get the teacher, tell him the tribune is awake."
    Le "Hey buddy, how are you?"

    scene ch1a10 with dissolve
    "{color=#BE7A1E}????{/color}" "It's like being hit by a horse."
    "Hold on a second."

    scene ch1a11 with dissolve
    "{i}The stranger decided to help you sit more comfortably by taking a second pillow from the other bunk.{/i}"
    Le "{i}That's it...{i}"

    scene ch1a12 with dissolve
    Le "What was I saying? {p} Ah, yes... {p=1}"

    scene ch1a13 with dissolve
    Le "What the hell was he talking about?"

    scene ch1a13 with dissolve
    "{color=#BE7A1E}????{/color}" "I'm afraid he's right."

    scene ch1a14 with dissolve
    Le "*Gulp*"
    "{color=#BE7A1E}????{/color}" "I feel embarrassed in front of him."

    scene ch1a15 with dissolve
    Le "Do you even remember your name?"





    scene ch1a15 with dissolve
    $ persistent.player_name = renpy.input("I think my name was...", default="Lucius", length=20).strip() or "Lucius"
    $ renpy.save_persistent()
    Luc "Name only! [persistent.player_name]."

    scene ch1a16 with dissolve
    Le "More precisely [Luc] Matulnay Arak."
    Le "That's good! Then you'll remember the rest."
    "{i}A man more excited than you.{/i}"
    Fas "My name is [Fas]. You and I are best friends. For almost 13 years we've been serving in..."
    Luc "Ggkkah!"
    "You grunt in pain."


    scene ch1a17 with dissolve
    "Behind your friend's back stands the chief field corpsman."
    Csanitar "That's it, leave the premises!"

    scene ch1a18 with dissolve
    "After quickly examining your wounds [Csanitar] became furious."
    Fas "That's it! I'm leaving. Get some rest, then we'll talk."

    scene ch1a19 with dissolve
    Csanitar "Clueless! Who taught you how to bandage wounds?"
    Sanitar "You're the teacher."
    Csanitar "I'll cut your tongue out for that!"
    Luc "{i}No strength. I'm sleepy.{/i}"
    
    scene black with dissolve
    "{i}After five days, you're feeling much better, and the Legatus of your legion has summoned you to him.{/i}"
    stop music
#In the legate's tent
label go_in_tent_Sestiy:
    scene black with dissolve
    pause 0.8
    "In the Legatus' tent."
    "{i}When [Le] saw you, the Legatus' tent guard began to speak in a raised tone of voice so that the Legatus could hear.{/i}"
    scene ch1b1 with dissolve
    pause 0.8
    Le "Legate of the Sestii, Matulnay Arak requests an audience, with Faustus as his escort."

    scene ch1b2 with dissolve
    Fas "Idiots! He can barely stand on his feet and you keep him waiting?"
    "{i}Furious, [Fas] didn't wait for an answer.{/i}"

    scene ch1b4 with dissolve
    play music "audio/music/background/francisad.mp3" 
# $ renpy.pause(2.0, hard=True)
    Ses "Let them co..."
    "{i}Before the Legatus could speak, the Legionnaires burst into the tent.{/i}"

    scene ch1b5 with dissolve
    pause 0.8

    scene ch1b6 with dissolve
    pause 0.8

    scene ch1b7 with dissolve
    pause 0.8
    "Here they come, the troublemakers."
    "{p}The Legatus smiled when he saw the two of you.{p=1}"

    scene ch1b11 with dissolve
    "Tribune Matulnay has arrived!"






    scene ch1b9 with dissolve
    pause 0.8
    Ses "ahem... {p}I didn't call you.{p=1}"

    scene ch1b10 with dissolve
    pause 0.8
    Fas "I'm here to support him."

    scene ch1b9 with dissolve
    Ses "Get lost! {p}You'll be supporting something.{p=1}"
    "{p}Knowing Legatus for years, [Fas] quickly left the tent, not bothering to find out what he had to support.{p=1}"

    scene ch1b12 with dissolve
    Ses "Have a seat!"

    scene ch1b13 with dissolve
    Ses "It's nice to see true friendship, especially in the army. They always have your back on the battlefield."

    scene ch1b14 with dissolve
    Ses "When you wouldn't wake up, he couldn't find a place to stay. I had to send him away to look for surviving Iberians."

    scene ch1b15 with dissolve
    Ses "But here you are. How are you feeling?"

    scene ch1b16 with dissolve
    Ses "Like a delirium."

    scene ch1b17 with dissolve
    Ses "I heard you lost your memory. Is that true?"
    pause 0.8
    Luc "*Nod*"

    scene ch1b18 with dissolve
    Luc "Only a name and a ragged memory!"
    "[Ses] knew you from childhood because of your friendship with your father. Although he made no promises that he would care, [Ses] felt disgusted."
#set of words. idea to take on board. "While still at a young age, [Luc] lost his mother, and a couple years later, his father. Although [Luc] was left with a maternal uncle who wanted to take him in, he applied to [Ses] for service. The Legate was reluctant to take the young boy into service, but he had been friends with [Luc]'s father before, so he decided to take responsibility. Since he was only 13 years old, he began to teach him literacy and to take him with him."
    scene ch1b19 with dissolve
    pause 0.8

    scene ch1b20 with dissolve
    Ses "Unfortunate. I remember being shot in the leg with an arrow."

    scene ch1b21 with dissolve
    Ses "If it had hit a little to the left, I'd have lost my balls."

    scene ch1b22 with dissolve
    pause 0.8

    scene ch1b23 with dissolve
    Ses "I limped for a month, I was afraid it would be permanent."

    scene ch1b24 with dissolve
    Ses "Hahaha!!!"

    scene ch1b25 with dissolve
    Ses "The memory of it, now only makes me laugh. {p}I've seen many people delirious after battles. But your case...{p=1} "

    scene ch1b25 with dissolve
    Luc "{i}Need to get more information!{/i} {p}How did I end up wounded? {p=1}"


    scene ch1b26 with dissolve
    Ses "That was a load of crap!"
    "The Legate replied angrily."

    scene ch1b27 with dissolve
    pause 0.8

    scene ch1b28 with dissolve
    pause 0.8

    scene ch1b30 with dissolve
    Ses "You didn't see that."
    Luc "..."

    scene ch1b31 with dissolve
    Ses "Seven days ago, when we went to fight the Iberian tribes, a local girl came. She wanted to meet me, she was listened to by you and the second tribune, since I left you to guard the camp. She told me that her men from the village who had sworn allegiance to us had decided to attack the camp."
    Ses "Their main target was our supplies. Apparently they wanted to try and reduce and weaken our forces, regardless of the outcome of the battle."

    scene ch1b32 with dissolve
    Ses "You decided to test her words by taking some soldiers and apparently got ambushed."
    Ses "After you left, the second tribune decided to be on the safe side and sent you more soldiers, and they found you."

    scene ch1b33 with dissolve
    Ses "The legionnaires didn't dare to split up, so the choice was to return the bodies of the fallen or pursue the enemy, at the risk of splitting your account. Still, it was unknown how many men they had gathered. Seeing that you were still breathing, the soldiers chose the first option."

    scene ch1b34 with dissolve
    Luc "What kind of idiot was I?"

    scene ch1b35 with dissolve
    Ses "Right."

    scene ch1b35 with dissolve
    Luc "Did I say that out loud?"

    scene ch1b36 with dissolve
    Ses "You should have just prepared for a possible attack on the camp."

    scene ch1b36 with dissolve
    Luc "That's right."

    scene ch1b37 with dissolve
    Ses "I realize you were eager to fight, but I left you to guard the camp, not search far from the camp for hidden enemies. Look where your eagerness for battle has gotten you."

    Luc "She must have been in one with them."

    Ses "Who, the girl? I don't think so. {p}It was in her best interest to defeat her tribesmen.{p=1}"

    Luc "What makes you think that?"

    Ses "She stayed in the camp, you can ask her the rest."

    scene ch1b38 with dissolve
    "Snap."

    scene ch1b39 with dissolve
    Ses "Don't you recognize her?"

    scene ch1b41 with dissolve
    pause 0.8
    "{i}After snapping their fingers, two young girls came out from behind the screen.{/i}"

    scene ch1b42 with dissolve
    pause 0.8
    "{i}Looking at them you recognized that behind them stood Legate's slave girl and the girl. No matter how much you looked at the second girl, you couldn't recognize her, but you realized that the conversation was about her.{/i}"
    scene ch1b43 with dissolve
    Luc "No."

    scene ch1b44 with dissolve
    Ses "I'll be honest, if it were anyone else, I wouldn't believe in memory loss."

    scene ch1b45 with dissolve
    Luc "What is it?"

    scene ch1b47 with dissolve
    Ses "A letter from home. I hope you're still reading. "

    scene ch1b48 with dissolve
    "Rustle."

    scene ch1b49 with dissolve
    Ses "Your uncle's asking to let you go home."

    scene ch1b50 with dissolve
    Ses "As I said, I wouldn't have believed another soldier and considered it an attempted desertion. But you asked for my service at such a young age and have served faithfully for 12 years."
    Luc "And what did you decide?"
    Ses "Your wounds are certainly terrible, but no reason to let you go. {p}Your memory alone is a valid argument. I don't know how it might affect the service, so you're better off recuperating at home. You've served your time.{p=1}"

    scene ch1b50 with dissolve
    Luc "Is this another argument?"

    scene ch1b52 with dissolve
    pause 0.8

    scene ch1b53 with dissolve
    Luc "Thank you Legatus!"

    scene ch1b54 with dissolve
    Ses "So as you prepare to go home, you can talk to... {p}... What's your name? {p=1}"
    Mi "[Mi], sir."

    scene ch1b55 with dissolve
    Luc "Legatus Sestius, I'm afraid and I don't know the way home."
    Ses "Don't worry about that. Your uncle's servant delivered the letter and he will escort you to the door of your home. He is waiting for you. I have ordered him to wait in your tent until you are well."

    scene ch1b56 with dissolve
    "There's a ship leaving for Agrigentum tomorrow morning. So you can decide for yourself how you're going to get back."

    menu:
        Wrn "{color=#a40000}This choice will greatly affect the plot. {/color}"

        "{color=#0f0}By sea":
            scene ch1b58 with dissolve
            Ses "Are you sure? Well, I won't insist. Just don't be in too much of a hurry on the way, there's a risk of opening a wound."
            Luc "Absolutely."
            Ses "Good! Then go to the tent, get some rest. But see that you don't oversleep the departure. For your sake alone, the ship won't wait."
            $ ushel_po_moru = True
            jump go_in_my_tent2

        "By land":
            Ses "Good, then get some rest. I have to disappoint you, you won't be getting a horse in this update. I don't know when that will happen. After all, the developer has a big update to make. Since this choice will affect the whole plot of the game."
            $ ushel_po_zemLe = True
            jump go_in_my_tent1
            
label go_in_my_tent1:
    return menu

#the main character is in his tent
    label go_in_my_tent2:
    stop music
    play music "audio/music/background/filaments.mp3"     
    scene black with dissolve
    pause 0.8
    "After talking to Legatus, you returned to your tent."

    scene ch1c1 with dissolve
    pause 0.8
    scene ch1c2 with dissolve
    "When you entered your tent, you saw a man."
    Luc "This must be the servant."

    scene ch1c3 with dissolve
    Slave "Greetings, young master."
    Luc "Hello. What is your name?"
    Slave "[Er], master."
    "{i}Not wanting to socialize you decided to rest, giving orders to the servant."
    Luc "Gather my belongings and provisions [Er], we're going home tomorrow. Don't forget to wake me up."

    scene ch1c4 with dissolve
    Er "Yes master."


# soon comes mirei
    scene black with dissolve
    "Resting on the bed, some time passed."

    scene ch1c5 with dissolve
    Luct "Damn it, I don't remember anything."
    "You turned around when you felt someone standing behind you."

    scene ch1c6 with dissolve
    Luc "It's that Iberian woman."
    Mi "Mr. Tribune..."

    scene ch1c7 with dissolve
    Luc "What a gentle voice. Do you need something?"

    scene ch1c8 with dissolve
    Mi "Mr. Tribune, you are leaving these lands tomorrow. May I go with you?"

    scene ch1c9 with dissolve
    "This request discouraged you, but you did not show it."
    Luc "Why should I take you with me?"

    scene ch1c10
    with dissolve
    Mi "I hope you remember, I reported to you about the attack by my tribesmen.
    Apparently, they spotted me walking into your camp and prepared an ambush.
    I'm afraid if I go outside the camp, I'm likely to be killed."

    scene ch1c11 with dissolve
    Luc "Yeah, I remember shaved-headed motherfuckers and a dick with a red crest on his helmet."

    scene ch1c12 with dissolve
    Mi "That must be my brother, in our grandfather's armor. He was a mercenary for Carthage,
    and after my grandfather died raising us, my brother and his associates began
    oppress my tribesmen and make them pray to some idol."

    scene ch1c13 with dissolve
    Mi "Afterward he decided to marry me off to the son of the chief of another village. He was to
    to be with him, big with blond hair."

    scene ch1c14 with dissolve
    Luc "Yes I remember, he made me bleed."

    scene ch1c15 with dissolve
    Mi "I'm sorry."

    scene ch1c15 with dissolve
    Luc "It's okay, I'm alive and he's lying there with his head bashed in."

    scene ch1c17 with dissolve
    Luct "Why do I get the feeling it was me and not me at the same time?"

    scene ch1c18 with dissolve
    Luc "Is that the reason you were betrayed, forced into marriage?"

    scene ch1c19 with dissolve
    Mi "I didn't betray anyone. My tribesmen won't understand now, but a while later.
    after my brother's death, his heresy will blow away and they will no longer be able to
    to oppress my village."
    jump first_mild_miriel
            
label first_mild_miriel:
    scene ch1c20 with dissolve
    Luc "Interesting story.
    {p}But what good will you be to me if I take you with me?{p=1}"

    scene ch1c21 with dissolve
    Mi "I can cook and clean your house."

    scene ch1c22 with dissolve
    Luc "I have servants for that."
    Luct "{i}Probably.{/i}"
    Mi "During the long journey, I can help pass the time and tend to your wounds."

    scene ch1c23 with dissolve
    Luc "I will be accompanied by Eros."
    scene ch1c20 with dissolve
    Mi "If I stay here, I might get killed."
    menu:
        Luct "{i}What to choose?{/i}"

        "{color=#0f0}Agree":
            Luct "{i}I'd like to see exactly how you keep me from getting bored.{/i}"
            $ soglasie_Mi1 = True
            jump da_Mi1

        "Deny":
            $ otkaz_Mi1 = True
            jump net_Mi1

            label net_Mi1:
                Luc "I'll still find something to occupy myself with."
    menu:
#For future update: otkaz mi1.
        Wrn "{color=#a40000}There is only one option available in this update \"Agree\".{/color}"

        "{color=#0f0}Agree":
            Luct "{i}I'd like to see exactly how you keep me from getting bored.{/i}"
            $ soglasie_Mi1 = True
            jump da_Mi1


    label da_Mi1:
    scene ch1c26 with dissolve
    Luc "Agree."

    scene ch1c27 with dissolve
    Luc "You can be useful."

    scene ch1c28 with dissolve
    Luc "Despite Eroth, I'm sure you can keep me company on this long journey."

    scene ch1c29 with dissolve
    Luc "But I must be sure of your abilities."

    scene ch1c30 with dissolve
    pause 0.8

    scene ch1c31 with dissolve
    pause 0.8

    scene ch1c32 with dissolve
    Luc "Kneel."
    Mi "*Gulp*"
#GG and Mireille's first oral sex begins.

    scene ch1c33 with dissolve
    pause 0.8

    scene ch1c34 with dissolve
    pause 0.8

    scene ch1c35 with dissolve
    pause 0.8

    scene ch1c36 with dissolve
    pause 0.8

    scene ch1c37 with dissolve
    pause 0.8

    scene ch1c38 with dissolve
    pause 0.8

    scene ch1c37 with dissolve
    pause 0.8

    scene ch1c38 with dissolve
    pause 0.8

    scene ch1c37 with dissolve
    pause 0.8

    scene ch1c38 with dissolve
    pause 0.8

    scene ch1c37 with dissolve
    pause 0.8

    scene ch1c38 with dissolve
    pause 0.8

    scene ch1c37 with dissolve
    pause 0.8

    scene ch1c38 with dissolve
    pause 0.8

    scene ch1c37 with dissolve
    pause 0.8

    scene ch1c38 with dissolve
    pause 0.8

    scene ch1c37 with dissolve
    pause 0.8

    scene ch1c38 with dissolve
    pause 0.8

    scene ch1c37 with dissolve
    pause 0.8

    scene ch1c38 with dissolve
    pause 0.8

    scene ch1c37 with dissolve
    pause 0.8

    scene ch1c38 with dissolve
    pause 0.8

    scene ch1c37 with dissolve
    pause 0.8

    scene ch1c38 with dissolve
    pause 0.8

    scene ch1c37 with dissolve
    pause 0.8

    scene ch1c38 with dissolve
    pause 0.8

    scene ch1c37 with dissolve
    pause 0.8

    scene ch1c38 with dissolve
    pause 0.8

    scene ch1c39 with dissolve
    pause 0.8

    scene ch1c40 with dissolve
    pause 0.8

    scene ch1c41 with dissolve
    pause 0.8

    scene ch1c42 with dissolve
    Luc "You might be useful to me."

#GH and Mireille's first oral sex ends #

    scene ch1c42 with dissolve
    Mi "Then I'll certainly look forward to traveling together."
#Mireille leaves
#GHG checks the wound.
    scene black with dissolve
    Luc "I'm exhausted. I must rest."
    stop music
    $ renpy.end_replay()
    jump ch1b

return