Help 'unicode' object is not callable error

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
X500658
Newbie
Posts: 4
Joined: Sun Jul 23, 2017 1:24 am
Contact:

Help 'unicode' object is not callable error

#1 Post by X500658 »

I'm new to Ren'Py and I don't know how to fix this error. Please help me

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
TypeError: 'unicode' object is not callable

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  File "C:\Users\CLYDE.TestPC\Desktop\Clyde\renpy-6.99.12.4-sdk\renpy\ast.py", line 814, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\CLYDE.TestPC\Desktop\Clyde\renpy-6.99.12.4-sdk\renpy\python.py", line 1719, in py_exec_bytecode
    exec bytecode in globals, locals
  File "renpy/common/_layout/screen_main_menu.rpym", line 30, in <module>
    ui.interact()
  File "C:\Users\CLYDE.TestPC\Desktop\Clyde\renpy-6.99.12.4-sdk\renpy\ui.py", line 285, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Users\CLYDE.TestPC\Desktop\Clyde\renpy-6.99.12.4-sdk\renpy\display\core.py", line 2526, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
  File "C:\Users\CLYDE.TestPC\Desktop\Clyde\renpy-6.99.12.4-sdk\renpy\display\core.py", line 2746, in interact_core
    new_widget=layers_root)
TypeError: 'unicode' object is not callable

Windows-7-6.1.7601-SP1
Ren'Py 6.99.12.4.2187
CellZ 2.45

Nero
Veteran
Posts: 248
Joined: Tue Aug 09, 2016 2:59 pm
Contact:

Re: Help 'unicode' object is not callable error

#2 Post by Nero »

Copy your in game code instead of error message so we can spot the problem.

X500658
Newbie
Posts: 4
Joined: Sun Jul 23, 2017 1:24 am
Contact:

Re: Help 'unicode' object is not callable error

#3 Post by X500658 »

Code: Select all

#backgrounds:
#Magic
image srt4dark = "street004_night_dark.jpg"
image mag01 = im.Scale ("magic01.jpg", 1280, 720)
image mag02 = im.Scale ("magic02.jpg", 1280, 720)
image mag03 = im.Scale ("magic03.jpg", 1280, 720)
image mag04 = im.Scale ("magic04.jpg", 1280, 720)
image mag05 = im.Scale ("magic05.jpg", 1280, 720)
image mag06 = im.Scale ("magic06.jpg", 1280, 720)
image mag07 = im.Scale ("magic07.jpg", 1280, 720)
image mag08 = im.Scale ("magic08.jpg", 1280, 720)
image mag09 = im.Scale ("magic09.jpg", 1280, 720)
image mag10 = im.Scale ("magic10.jpg", 1280, 720)
image mag11 = im.Scale ("magic11.jpg", 1280, 720)
image mag12 = im.Scale ("magic12.jpg", 1280, 720)
image mag13 = im.Scale ("magic13.jpg", 1280, 720)
image mag14 = im.Scale ("magic14.jpg", 1280, 720)
image mag15 = im.Scale ("magic15.jpg", 1280, 720)
image mag16 = im.Scale ("magic16.jpg", 1280, 720)
image mag17 = im.Scale ("magic17.jpg", 1280, 720)
image mag18 = im.Scale ("magic18.jpg", 1280, 720)
image mag19 = im.Scale ("magic19.jpg", 1280, 720)
image mag20 = im.Scale ("magic20.jpg", 1280, 720)
image mag21 = im.Scale ("magic21.jpg", 1280, 720)
image mag22 = im.Scale ("magic22.jpg", 1280, 720)
image mag23 = im.Scale ("magic23.jpg", 1280, 720)
image mag24 = im.Scale ("magic24.jpg", 1280, 720)
image mag25 = im.Scale ("magic25.jpg", 1280, 720)
image mag26 = im.Scale ("magic26.jpg", 1280, 720)
image mag27 = im.Scale ("magic27.jpg", 1280, 720)
image mag28 = im.Scale ("magic28.jpg", 1280, 720)
image mag29 = im.Scale ("magic29.jpg", 1280, 720)
image mag30 = im.Scale ("magic30.jpg", 1280, 720)
image mag31 = im.Scale ("magic31.jpg", 1280, 720)
image mag32 = im.Scale ("magic32.jpg", 1280, 720)
image mag33 = im.Scale ("magic33.jpg", 1280, 720)
image mag34 = im.Scale ("magic34.jpg", 1280, 720)
image mag35 = im.Scale ("magic35.jpg", 1280, 720)
image mag36 = im.Scale ("magic36.jpg", 1280, 720)

image mag_atk01 = im.Scale ("magic_attack01.jpg", 1280, 720)
image mag_atk02 = im.Scale ("magic_attack02.jpg", 1280, 720)
image mag_atk03 = im.Scale ("magic_attack03.jpg", 1280, 720)
image mag_atk04 = im.Scale ("magic_attack04.jpg", 1280, 720)
image mag_atk05 = im.Scale ("magic_attack05.jpg", 1280, 720)
image mag_atk06 = im.Scale ("magic_attack06.jpg", 1280, 720)
image mag_atk07 = im.Scale ("magic_attack07.jpg", 1280, 720)
image mag_atk08 = im.Scale ("magic_attack08.jpg", 1280, 720)
image mag_atk09 = im.Scale ("magic_attack09.jpg", 1280, 720)
image mag_atk10 = im.Scale ("magic_attack10.jpg", 1280, 720)

image mag_fld01 = im.Scale ("magic_field01.jpg", 1280, 720)
image mag_fld02 = im.Scale ("magic_field02.jpg", 1280, 720)
image mag_fld03 = im.Scale ("magic_field03.jpg", 1280, 720)
image mag_fld04 = im.Scale ("magic_field04.jpg", 1280, 720)
image mag_fld05 = im.Scale ("magic_field05.jpg", 1280, 720)
image mag_fld06 = im.Scale ("magic_field06.jpg", 1280, 720)

