• To improve security, we will soon start forcing password resets for any account that uses a weak password on the next login. If you have a weak password or a defunct email, please update it now to prevent future disruption.

Ren'Py Phone system

BigT141

New Member
May 5, 2024
4
0
I had this error, it's not really an error the thing is it messes up my game when I click on the girl's states it’s all good till I click on one girl it advances the game in the background how!!? I debug the code many times but don’t know why each time I click on one girl state in advance or advanced in a weird way it’s a standbox so i get it, let’s say i am in a room and try to open the girl states so it advanced in my code of this room there is a door that you can’t go it jump to this label which it the next label that in the code of the room, maybe I didn’t explain it much but the code and some pics could help
The code:
“This for the app”
label phonePal(girl, name, love, lust, dominance, submissive, power):
show screen central_stats(girl, name, love, lust, dominance, submissive, power)
return


screen relationship01(): ##page 1 of 6
zorder 1
modal True
add "Mobile/Backgrounds/phone_bg[phonebackground].png" at phonepos
add "Mobile/Backgrounds/phone_rel_1.png" at phonepos

imagebutton:
xalign 0.92
yalign 0.615
auto "Mobile/Buttons/phone_middle_button_%s.png"
action [Hide("relationship01"),Hide("wallpapers"),Show("phone")]
“Declare for some girls”
if girl1_phone == True:
imagebutton:
xalign 0.89
yalign 0.1
auto "mobile/icons/girl1_icon_%s.png"
action [Hide("relationship01"), Call("phonePal", 1, girl1_name, girl1_love, girl1_lust, girl1_dominance, girl1_submissive, girl1_power)]
tooltip "[girl1_name]"

if girl2_phone == True:
imagebutton:
xalign 0.96
yalign 0.1
auto "mobile/icons/girl2_icon_%s.png"
action [Hide("relationship02"), Call("phonePal", 2, girl2_name, girl2_love, girl2_lust, girl2_dominance, girl2_submissive, girl2_power)]
tooltip "[girl2_name]"


$ tooltip = GetTooltip()
if tooltip:
vbox:
xalign 0.93
yalign 0.05
frame:
text tooltip size 15

“Here is the what states to show”
screen central_stats(girl, name, love, lust, dominance, submissive, power):
zorder 1
modal True
add "mobile/backgrounds/phone_bg[phonebackground].png" at phonepos
#$ print(girl)
add "mobile/stats_bg/girl[girl]_bg.png" at phonepos

imagebutton:
xalign 0.92
yalign 0.615
auto "Mobile/Buttons/phone_middle_button_%s.png"
action [Hide("central_stats"),Hide("wallpapers"), Show("relationship01")]

vbox:
style_prefix "stats_style"
xalign 0.98
yalign 0.4
textbutton "[name]'s\nStats"
hbox:
vbox:
text "Love"
text "Lust"
text "Dominance"
text "Submission"
text "Power"
vbox:

text " [love]"
text " [lust]"
text " [dominance]"
text " [submissive]"
text " [power]"
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Respected User
Donor
Jun 10, 2017
10,214
14,969
[...] it’s all good till I click on one girl it advances the game in the background how!!?
[...]
The code:
“This for the app”
Python:
label phonePal(girl, name, love, lust, dominance, submissive, power):
    show screen central_stats(girl, name, love, lust, dominance, submissive, power)
    return
[...]
            action [Hide("relationship01"), Call("phonePal", 1, girl1_name, girl1_love, girl1_lust, girl1_dominance, girl1_submissive, girl1_power)]
Well, what's the issue ? You are asking Ren'Py to advance the game to the next dialog line, and it make it advance to the next dialog line.


Reading the doc, especially the part regarding , or alternatively the part regarding the screen action, would solve the issue.
 
  • Like
Reactions: BigT141