To this end, I've tried making an example interaction hub, cannibalizing the tutorial game's selection screen, changing everything I have a rough idea about, and figuring it out from there. Problem is, as soon as the game gets to the point where it has to show the screens, it gives an error. To be frank, I don't have any idea how most of the code actually works, and I'm having trouble understanding the documentation.
The screens:
Code: Select all
screen look:
side "tl":
area (250, 40, 548, 400)
viewport:
yadjustment adj
mousewheel True
vbox:
for label, name in look:
textbutton name.caption:
action Return(label)
null height 20
bar adjustment adj style "vscrollbar"
screen talk:
side "c l":
area (250, 40, 548, 400)
viewport:
yadjustment adj
mousewheel True
vbox:
for label, name in look:
textbutton name.caption:
action Return(label)
null height 20
bar adjustment adj style "vscrollbar"
Code: Select all
label council_intro01_look_nexus:
init python:
look = [
("council_intro01_look_statue", _("statue")),
("council_intro01_look_gothicbuilding", _("gothic building")),
]
talk = [
("council_intro01_talk_sam", _("Sam")),
]
call screen look
call screen talk
$ renpy.pause(hard=True)
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script_council_intro.rpy", line 101, in script
call screen look
File "renpy/common/000statements.rpy", line 471, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
File "game/customscreens.rpy", line 1, in execute
screen look:
File "game/customscreens.rpy", line 1, in execute
screen look:
File "game/customscreens.rpy", line 3, in execute
side "tl":
File "game/customscreens.rpy", line 6, in execute
viewport:
File "game/customscreens.rpy", line 6, in keywords
viewport:
NameError: name 'adj' is not defined
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script_council_intro.rpy", line 101, in script
call screen look
File "C:\renpy1\renpy-6.99.12.4-sdk\renpy\ast.py", line 1706, in execute
self.call("execute")
File "C:\renpy1\renpy-6.99.12.4-sdk\renpy\ast.py", line 1724, in call
return renpy.statements.call(method, parsed, *args, **kwargs)
File "C:\renpy1\renpy-6.99.12.4-sdk\renpy\statements.py", line 145, in call
return method(parsed, *args, **kwargs)
File "renpy/common/000statements.rpy", line 471, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
File "C:\renpy1\renpy-6.99.12.4-sdk\renpy\exports.py", line 2526, in call_screen
rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
File "C:\renpy1\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:\renpy1\renpy-6.99.12.4-sdk\renpy\display\core.py", line 2538, in interact
scene_lists.replace_transient()
File "C:\renpy1\renpy-6.99.12.4-sdk\renpy\display\core.py", line 822, in replace_transient
self.remove(layer, tag)
File "C:\renpy1\renpy-6.99.12.4-sdk\renpy\display\core.py", line 1107, in remove
self.hide_or_replace(layer, remove_index, "hide")
File "C:\renpy1\renpy-6.99.12.4-sdk\renpy\display\core.py", line 1031, in hide_or_replace
d = oldsle.displayable._hide(now - st, now - at, prefix)
File "C:\renpy1\renpy-6.99.12.4-sdk\renpy\display\screen.py", line 443, in _hide
self.update()
File "C:\renpy1\renpy-6.99.12.4-sdk\renpy\display\screen.py", line 578, in update
self.screen.function(**self.scope)
File "game/customscreens.rpy", line 1, in execute
screen look:
File "game/customscreens.rpy", line 1, in execute
screen look:
File "game/customscreens.rpy", line 3, in execute
side "tl":
File "game/customscreens.rpy", line 6, in execute
viewport:
File "game/customscreens.rpy", line 6, in keywords
viewport:
File "<screen language>", line 7, in <module>
NameError: name 'adj' is not defined
Sorry for this noob crap. Any help is appreciated.