image magic1 = im.Scale ("magic1.png", 720,720)
image magic2 = im.Scale ("magic2.png", 720,720)
image magic3 = im.Scale ("magic3.png", 720,720)
image magic4 = im.Scale ("magic4.png", 720,720)
image magic1break = im.Scale ("magic1 break.png", 720,720)
image magic2break = im.Scale ("magic2 break.png", 720,720)
image magic3break = im.Scale ("magic3 break.png", 720,720)
image magic4break = im.Scale ("magic4 break.png", 720,720)

image sch3eve ="school03_evening.jpg"

image sch11eve = "school11_evening by Leo-seta.jpg"

image sch16ngt = "school16_night_dark by Maarten1979.jpg"

image sky15moon = "sky015_night_light_moon.jpg"

image srt3light = "street003_night_light.jpg"
image srt4dark_light = "street004_night_dark+light.png"
image srt4dark_light_gray = "street004_night_dark+light+gray.jpg"

image fnt1cld = "fantasy01_cloud by Karen Roe.jpg"
image fnt1day = "fantasy01_day by Karen Roe.jpg"
image fnt1dark = "fantasy01_bighht_dark by Karen Roe.jpg"
image fnt1dark_rain = "fantasy01_night_dark_rain by Karen Roe.jpg"
image fnt1rain = "fantasy01_rain by Karen Roe.jpg"
image fnt1eve = "fantasy01_eveing by Karen Roe.jpg"

image fnt2day = "fantasy02_day by Karen Roe.jpg"
image fnt2cld = "fantasy02_cloud by Karen Roe.jpg"
image fnt2dark = "fantasy02_night_dark by Karen Roe.jpg"
image fnt2dark_rain = "fantasy02_night_dark_rain by Karen Roe.jpg"
image fnt2rain = "fantasy02_rain by Karen Roe.jpg"
image fnt2eve = "fantasy02_evening by Karen Roe.jpg"

image fnt4day = "fantasy04_day by Karen Roe.jpg"
image fnt4cld = "fantasy04_cloud by Karen Roe.jpg"
image fnt4eve = "fantasy04_evening by Karen Roe.jpg"
image fnt4rain = "fantasy04_rain by Karen Roe.jpg"
image fnt4dark = "fantasy04_dark by Karen Roe.jpg"
image fnt4dark_rain = "fantasy04_dark_rain by Karen Roe.jpg"

image fntin6day = "fantasy_in06_day by brownpau.jpg"
image fntin6cld = "fantasy_in06_cld by brownpau.jpg"
image fntin6eve = "fantasy_in06_eve by brownpau.jpg"
image fntin6dark = "fantasy_in06_night_dark by brownpau.jpg"
image fntin6light = "fantasy_in06_night_light by brownpau.jpg"

image fnt14day = "fantasy14_day by AnnCam.jpg"
image fnt14eve = "fantasy14_evening by AnnCam.jpg"
image fnt14cld = "fantasy14_cloud by AnnCam.jpg"
image fnt14rain = "fantasy14_rain by AnnCam.jpg"
image fnt14ndark = "fantasy14_night_dark by AnnCam.jpg"
image fnt14dark_rain = "fantasy14_night_dark_rain by AnnCam.jpg"

image fnt26day = "fantasy26_day by Karen Roe.jpg"
image fnt26eve = "fantasy26_evening by Karen Roe.jpg"
image fnt26cld = "fantasy26_cloud by Karen Roe.jpg"
image fnt26rain = "fantasy26_rain by Karen Roe.jpg"
image fnt26dark = "fantasy26_dark by Karen Roe.jpg"
image fnt26dark_rain = "fantasy26_dark_rain by Karen Roe.jpg"

image fnt7day = "fantasy07_day by arjayempee.jpg"
image fnt7eve = "fantasy07_evening by arjayempee.jpg"
image fnt7cld = "fantasy07_cloud by arjayempee.jpg"
image fnt7rain = "fantasy07_rain by arjayempee.jpg"
image fnt7dark = "fantasy07_night_dark by arjayempee.jpg"
image fnt7dark_rain = "fantasy07_night_dark_rain by arjayempee.jpg"

image fnt33cld = "fantasy33_cloud by Jim Linwood.jpg"
image fnt33day = "fantasy33_day by Jim Linwood.jpg"
image fnt33eve = "fantasy33_evening by Jim Linwood.jpg"
image fnt33dark ="fantasy33_night_dark by Jim Linwood.jpg"
image fnt33dark_rain = "fantasy33_night_dark_rain by Jim Linwood.jpg"
image fnt33light = "fantasy33_night_light by Jim Linwood.jpg"
image fnt33light_rain = "fantasy33_night_light by Jim Linwood.jpg"
image fnt33rain = "fantasy33_rain by Jim Linwood.jpg"

image bch1cld = "beach01_cloud by shazwan.jpg"
image bch1day = "beach01_day by shazwan.jpg"
image bch1eve = "beach01_evening by shazwan.jpg"
image bch1dark = "beach01_dark by shazwan.jpg"
image bch1rain = "beach01_rain by shazwan.jpg"
image bch1dark_rain = "beach01_night_dark_rain by shazwan.jpg"

image abs34 = "abstract_0034a.jpg"
image abs72 = im.Scale ("abstract_0072a.jpg", 1280, 720)
image abs77 = "abstract_0077.png"
image abs51 = im.Scale ("abstract_0051a.jpg", 1280, 720)

image mnt2eve = "mountain002_evening.jpg"

image mnt7eve = "mountain007_evening.jpg"

image fnt22 light = "fantasy22_night_light by vauvau.jpg"

image black = "#000"


#Chara images, scaled
image uni_girl_normal = im.Scale ("girl4_uni1.png", 224,720)
image uni_girl_doubt = im.Scale ("girl4_uni2.png", 224,720)
image uni_girl_happy = im.Scale ("girl4_uni3.png", 224,720)
image uni_girl_nervous = im.Scale ("girl4_uni4.png", 224,720)
image uni_girl_angry = im.Scale ("girl4_uni5.png", 224,720)
image uni_girl_laugh = im.Scale ("girl4_uni6.png", 224,720)
image uni_girl_cry = im.Scale ("girl4_uni7.png", 224,720)
image uni_girl_blush = im.Scale ("girl4_uni8.png", 224,720)
image uni_girl_shock = im.Scale ("girl4_uni9.png", 224,720)

