# The script of the game goes in this file.

# Yo, if anyone wants to translate the thing, just let me know, I can help with the meaning of some words, and get you the resources you need.

#Splashscreen for intro
label splashscreen:
    scene black
    with Pause(2)

    show doggo with dissolve
    with Pause(4)

    hide doggo
    show warn with dissolve
    with Pause(4)

    hide warn
    return

label after_load:
    if ally1 == '':
        $ ally1 = None
    if ally2 == '':
        $ ally2 = None
    if ene1 == '':
        $ ene1 = None
    if ene2 == '':
        $ ene2 = None
    if ene3 == '':
        $ ene3 = None
    return

# The game starts here.
label start:
    scene bg cave with dissolve
    "Where would you like to begin your journey?"
    call screen arc_selection()
    screen  arc_selection():
        modal True
        imagebutton:
            idle Transform("uistuff/arc selection/arc1.webp")
            hover Transform("uistuff/arc selection/arc1_glow.webp")
            focus_mask True
            action (Hide('arc_selection'), Jump('arc1_start'))
        imagebutton:
            idle Transform("uistuff/arc selection/arc2.webp")
            hover Transform("uistuff/arc selection/arc2_glow.webp")
            focus_mask True
            action (Hide('arc_selection'), Jump('arc2_start'))
        imagebutton:
            idle Transform("uistuff/arc selection/arc3.webp")
            focus_mask True
            tooltip "Not implemented yet!"
        imagebutton:
            idle Transform("uistuff/arc selection/arc4.webp")
            focus_mask True
            tooltip "Not implemented yet!"

