viewtopic.php?f=51&t=50153&start=105
The thing is, the player can access the phone at any time they want.
And sometimes they will get daily messages based on real time (month/day).
For example:
Code: Select all
label messenger:
if month is 1 and day is 1:
jump d0101
label d0101:
show screen telegram
python:
msg("Hello! what's up?", p=2, who=1)
So let's just say that they clicked on the messenger and there was a message for that day and play it.
If on the same day they click on the messenger again, "label messenger" with redirect them again to "label d0101" and will play it again.
What I want to know is if there's anything I can add at the end of the messenger conversation that "blocks" the person from playing it again.
When they click "label messenger" -> "label d0101", the messages will stay there as if they were a real conversation that the person had already answered.
To make it short:
Is that a anything I can add to the code that makes Renpy "understand" that they shouldn't go back to the beggining of "label d0101" but instead, jump to this part where the conversation already finished?
I believe it could be something like:
Code: Select all
label messenger:
if month is 1 and day is 1:
jump d0101
label d0101:
if labelplayed:
jump messenger
if labelnotplayed:
jump d0101begin
label d0101begin:
show screen telegram
python:
msg("Hello! what's up?", p=2, who=1)
###### END ALL CONVERSATION HERE ######
$ labelplayed ()
Should I define "labelplayed" and "labelnotplayed"? How? It's been some time I don't use Renpy, so I'm kind of slow now
Since I'm not using "$ del_all_msg()" at the end, the "messenger" will keep the texts from "label d0101" on the chat.
Thank you so much.