image sera_normal = im.Scale ("sera_A_00.png", 310,719)
image sera_smile = im.Scale ("sera_A_01.png", 310,719)
image sera_happy = im.Scale ("sera_A_02.png", 310,719)
image sera_doubt = im.Scale ("sera_A_03.png", 310,719)
image sera_angry = im.Scale ("sera_A_04.png", 310,719)
image sera_blush = im.Scale ("sera_A_05.png", 310,719)
image sera_cry = im.Scale ("sera_A_06.png", 310,719)
image sera_shock = im.Scale ("sera_A_07.png", 310,719)
image sera_sad = im.Scale ("sera_A_08.png", 310,719)

image herena_normal = im.Scale ("herena_A_00.png", 608, 691)
image herena_smile = im.Scale ("herena_A_01.png", 608, 691)
image herena_smirk = im.Scale ("herena_A_02.png", 608, 691)
image herena_angry = im.Scale ("herena_A_03.png", 608, 691)
image herena_rage = im.Scale ("herena_A_04.png", 608, 691)
image herena_sad = im.Scale ("herena_A_05.png", 608, 691)
image herena_sigh = im.Scale ("herena_A_06.png", 608, 691)
image herena_busted = im.Scale ("herena_A_07.png", 608, 691)
image herena_shock = im.Scale ("herena_A_08.png", 608, 691)
image herena_pissed = im.Scale ("herena_A_09.png", 608, 691)
image herena_calm = im.Scale ("herena_A_10.png", 608, 691)

image shisuka_normal = im.Scale ("shisuka_A_00.png", 608, 691)
image shisuka_smile = im.Scale ("shisuka_A_01.png", 608, 691)
image shisuka_happy = im.Scale ("shisuka_A_02.png", 608, 691)
image shisuka_bored = im.Scale ("shisuka_A_03.png", 608, 691)
image shisuka_angry = im.Scale ("shisuka_A_04.png", 608, 691)
image shisuka_doubt = im.Scale ("shisuka_A_05.png", 608, 691)
image shisuka_sigh = im.Scale ("shisuka_A_06.png", 608, 691)
image shisuka_shock = im.Scale ("shisuka_A_07.png", 608, 691)
image shisuka_rage = im.Scale ("shisuka_A_08.png", 608, 691)
image shisuka_pissed = im.Scale ("shisuka_A_09.png", 608, 691)
image shisuka_yell = im.Scale ("shisuka_A_10.png", 608, 691)

image eto_normal = im.Scale ("eto_A_00.png", 337, 660)
image eto_happy = im.Scale ("eto_A_01.png", 337, 660)
image eto_grin = im.Scale ("eto_A_02.png", 337, 660)
image eto_confused = im.Scale ("eto_A_03.png", 337, 660)
image eto_bored = im.Scale ("eto_A_04.png", 337, 660)
image eto_angry = im.Scale ("eto_A_05.png", 337, 660)
image eto_scared = im.Scale ("eto_A_06.png", 337, 660)
image eto_sigh = im.Scale ("eto_A_07.png", 337, 660)
image eto_shock = im.Scale ("eto_A_08.png", 337, 660)
image eto_smirk = im.Scale ("eto_A_09.png", 337, 660)

image misaki_normal = im.Scale ("misaki_A_00.png", 551,652)
image misaki_smile = im.Scale ("misaki_A_01.png", 551,652)
image misaki_happy = im.Scale ("misaki_A_02.png", 551,652)
image misaki_angry = im.Scale ("misaki_A_03.png", 551,652)
image misaki_rage = im.Scale ("misaki_A_04.png", 551,652)
image misaki_angry = im.Scale ("misaki_A_05.png", 551,652)
image misaki_sad = im.Scale ("misaki_A_06.png", 551,652)
image misaki_shock = im.Scale ("misaki_A_07.png", 551,652)
image misaki_pissed = im.Scale ("misaki_A_08.png", 551,652)

image rio_normal = im.Scale ("rio_A_00.png", 430, 720)
image rio_happy = im.Scale ("rio_A_01.png", 430, 720)
image rio_grin = im.Scale ("rio_A_02.png", 430, 720)
image rio_angry = im.Scale ("rio_A_03.png", 430, 720)
image rio_rage = im.Scale ("rio_A_04.png", 430, 720)
image rio_sad = im.Scale ("rio_A_05.png", 430, 720)
image rio_sigh = im.Scale ("rio_A_06.png", 430, 720)
image rio_shock = im.Scale ("rio_A_07.png", 430, 720)
image rio_laugh = im.Scale ("rio_A_08.png", 430, 720)
image rio_smile = im.Scale ("rio_A_09.png", 430, 720)

image haruha_normal = ("haruha_A_00.png")
image haruha_happy = ("haruha_A_01.png")
image haruha_grin = ("haruha_A_02.png")
image haruha_pout = ("haruha_A_03.png")
image haruha_angry = ("haruha_A_04.png")
image haruha_sad = ("haruha_A_05.png")
image haruha_sleepy = ("haruha_A_06.png")
image haruha_shock = ("haruha_A_07.png")
image haruha_pervy = ("haruha_A_08.png")
image haruha_smile = ("haruha_A_09.png")

image nino_normal = ("nino_A_00.png")
image nino_happy = ("nino_A_01.png")
image nino_grin = ("nino_A_02.png")
image nino_doubt = ("nino_A_03.png")
image nino_angry = ("nino_A_04.png")
image nino_sad = ("nino_A_05.png")
image nino_sigh = ("nino_A_06.png")
image nino_shock = ("nino_A_07.png")
image nino_who = "nino who.png"

image sabata_normal = ("sabata_A_00.png")
image sabata_happy = ("sabata_A_01.png")
image sabata_grin = ("sabata_A_02.png")
image sabata_doubt = ("sabata_A_03.png")
image sabata_angry = ("sabata_A_04.png")
image sabata_sad = ("sabata_A_05.png")
image sabata_sigh = ("sabata_A_06.png")
image sabata_shock = ("sabata_A_07.png")
image sabata_blush = ("sabata_A_08.png")