label arc1_start:
    play music cave loop
    scene bg cave with dissolve
    "!?"
    "I'm alive?"
    "Where am I?"
    "Am I dead?"
    "No that doesn't make sense."
    show saru with dissolve
    mys "You seem confused boy."
    "What the he-?"
    "Who's there?!"
    mys "Calm yourself boy."
    "Why does weird shit keeps happening to me lately."
    with hpunch
    mys "I said calm yourself!"
    show saru
    "......"
    mys "......"
    mys "You must be wondering who I am, and how I know who you are."
    "You know who I am?"
    mys "Yes, but do you remember who YOU are?"
    $ mcname = (renpy.input("My name is").strip() or "Jikan")
    $ persistent.mcname = mcname
    mc "My name is [mcname]."
    mys "Good, it seems that it was a success."
    mc "A success?"
    mys "What is the last thing you remember before coming here?"
    mc "I'm not sure... I was watching the chuunin exams, and the 7th Hokage's son was caught cheating..."
    mc "And there was an attack, I was crushed by a boulder? Or I was about to be crushed?"
    mys "I see, it seems that your mind made it back in one piece."
    mc "What?"
    mys "All will be explained in due time."
    mys "You may call me Saru."
    saru "And I am your great ancestor."
    mc "What?"
    mc "What do you mean? Am I-"
    saru "Patience boy."
    saru "There is a something, behind the shrine, unearth it and bring it to me."
    "You walk behind the shrine, and began to dig."
    "Before long, you uncover a small gem, barely covered by the dirt."
    mc "I found a small gem or something, now what."
    saru "Put it on the palm of your hand, close your eyes  and focus."
    saru "Feel the flow of the chakra in the crystal, and guide it towards you."
    saru "As it starts to flow towards you, gently pull it in."
    saru "Good, good, it seems like it's working."
    saru "Now, let the chakra become a part of you, let it guide you on how to find it, how to create it and how to use it."
    mc "......"
    saru "It seems like you are getting the hang of it. There's hope for you yet."
    saru "Looks like it's done, open your eyes."
    "You open your eyes and realise that the gem has disappeared."
    "You pause, and you feel something awakening in you, an instinct almost..."
    saru "Good, seeing that you are still alive, it seems that you inherited our clan's ability."
    mc "Clan's ability? What do you mea-?"
    saru "You feel it don't you?"
    mc "(Did he just ignore me again?)"
    mc "Yeah, what is it?"
    saru "To put it in simple terms, it's basically something like affinity, you just acquired the ability and knowledge for a new jutsu."
    saru "Currently you have absorbed the ability to bend others to your will."
    label starting_questions:
        saru "I'm sure you have many more questions, ask what you wish."
        menu:
            "What was that crystal?":
                saru "That was what remains of the rogue that destroyed our village."
                mc "I'm not sure how to respond."
                saru "More specifically, that gem is the crystalisation of his chakra, the result of the jutsu cast by the last few of your village."
                jump starting_questions

            "What brought me here?":
                saru "To put it simply, I did."
                saru "Your life was about it meet its end, along with our bloodline, so I brought you back to the past."
                saru "It was always my hope that you would be able to revive the clan."
                saru "But you were not able to unlock your potential, nor were you even able to raise to a rank high enough to help our clan."
                saru "To make matters worse, you were almost killed by some random rubble before producing an offspring."
                mc "To be fair, that boulder came out of nowhere."
                saru "-Anyway..."
                saru "When I felt that our bloodline was going to end, I used the last of my power to transport you here."
                mc "To give me a second chance to revive the clan..."
                saru "Exactly."
                saru "With my wisdom of the past and your knowledge of the future, our clan's revival is all but certain."
                jump starting_questions

            "What do you mean my ancestor?":
                saru "What else could it mean?"
                saru "It just means you are one of my decendants."
                jump starting_questions

            "Where am I?":
                saru "When would be a better question, but I digress."
                saru "You're currently in the cave where the rogue was sealed, at the time where Tsunade is Hokage of Konoha."
                mc "I see."
                jump starting_questions

            "I have no more questions.":
                saru "Very well then."

    mc "Actually I have one more."
    mc "What are you proposing we do exactly?"
    saru "I will teach you how to use our clan's power, and with that power, you will revive our clan."
    mc "I don't suppose you have a more specific plan?"
    saru "For our clan's revival, we will need money, power and women."
    saru "As such, you would need to be in a position of power that allows you access to them."
    mc "So you mean I need to become Hokage? The village chief?"
    saru "No, that would likely disrupt the timeline too much, and we do not know what consequences that will have if it happens."
    saru "You need to find a way to control the hokage from behind the scenes."
    mc "So I need to put Lady Tsunade under my control?"
    saru "Yes, but as you are now, you have no way of gaining access to her inner circle, nor do you stand a chance against her."
    saru "And speaking of which, now it's your turn to contribute to our cause."
    mc "What do you mean?"
    saru "You have access to knowledge from the future. Are there any girls that you can control to get to Tsunade?"
    hide saru with dissolve
    mc "Let's see..."
    show sakuras1 with dissolve :
        xalign 0.0 yalign 0.0
        zoom 0.4
    mc "Sakura Haruno"
    mc "She is Tsunade's protege. Having her under my control will be useful in the future, and she will prove useful in taking Tsunade down."
    show inos1 with dissolve :
        xalign 0.3 yalign 0.0
        zoom 0.4
    mc "Ino Yamanaka"
    mc "Her family controls surveillance, and her mind transfer jutsu will come in handy."
    show tentens1 with dissolve :
        xalign 0.6 yalign 0.0
        zoom 0.4
    mc "Tenten"
    mc "Ninja tool expert, future academy instructor and weapons shop owner. Getting supplies will be easy with her under my control."
    show hinatas1 with dissolve :
        xalign 0.9 yalign 0.0
        zoom 0.4
    mc "Hinata Hyuga"
    mc "The seventh Hokage's future wife, eldest daughter of the Hyuga's clan and owner of the Byakugan. Her skills and influence will be beneficial."

    show sakuras1 blankhypno
    show inos1 blankhypno
    show tentens1 blankhypno
    show hinatas1 blankhypno
    with dissolve
    mc "If I control the four of them, I'll be able speed up the revival of the clan."

    show sakuras1 normalhypno
    show inos1 normalhypno
    show tentens1 normalhypno
    show hinatas1 normalhypno
    with dissolve
    mc "Be it to take down Tsunade and gain more power."

    show sakuras1 corrupthypno undressed
    show inos1 corrupthypno undressed
    show tentens1 corrupthypno undressed
    show hinatas1 corrupthypno undressed
    with dissolve
    mc "Making them convert their friends and family into my thralls."

    show sakuras1 embarrassedhypno nude
    show inos1 embarrassedhypno nude
    show tentens1 embarrassedhypno nude
    show hinatas1 embarrassedhypno nude
    with dissolve
    mc "Using them for my desires."

    show sakuras1 arousedhypno nude pregnant
    show inos1 arousedhypno nude pregnant
    show tentens1 arousedhypno nude pregnant
    show hinatas1 arousedhypno nude pregnant
    with dissolve
    mc "Even making them carry my seed."

    mc "I'll be able to do what I have to do to revive the clan."
    hide sakuras1
    hide inos1
    hide tentens1
    hide hinatas1
    show bonusa at left:
        zoom 0.3
    show bonusb at center:
        zoom 0.3
    show bonusc at right:
        zoom 0.3
    with dissolve
    mc "There are others as well, but these four might be the easiest to control."
    mc "For now, I'll need to become strong enough to take them down."
    hide bonusa
    hide bonusb
    hide bonusc
    show saru
    with dissolve
    saru "Excellent, you are learning."
    saru "For now, return back."
    saru "I will provide help and guidance if you are lost. However, only visit if it is absolutely needed."
    saru "Keep this place a secret, and unless you have them under your complete control, make sure your face is hidden."
    saru "There would be no merit in others finding out who you are or this place."
    "Heeding his words, you head back home."

    play music town loop
    scene bg room day
    with dissolve

    mc "A second chance..."
    mc "In any case I'll need supplies, let's see how much the village has changed."

    scene bg konoha
    #explain maps here with glow thingy
    mc "Let's see."
    show image"background/town_map_s1/office_hover.webp"
    mc "This is the hokage's office, I normally go there to get missions, I'll be able to get some money from doing missions. Sakura can be found here most of the time."

    hide image"background/town_map_s1/office_hover.webp"
    show image"background/town_map_s1/flowershop_hover.webp"
    mc "Next is Yamanaka Flowers, they sell stuff like flowers and vases, don't really have a reason to buy them, but I can find Ino here."

    hide image"background/town_map_s1/flowershop_hover.webp"
    show image "background/town_map_s1/ramenshop_hover.webp"
    mc "Ramen Ichiraku, a lot of people frequent the place, at least in the future they do, I never been to the place before, but I could get something to eat here to recover my health."

    hide image"background/town_map_s1/ramenshop_hover.webp"
    show image"background/town_map_s1/mansion_hover.webp"
    mc "This is the Hyuga mansion, can't enter the place without a reason, Hinata is normally found here."

    hide image"background/town_map_s1/mansion_hover.webp"
    show image"background/town_map_s1/traininggrounds_hover.webp"
    show image"background/town_map_s1/academy_hover.webp"
    mc "The Academy and training grounds, probably the best place for me to train my skills, but the results will only be evident after I get some rest."
    mc "I see Tenten here every now and then too."

    hide image"background/town_map_s1/traininggrounds_hover.webp"
    hide image"background/town_map_s1/academy_hover.webp"
    show image"background/town_map_s1/bathhouse_hover.webp"
    mc "This is the bathhouse, it'll cost a bit, but resting here would probably clear away all my fatigue."

    hide image"background/town_map_s1/bathhouse_hover.webp"
    show image"background/town_map_s1/clothingstore_hover.webp"
    mc "The clothing shop would allow me to get some outfits, I could also get some custom made stuff as well."

    hide image"background/town_map_s1/clothingstore_hover.webp"
    show image"background/town_map_s1/stadium_hover.webp"
    mc "The stadium is here, don't think there's anything to do here though."

    hide image"background/town_map_s1/stadium_hover.webp"
    show image"background/town_map_s1/home_hover.webp"
    mc "And finally this is where I live, I could just head home and do nothing on days I don't feel like it."

    hide image"background/town_map_s1/home_hover.webp"
    mc "For now, let's head to the clothing store to get a disguise."

    scene bg sky day
    with dissolve

    "You spend the day finding supplies and fixing up a disguise."

    scene bg sky evening
    with dissolve

    mc "That's everything."
    mc "......"
    mc "Let's get something to eat."
    "You decide to head over to a ramen place nearby."
    scene bg ramen shop
    with dissolve
    mc "Let's see."
    show ayame happy with dissolve:
        zoom 0.4
        xalign 0.5
    aya "Welcome!"
    show ayame surprised with dissolve
    aya "Oh, a new customer?"
    show ayame happy with dissolve
    aya "Welcome to Ichiraku! What would you like?"
    mc "(Oh, she's cute...)"
    aya "Hmmm?"
    mc "Oh, um, I'll have whatever you recommend."
    aya "Alright! It'll be done in a minute!"
    hide ayame with dissolve
    mc "(Hmmm, this might be a good chance...)"
    mc "(I could try that out on her...)"
    mc "(I'll need to find a way to get her alone... but how...?)"
    show ayame happy:
        zoom 0.4
        xalign 0.5
    aya "Sorry for the wait!"
    mc "Huh?!"
    mc "Oh, thank you."
    aya "Our store's special! Let me know if you need anything!"
    mc "Alright."
    hide ayame
    mc "(Let's deal with this later, I'm starving.)"
    show bg black
    with dissolve
    mc "This is actually pretty good."
    scene bg ramen shop
    with dissolve
    mc "Whew, that was good."
    mc "Bill please."
    show ayame happy with dissolve:
        zoom 0.4
        xalign 0.5
    aya "Yes! That will be 4000 Ryo, thank you!"
    mc "W-wait wait, what?"
    show ayame surprised with dissolve
    aya "Is there a problem?"
    mc "(I only have 500 Ryo left...)"
    mc "(And I can't just cast the jutsu on her in broad daylight, I'm not even sure how it works.)"
    aya "Sir?"
    mc "I...umm...don't have enough."
    show ayame normal with dissolve
    aya "Oh."
    aya "This is a problem."
    aya "Is there someone that can bring you the money? Like your parents or a relative?"
    mc "I, ummm, don't have parents."
    show ayame sad with dissolve
    aya "I see..."
    show ayame normal with dissolve
    aya "It can't be helped then, it was also my fault for not checking the price with you."
    mc "Does that mean that I can-"
    show ayame happy with dissolve
    aya "I'll have you work here for today then."
    mc "Oh."
    scene bg ramen shop night with dissolve
    "You spent the whole day helping out in the kitchen and doing menial task."
    mc "(What the hell am I doing...)"
    show ayame with dissolve:
        zoom 0.4
        xalign 0.5
    aya "[mcname], we are almost done for the night, great job today."
    mc "Thanks Ayame."
    mc "(At least I found out her name...)"
    teuchi "Ayame, I'm heading back, close up shop when you're done lecturing the kid."
    aya "Alright dad!"
    mc "Oh."
    show ayame happy with dissolve
    aya "Ahaha."
    show ayame normal with dissolve
    aya "Don't worry, I'm not going to lecture you."
    aya "Let's take out the trash and close up shop so you can go home alright?"
    mc "Alright."
    mc "(This is might be my chance. Some good came out of this after all.)"
    scene bg ramen shop night with dissolve
    "As you and Ayame head to the back alley to throw out the trash, your hand reaches for hers."
    show ayame surprised with dissolve:
        zoom 0.4
        xalign 0.5
    aya "Huh?!"
    "As she lets out a confused sound, you remember what Saru told you and force your chakra into her."
    show ayame blank with dissolve
    "She drops the trash bag she was holding as her face changes."
    "You continue to cast the jutsu as Saru taught you, finding gaps in her mind and infiltrating inside of her core."
    show ayame blankhypno with dissolve
    "You can slowly see the change start to affect her as you continue on."
    mc "I feel like I can push it further..."
    mc "(Saru mentioned that I need to take it slower because of their resistance, but I don't feel any from Ayame...)"
    mc "Is it because she's not a ninja?"
    "You decide the best way to find out would be to continue on."
    "As you continue forcing your chakra in, you can feel it spread over her, slowly tainting her..."
    "Soon enough, you feel like you have reached her core."
    mc "Haaah...this is it..."
    mc "This is more tiring than I thought."
    "With the last of your effort, you could slowly feel your chakra surrounding her core, seeping into it..."
    "And finally..."
    mc "How do you feel Ayame?"
    aya "I feel..."
    show ayame corrupthypno with dissolve
    aya "I feel perfect... [call]..."
    $ persistent.ayame_controlled = True
    "It worked."
    "Those are the words that repeatedly fill your mind."
    mc "Excellent."
    mc "Ayame, I want you to gather information for me."
    $ ayameexpress = "normalhypno"
    show ayame normalhypno with dissolve
    aya "I understand, what would you like me to look for?"
    mc "I want you to look for information about Sakura Haruno, Ino Yamanaka, Hinata Hyuga and Tenten, anything I can use to get close to them."
    aya "Of course."
    mc "Let me know if there are any interesting rumours going around as well."
    aya "Yes [call]."
    mc "Also, don't call me [call] when we're in public."
    mc "After giving her some other orders, you leave for home and have her close up the shop."
    "You can now check with Ayame for hints."

    play music room loop
    scene bg room night
    with dissolve
    mc "That was unexpected, but it seems like I got a useful piece."
    mc "I should probably stop using the jutsu on civilians, I might attract unwanted attention."
    mc "For now, I should start with Sakura, she doesn't have a team at the moment, and she's probably one of the weaker targets."
    mc "If memory serves me right, she should be in the training with Tsunade in this era."
    mc "I should be able to find her near the Hokage's office."
    mc "Anyway, let's get some sleep for now."

    scene bg konoha
    with dissolve
    show screen status_screen
    "You can now do as you please, train your skills, earn Ryo or find a way to control people in the village."
    jump town


    # This ends the game.

    return
