It's my first post here.
I was reading before many posts, when some error pop's out, but it didn't helped me.
Okay, so first...
I tried to make screen buttons, one for fraction points and other for stats points of player.
I wrote this (sorry i don't know how to paste my .rpy docs, there is no problem with indentation):
Code: Select all
screen button:
vbox xalign 1.0 yalign 0.1:
textbutton "Punkty frakcji" action ui.callsinnewcontext("aff_screen_label")
screen aff_screen:
frame:
has vbox
text "Wilkołaki: [werewolfs_points] pkt"
text "Wampiry: [vampires_points] pkt"
text "Ludzie: [people_points] pkt"
text "Elfy: [elves_points] pkt"
text "Orkowie: [orks_points] pkt"
textbutton "Wróć" action Return()
label aff_screen_label:
call screen aff_screen
return
##
screen button:
vbox xalign 0.1 yalign 0.1:
textbutton "Punkty statystyk" action ui.callsinnewcontext("stats_screen_label")
screen stats_screen:
frame:
has vbox
text "Charyzma: [charm_points] pkt"
text "Siła: [strenght_points] pkt"
text "Inteligencja: [intelligance_points] pkt"
text "Zręczność: [agility_points] pkt"
text "Szczęście: [luck_points] pkt"
textbutton "Wróć" action Return()
label stats_screen_label:
call screen stats_screen
returnMy second problem is:
When character can make a choice, i wrote some effects, but it make an error.
My code:
Code: Select all
"Uciekłaś z królestwa":
$ big_escape = True
if race_werewolf == True:
$ werewolfs_points -= 100
elif race_vampire == True:
$ vampires_points -= 100
elif race_ork == True:
$ orks_points -= 100
elif race_human == True:
$ people_points -= 100
elif race_elves == True:
$ elves_points -= 100
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 253, in script
if race_werewolf == True:
File "game/script.rpy", line 253, in <module>
if race_werewolf == True:
NameError: name 'race_werewolf' is not defined
This error pop's up when i choose anything else than werewolf, and if i chooce werewolf than an error with another race pop's up.
Thank you so much in advance, to anyone who can help.