#Jewel
image full ="full.png"
image piece1 ="piece1.png"
image piece2 ="piece2.png"
image piece3 ="piece3.png"
image piece4 ="piece4.png"
image piece5 ="piece5.png"
image pieces ="pieces.png"
image one ="one.png"
image whole ="whole.png"
image merge ="merge.png"
image formed ="formed.png"
image 40 ="40.png"
image 60 ="60.png"
image 80 ="80.png"

#Splash
image splash = "splash.png"
image splash20 = "20.jpg"
image splash40 = "40.jpg"
image splash60 = "60.jpg"
image splash80 = "80.jpg"
image splash100 = "100.jpg"

init:

    python:
    
        import math

        class Shaker(object):
        
            anchors = {
                'top' : 0.0,
                'center' : 0.5,
                'bottom' : 1.0,
                'left' : 0.0,
                'right' : 1.0,
                }
        
            def __init__(self, start, child, dist):
                if start is None:
                    start = child.get_placement()
                #
                self.start = [ self.anchors.get(i, i) for i in start ]  # central position
                self.dist = dist    # maximum distance, in pixels, from the starting point
                self.child = child
                
            def __call__(self, t, sizes):
                # Float to integer... turns floating point numbers to
                # integers.                
                def fti(x, r):
                    if x is None:
                        x = 0
                    if isinstance(x, float):
                        return int(x * r)
                    else:
                        return x

                xpos, ypos, xanchor, yanchor = [ fti(a, b) for a, b in zip(self.start, sizes) ]

                xpos = xpos - xanchor
                ypos = ypos - yanchor
                
                nx = xpos + (1.0-t) * self.dist * (renpy.random.random()*2-1)
                ny = ypos + (1.0-t) * self.dist * (renpy.random.random()*2-1)

                return (int(nx), int(ny), 0, 0)
        
        def _Shake(start, time, child=None, dist=100.0, **properties):

            move = Shaker(start, child, dist=dist)
        
            return renpy.display.layout.Motion(move,
                          time,
                          child,
                          add_sizes=True,
                          **properties)

        Shake = renpy.curry(_Shake)
    #

#


init:
    $ sshake = Shake((0, 0, 0, 0), 1.0, dist=15)

#Character
define boy = Character("[boy]")
define girl = Character(_('[girl]'), color="#c29f83")
define herena = Character(_('Herena'), color="#8a7996")
define idkherena = Character(_('???'), color="#8a7996")
define eto = Character(_('Eto'), color="#c9c8c8")
define idketo = Character(_('???'), color="#c9c8c8")
define sera = Character(_('Sera'), color="868ca4")
define idksera = Character(_('???'), color="868ca4")
define misaki = Character(_('Misaki'), color="#6f6b8b")
define idkmisaki = Character(_('???'), color="#6f6b8b")
define rio = Character(_('Rio'), color="#737780")
define idkrio = Character(_('???'), color="#737780")
define sisuka = Character(_('Sisuka'), color="#bf8cae")
define idksisuka = Character(_('???'), color="#bf8cae")
define haruha = Character(_('Haruha'), color="#e5de8a")
define sabata = Character(_('Sabata'), color="#b2c7b6")
define nino = Character(_('Nino'), color="#a44b53")
define idknino = Character(_('???'), color="#a44b53")

# The game starts here.
label start:
    
    $ score = 0
    $ S_score = 0
    $ M_score = 0
    $ R_score = 0
    

    scene black
    "\Do you want to customize the main character names?\n\Leave blank to use default names.\n"
    $ boy = renpy.input("Enter a boy's name: ")
    $ boy = boy.strip()
    if boy == "":
        $ boy = "Hiroshi"

    $ girl = renpy.input("Enter a girl's name: ")
    $ girl = girl.strip()            
    if girl == "":
        $ girl = "Rica"

label scene1A:
    scene sch3eve with dissolve
    
    boy "\Gotta find [girl].\n"
    boy "\Where is she?\n"
    boy "\She's not in the grounds nor in the 2nd floor...\n"
    boy "\*Sigh*... Gotta search all 5 floors...\n"

    scene sch11eve with dissolve
    show uni_girl_doubt
    boy "\There you are! You know, you could have texted me.\n"
    girl "*nods*"
    boy "..."
    extend " ..."
    extend " ..."
    boy "Do you want to eat something?"
    girl "*nods*"
    boy "..."
    extend " ..."
    extend " ..."
    boy "Do you want to go home?"
    girl "*nods*"
    boy "..."
    extend " ..."
    extend " ..."
    boy "Are you even listening?!"
    girl "*nods*"
    boy "No, you're not!"
    hide uni_girl_doubt
    show uni_girl_shock
    "You grab the Biology book in her hands..."
    "And throw it across the room." 
    hide uni_girl_shock 
    show uni_girl_angry
    girl "What the heck is wrong with you?!"
    boy "What's wrong with me?"
    boy "What's wrong with you?!"
    boy "You're supposed to be my girlfriend but all you've been doing is reading that stupid book!"
    girl "You're the one that's stupid!"
    girl "A worthless guy living without concern for his future!"
    boy "What did you call me?!"
    girl "Unlike you, I'm studying to get us, \"us\", a proper future."
    boy "Proper future?"
    boy "What future is there for us is you don't even respond to me?"
    girl "If you won't support me majoring in biology, then..."
    hide uni_girl_angry
    show uni_girl_cry
    girl "*sobs*"
    girl "Its over, we're through."
    girl "*sobs*"
    boy "..."
    girl "*sobs*"
    girl "You can't even muster a response..."
    girl "*sobs*"
    girl "After yelling at me for not responding..."
    boy "..."
    girl "Goodbye [boy]."
    boy "..."
    hide uni_girl_cry with fade
    "She turns and runs away, her tears falling."

    scene sch16ngt with dissolve
    play music "natuwasu.mp3"
    boy "\What have I done?\n"
    boy "..."
        
    scene srt3light with dissolve
    boy "\I have to apologize.\n"
    boy "..."

    scene srt4dark with dissolve
    boy "\Maybe I really am worthless.\n"
    boy "..."
    
    scene srt4dark_light with dissolve
    stop music fadeout 1.0
    play sound "brake1.mp3"
    boy "\Huh?\n" with sshake
    play sound "car_brake_crash-Cam_Martinez-567114981.mp3"
    "*CRASH*" with sshake
    
    play music "natuwasu.mp3"
    scene sky15moon with dissolve
    boy "\Why am I looking at the moon?\n"
    stop music fadeout 1.0
    
    scene black
    pause 2.0
    jump scene2A
    
label scene2A:
    scene fntin6day with dissolve
    boy "Where am I?"
    play sound "Walking Away-SoundBible.com-227212748.mp3"
    boy "Are those footsteps?"
    boy "They're getting closer."
    show herena_shock
    play music "tokino.mp3"
    idkherena "Oh! You're already awake."
    boy "Huh? Where am I? Who are you?"
    hide herena_shock
    show herena_normal
    idkherena "Relax, you're in my house, deep within the Kingdom of Cellulae."
    idkherena "I'm Herena, I found you in the forest."
    boy "Uh, I'm [boy]... wait..."
    boy "What forest? Last I rememb- Ughh"
    hide herena_normal
    
    scene srt4dark_light_gray with dissolve
    play sound "car_brake_crash-Cam_Martinez-567114981.mp3"
    boy "..." with sshake
    boy "D-d-d-did I d-d-d..."
    
    scene fntin6day with dissolve
    show herena_sigh
    herena "Don't push yourself."
    herena "You were asleep for three days."
    boy "What? Threee days? I have to get back."
    boy "Thanks for everything Herena but I should head back."
    herena "You don't understand the situation."
    boy "What do you mean?"
    hide herena_sigh
    show herena_smirk
    herena "Go outside, see for yourself. I'll be waiting here."
    boy "Uh.. okay."
    hide herena_smirk
    boy "Hmmm... Why was she smiling?"
    pause 1.0
    
    scene fnt26day with dissolve
    boy "Huh?"
    pause 1.0
    
    scene fnt1day with dissolve
    boy "Where am I???"
    pause 1.0
    
    scene fnt4day with dissolve
    boy "Where in the world am I?"
    pause 1.0
    
    scene fnt2day with dissolve
    boy "I bet Herena knows something."
    
    scene fnt14day with dissolve
    boy "Herena! What did you do to me?"
    show herena_shock
    herena "Oh! You're back earlier than I expected."
    boy " You witch! What did you do to me?"
    hide herena_shock
    show herena_angry
    herena "Witch?"
    herena "Is that how you treat the person who nursed you while you were asleep?"
    hide herena_angry
    show herena_calm
    herena "Look, I get why you're mad but don't vent at me."
    herena "Let's start with what you know."
    boy "Only that I'm not from here... not this world."
    hide herena_calm
    show herena_smile
    herena "Good, that makes it easier."
    boy "Makes what easier?"
    herena "Do you want to get back? Back to your world?"
    boy "Yes."
    herena "Are you willing to do anything to get back?"
    boy "Yes."
    herena "Good. I'll be in town for a while and you stay here."
    boy "What about getting home?"
    hide herena_smile
    show herena_normal
    herena "My business there is for your sake."
    boy "But-"
    hide herena_normal
    show herena_angry
    herena "But what?"
    boy "O-O-Ok... I'll wait."
    herena "Good."
    hide herena_angry with fade
    
    scene fnt14eve with dissolve
    boy "Better go back in."
    stop music fadeout 1.0
    
    scene black with dissolve
    jump scene2B

label scene2B:
    scene fntin6dark with dissolve
    show herena_smirk at center
    show eto_normal at Position(xpos = 0.288) behind herena_smirk 
    idketo "Are you sure?"
    herena "This will be amazing."
    "..."
    herena "BOOOOOO!!!"
    boy "Aaaaaaaahhh!" with sshake
    herena "*laughs*"
    hide eto_normal
    show eto_happy at Position(xpos = 0.288) behind herena_smirk 
    idketo "*snicker*"
    boy "Herena?! What was that for?"
    herena "What? Scared?"
    boy "Scared?! You almost gave me a heart    atta-"
    boy "Oh, wait, who's this?"
    hide herena_smirk
    show herena_normal
    herena "Him? He's Eto, one of my \"Vessels\"."
    boy "Vessels?"
    herena "He'll explain and I'll be working."
    hide herena_normal
    hide eto_normal
    
    scene fntin6light with dissolve
    show eto_happy
    eto "\"Vessels\" are people that serve as aides of magicians in various fields."
    boy "Wait, Herena is a magician?!"
    eto "She's an arch mage, the only one in the Schleiden District."
    eto "Now back on what are \"Vessels\"."
    eto "Wizards take magic from their bodies and \"Vessels\" take the magic into theirs..."
    eto "Thus being able to use the wizard's magic and double  as a reserve during emergencies..."
    eto "Wizards can also use \"Vessels\" as an extension of themselves, as eyes and ears for example."
    hide eto_happy
    
    scene black with dissolve
    "Etto continued until sunrise while Herena was reading."
    
    scene fntin6day with dissolve
    show eto_grin
    eto "Hopefully, you've grasped what a \"Vessel\" is."
    boy "Uhh... Sure."
    hide eto_grin
    show eto_shock
    eto "I'm sorry, I forgot you're from another world."
    boy "No, no, it's fine. I understood some of it."
    hide eto_shock
    show eto_normal
    herena "Hey [boy]! Come with me for a bit."
    eto "Whoops. Let's talk again later."
    hide eto_normal
    
    scene fnt14day with dissolve
    show herena_normal
    herena "You still want to go back home?"
    boy "Of course."
    herena "Alright, I'll tell you the method of getting back."
    boy "Okay."
    herena "There is an artifact in this world filled with immense magical power"
    herena "It belonged to the sorceress who built this kingdom."
    herena "She was known throughout the lands as \"Cella the Grand.\""
    herena "Cella created a jewel that could change the fate of the world."
    show splash
    herena "Fearing that it would be misused, she broke it into five pieces and entrusted it to 5 powerful wizards as Guardians."
    herena "These wizards then passed the jewel's pieces to their descendants and thus became known as the \"Five Great Bloodlines.\""
    hide splash
    herena "Due to a tragedy caused by the Vii'ru cultists, most of the members of the Bloodlines died."
    herena "Only a handful of them remain and only the piece's Guardian knows how to release it from Cella's seal."
    herena "Still comprehending?"
    boy "Pretty much. You're practically telling me to collect the 5 pieces so I can get back."
    herena "Hmmm, you might be smarter than I thought."
    boy "What?"
    herena "Anyways, Cella's jewel is rumored to grant any wish one so desires tha-"
    boy "That's why it's so powerful!"
    herena "Ehem. Yes."
    herena "Etto will take you to the location of the first Guardian."
    boy "You know where the first Guardian is? Seriously?"
    herena "Don't yell, I know the Guardian personally..."
    herena "Though it has been several years since we last met."
    boy "Is there a way for them to drop hostilities when we meet?"
    herena "Yes, tell the Guardian \"Esth'veska rai thuul Kein Cella\"."
    boy "Es ves what?"
    herena "\"Esth'veska rai thuul Kein Cella\"."
    herena "It means \"The legacy of Cella lives on\" in the ancient language."
    boy "Wow, that's deep."
    herena "Well, the people of Cellulae believe in preserving their history, even if most of it has been forgotten."
    hide herena_normal
    
    scene black with dissolve
    "Herena tells you more about Cella, her jewel and the kingdom of Cellulae."
    
    scene fnt14cld with dissolve
    show herena_normal
    herena "You and Eto will set out in a bit and head to the Hooke District."
    herena "Once you sense cold air that is out of place, follow it."
    herena "It will lead you to its source, the first Guardian."
    herena "If you pass the test then what follows your journey is in her hands."
    herena "I hope you know what to do."
    hide herena_normal
    show herena_calm
    boy "I should tell her \"Esth'veska rai thuul Kein Cella\"."
    herena "Make sure noone else hears that phrase."
    herena "Only high ranking magicians and the Guardians should know that."
    herena "You, however, should know it since you will collect the pieces."
    boy "Hmmm... Makes sense."
    hide herena-calm
    show herena_smile
    herena "Wait for Eto to finish his preparations and then set out."
    boy "Got it."
    hide herena_smile
    
    scene black with dissolve
    jump scene3A
    
label scene3A:
    scene fnt14eve with dissolve
    show herena_normal at Position(xpos = 990)
    show eto_happy at Position(xpos = 0.288)
    eto "Preparations are done."
    eto "[boy], are you ready?"
    boy "Yeah."
    eto "Then, Herana, we'll be off to Hooke district."
    hide herena_normal
    show herena_smile at Position(xpos = 990)
    herena "Good luck to you both."
    hide eto_happy
    hide herena_smile with fade
    
    scene fnt14eve with dissolve
    show herena_sigh
    herena "I hope they don't run into Vii'ru cultists on this journey."
    herena "*Sigh*"
    hide herena_sigh
    
    scene mnt2eve with dissolve
    show eto_happy
    eto "Hurry up [boy]! We can still make before nightfall."
    boy "Really? Great"
    hide eto_happy
    
    scene mnt7eve with dissolve
    show eto_sigh
    eto "Finally, Hooke District is just at the foot of this mountain."
    eto "Once we're there the search for the first Guardian begins."
    hide eto_sigh
    
    scene fnt22light with dissolve
    show eto_grin
    eto "We made it!!1"
    boy "*pant* *pant *pant*"
    eto "Okay, okay, just breathe."
    boy "Huh? Cold air?"
    boy "Eto! Cold air! From the farthest house!"
    eto "Good one! Didn't expect it to be this easy."
    boy "Let's go!"
    
    scene black with dissolve
    "The two of you run towards the house when suddenly someone goes out of it."
    
    scene fnt33dark with dissolve
    show sera_normal at Position(xpos = 900)
    show sera_shock
    idksera "Ah! Do you have business with me?"
    
#source: PartIII ; CellZ prototype
label sceneTEST1_1:
    scene abs34
    show sera_doubt
    sera "\#1 Cell membrane\n"
    extend "\This organelle bounds the cell.\n"
    hide sera_doubt
    menu:
        "TRUE":
            $ score =+ 1
            $ S_score =+ 1
            show sera_smile
            sera"\Correct!\n"
            hide sera_smile
            jump sceneTEST1_2
        
        "FALSE":
            show sera_sad
            sera "Stop messing around!"
            hide sera_sad
            jump sceneTEST1_2
            
label sceneTEST1_2:
    show sera_doubt
    sera "#2 Cell wall\n"
    extend "\This organelle gives shape to animal cells.\n"
    hide sera_doubt
    menu:
        "TRUE":
            show sera_sad
            sera "Stop messing around!"
            hide sera_sad
            jump sceneTEST1_3
        
        "FALSE":
            $ score =+ 2
            $ S_score =+ 2
            show sera_smile
            sera"\Correct!\n"
            hide sera_smile
            jump sceneTEST1_3

label sceneTEST1_3:
    show sera_doubt
    sera "\#3 Centriole\n"
    extend "\This organelle is found in the tonoplast.\n"
    hide sera_doubt
    menu:
        "TRUE":
            show sera_sad
            sera "Stop messing around!"
            hide sera_sad
            jump sceneTEST1_4
        
        "FALSE":
            $ score =+ 3
            $ S_score =+ 3
            show sera_smile
            sera"\Correct!\n"
            hide sera_smile
            jump sceneTEST1_4
        
label sceneTEST1_4:
    show sera_doubt
    sera "\#4  Tonoplast\n"
    extend "\This organelle is the membrane of the nucleus.\n"
    hide sera_doubt
    menu:
        "TRUE":
            show sera_sad
            sera "Stop messing around!"
            hide sera_sad
            jump sceneTEST1_5
        
        "FALSE":
            $ score =+ 4
            $ S_score =+ 4
            show sera_smile
            sera"\Correct!\n"
            hide sera_smile
            jump sceneTEST1_5

label sceneTEST1_5:
    show sera_doubt
    sera "\#5 Chloroplast\n"
    extend "\This organelle is found in the plant cell.\n"
    hide sera_doubt
    menu:
        "TRUE":
            $ score =+ 5
            $ S_score =+ 5
            show sera_smile
            sera"\Correct!\n"
            hide sera_smile
            jump sceneTEST1_6
        
        "FALSE":
            show sera_sad
            sera "Stop messing around!"
            hide sera_sad
            jump sceneTEST1_6
            
label sceneTEST1_6:
    show sera_doubt
    sera "\#6 Rough Endoplasmic Reticulum\n"
    extend "\Vesicles are what makes this organelle 'rough'.\n"
    hide sera_doubt
    menu:
        "TRUE":
            show sera_sad
            sera "Stop messing around!"
            hide sera_sad
            jump sceneTEST1score
        
        "FALSE":
            $ score =+ 6
            $ S_score =+ 6
            show sera_smile
            sera"\Correct!\n"
            hide sera_smile
            jump sceneTEST1score

label sceneTEST1score:
    if S_score > 3:
        show sera_smile
        sera "You passed!"
        hide sera_smile
        show piece1
        "One out of five pieces collected."
        hide piece1
        
        scene black with dissolve
        show splash20
        "Sera Kaibo'uu, the first Guardian"
        hide splash20
        jump sceneMISAKI
    else:
        show sera_sad
        sera "Sorry, you failed."
        hide sera_sad
        jump DEAD_END

label sceneMISAKI:
	misaki "Let's see your worth."

#source: PartII ; CellZ prototype
label sceneTEST2_1:
    scene abs72
    show misaki_sigh
    misaki "\#7 Smooth endoplasmic reticulum\n"
    extend "Is this organelle found in a plant or animal cell?"
    hide misaki_sigh
    menu:
        "Plant Cell":
            show misaki_angry
            misaki "Foolish."
            hide misaki_angry
            jump sceneTEST2_2
            
        "Animal Cell":
            show misaki_angry
            misaki "Foolish."
            hide misaki_angry
            jump sceneTEST2_2
            
        "Both":
            $ M_score =+ 1
            $ score =+ 7
            show misaki_smile
            misaki"\Correct!\n"
            hide misaki_smile
            jump sceneTEST2_2
            
label sceneTEST2_2:
    show misaki_sigh
    misaki "\#8 Mitochondrion\n"
    extend "Is this organelle found in a plant or animal cell?"
    hide misaki_sigh
    menu:
        "Plant Cell":
            show misaki_angry
            misaki "Foolish."
            hide misaki_angry
            jump sceneTEST2_3
            
        "Animal Cell":
            show misaki_angry
            misaki "Foolish."
            hide misaki_angry
            jump sceneTEST2_3
            
        "Both":
            $ M_score =+ 2
            $ score =+ 8
            show misaki_smile
            misaki"\Correct!\n"
            hide misaki_smile
            jump sceneTEST2_3
            
label sceneTEST2_3:
    show misaki_sigh
    misaki "\#9 Vacuole\n"
    extend "Is this organelle found in a plant or animal cell?"
    hide misaki_sigh
    menu:
        "Plant Cell":
            $ M_score =+ 3
            $ score =+ 9
            show misaki_smile
            misaki"\Correct!\n"
            hide misaki_smile
            jump sceneTEST2_4
            
        "Animal Cell":
            show misaki_angry
            misaki "Foolish."
            hide misaki_angry
            jump sceneTEST2_4
            
        "Both":
            show misaki_angry
            misaki "Foolish."
            hide misaki_angry
            jump sceneTEST2_4
            
label sceneTEST2_4:
    show misaki_sigh
    misaki "\#10 Cytosol\n"
    extend "Is this organelle found in a plant or animal cell?"
    hide misaki_sigh
    menu:
        "Plant Cell":
            $ M_score =+ 4
            $ score =+ 10
            show misaki_smile
            misaki"\Correct!\n"
            hide misaki_smile
            jump sceneTEST2_5
            
        "Animal Cell":
            show misaki_angry
            misaki "Foolish."
            hide misaki_angry
            jump sceneTEST2_5
            
        "Both":
            show misaki_angry
            misaki "Foolish."
            hide misaki_angry
            jump sceneTEST2_5

label sceneTEST2_5:
    show misaki_sigh
    misaki "\#11 Lysosome\n"
    extend "Is this organelle found in a plant or animal cell?"
    hide misaki_sigh
    menu:
        "Plant Cell":
            show misaki_angry
            misaki "Foolish."
            hide misaki_angry
            jump sceneTEST2_6
            
        "Animal Cell":
            show misaki_angry
            misaki "Foolish."
            hide misaki_angry
            jump sceneTEST2_6
            
        "Both":
            $ M_score =+ 5
            $ score =+ 11
            show misaki_smile
            misaki"\Correct!\n"
            hide misaki_smile
            jump sceneTEST2_6
            
label sceneTEST2_6:
    show misaki_sigh
    misaki "\#12 Centrosome\n"
    extend "Is this organelle found in a plant or animal cell?"
    hide misaki_sigh
    menu:
        "Plant Cell":
            show misaki_angry
            misaki "Foolish."
            hide misaki_angry
            jump sceneTEST2score
            
        "Animal Cell":
            show misaki_angry
            misaki "Foolish."
            hide misaki_angry
            jump sceneTEST2score
            
        "Both":
            $ M_score =+ 6
            $ score =+ 12
            show misaki_smile
            misaki"\Correct!\n"
            hide misaki_smile
            jump sceneTEST2score
            
label sceneTEST2score:
    if M_score > 3:
        show misaki_shock
        misaki "How unexpected, you passed."
        jump sceneRIO
    else:
        show misaki_rage
        misaki "Why bother collecting the jewel if you can't pass its test?."
        jump DEAD_END
  
label sceneRIO:  
	rio "Let's see your worth."

#test 3
label sceneTEST3_1:
    scene fnt7dark
    show rio_sigh
    rio "\#13. Its main function is to rewrite rRNA and combine it with proteins.\n"
    extend "What is this organelle?"
    hide rio_sigh
    menu:
        "VESICLE":
            show rio_angry
            rio "Hmm... bad."
            hide rio_angry
            jump sceneTEST3_2
        
        "NUCLEOLUS":
            $ R_score =+ 1
            $ score =+ 13
            show rio_smile
            rio"\Good choice.\n"
            hide rio_smile
            jump sceneTEST3_2
        
        "CELL WALL":
            show rio_angry
            rio "Hmm... bad."
            hide rio_angry
            jump sceneTEST3_2        

label sceneTEST3_2:
    show rio_sigh
    rio "\#14. It stores the cell's  DNA and coordinates the cell's activities.\n"
    extend "What is this organelle?"
    hide rio_sigh
    menu:
        "NUCLEUS":
            $ R_score =+ 2
            $ score =+ 14
            show rio_smile
            rio"\Good choice.\n"
            hide rio_smile
            jump sceneTEST3_3
        
        "VESICLE":
            show rio_angry
            rio "Hmm... bad."
            hide rio_angry
            jump sceneTEST3_3
        
        "CYTOPLASM":
            show rio_angry
            rio "Hmm... bad."
            hide rio_angry
            jump sceneTEST3_3

label sceneTEST3_3:
    show rio_sigh
    rio "\#15. The site where RNA translation occurs.\n"
    extend "What is this organelle?"
    hide rio_sigh
    menu:
        "CENTRIOLE":
            show rio_angry
            rio "Hmm... bad."
            hide rio_angry
            jump sceneTEST3_4
        
        "VACUOLE":
            show rio_angry
            rio "Hmm... bad."
            hide rio_angry
            jump sceneTEST3_4
            
        "RIBOSOME":
            $ R_score =+ 3
            $ score =+ 15
            show rio_smile
            rio"\Good choice.\n"
            hide rio_smile
            jump sceneTEST3_4
            
label sceneTEST3_4:
    show rio_sigh
    rio "\#16. It serves as transport and temporary storage of food and enzymes.\n"
    extend "What is this organelle?"
    hide rio_sigh
    menu:
        "VESICLE":
            $ R_score =+ 4
            $ score =+ 16
            show rio_smile
            rio"\Good choice.\n"
            hide rio_smile
            jump sceneTEST3_5
        
        "CELL WALL":
            show rio_angry
            rio "Hmm... bad."
            hide rio_angry
            jump sceneTEST3_5
        
        "SOFT ENDOPLASMIC RETICULUM":
            show rio_angry
            rio "Hmm... bad."
            hide rio_angry
            jump sceneTEST3_5
            
label sceneTEST3_5:
    show rio_sigh
    rio "\#11. It receives proteins and lipids from the rough endoplasmic reticulum, modifies, sorts, concentrates and packs them.\n"
    extend "What is this organelle?"
    hide rio_sigh
    menu:
        "CENTROSOME":
            show rio_angry
            rio "Hmm... bad."
            hide rio_angry
            jump sceneTEST3_6
        
        "VESICLE":
            show rio_angry
            rio "Hmm... bad."
            hide rio_angry
            jump sceneTEST3_6
        
        "GOLGI BODY":
            $ R_score =+ 5
            $ score =+ 17
            show rio_smile
            rio"\Good choice.\n"
            hide rio_smile
            jump sceneTEST3_6
        
label sceneTEST3_6:
    show rio_sigh
    rio "\#12. It is a network of protein fibers supporting cell shape and anchoring organelles within the cell.\n"
    extend "What is this organelle?"
    hide rio_sigh
    menu:
        "CELL MEMBRANE":
            show rio_angry
            rio "Hmm... bad."
            hide rio_angry
            jump sceneTEST3_2
        
        "CYTOSKELETON":
            $ R_score =+ 6
            $ score =+ 18
            show rio_smile
            rio"\Good choice.\n"
            hide rio_smile
            jump sceneTEST3score
        
        "ROUGH ENDOPLASMIC RETICULUM":
            show rio_angry
            rio "Hmm... bad."
            hide rio_angry
            jump sceneTEST3score
            
label sceneTEST3score:
    if R_score > 3:
        show rio_shock
        rio "Good job in passing"
        jump sceneSHISUKA
    else:
        show rio_rage
        rio "Leave now or perish."
        jump DEAD_END        

label sceneSHISUKA:

label WISH:
    if score > 15:
        jump TRUE_END
    elif score > 9:
        jump GOOD_END
    else:
        jump BAD_END
    
label TRUE_END:
     "The Jewel of Cella has granted your true wish."
if score = 18:
    "///"
    ".:. TRUE END .:."
    jump finish
else:
    ".:. TRUE END .:."
    jump finish

label GOOD_END:
    "The Jewel of Cella has granted your true wish."
    "But it was not to go back to your world."
    
    scene fnt14day
    show haruha_happy
    haruha "Papa! Mama is calling for you."
    hide haruha_happy
    
    scene fntin6day
    show herena_smile
    herena "Happy anniversary, my dear."
    boy "Seven years in this world and I still don't know how your calendar works."
    
    
    ".:. GOOD END .:."
    jump finish
    
label BAD_END:
    "The Jewel of Cella has granted your true wish..."
    "But it was not to go back to your world."
    "The Jewel revealed to you the truth..."
    "That your true self is in the other world..."
    "Put into a coma after the accident..."
    "[girl] became a successful biologist..."
    "You felt happy for her..."
    "..."
    boy "*sobs*"
    boy "Is this my punishment?"
    ".:. BAD END .:."
    jump finsih
    
label DEAD_END:
    scene black with dissolve
    "You were unable to collect all the pieces of Cella's jewel."
    "You ended up living within the kingodm of Cellulae in solitude."
    "Until the end, you never knew what happended to you, how you got into the other world."
    ".:. DEAD END .:."
    jump finish
    
label finish:
    "Thank you for playing."
return
I think its because I defined too many images before being able to use them. :(

Post Reply

Who is online

Users browsing this forum: Semrush [Bot]