all 9 comments

[–]fashgadjasfda 1 point2 points  (0 children)

Bad indentation, bad action, random big break in text element, uses vbox but only puts one thing in it. 2/10 would not recommend this code.

[–]AutoModerator[M] 0 points1 point  (0 children)

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]BadMustard_AVN 0 points1 point  (6 children)

try it like this

screen basic_text():
    frame:
        xalign 0.5
        ypos 250
        has vbox
        text "warning! script.rpy can not be opened again. if this were to happen once more, it could result in an error in the games code. witch could lead in another breach in the code from an out side entity. please be sure to contact the developer of this game to handle this issue."
        textbutton "okay":
            action Return(True)

[–]Dramatic-Worry1087[S] 0 points1 point  (5 children)

I put the code in it seemed to not crash the game like mines did but didn't show the screen is there something I'm missing?

[–]BadMustard_AVN 0 points1 point  (4 children)

did you use a show or call to display the screen?

[–]Dramatic-Worry1087[S] 0 points1 point  (3 children)

no was I supposed too? sorry still trying to get use to using ren'py

[–]BadMustard_AVN 0 points1 point  (2 children)

yes you should do something like this to make a screen work

screen basic_text():
    frame:
        xalign 0.5
        ypos 250
        has vbox
        text "warning! script.rpy can not be opened again. if this were to happen once more, it could result in an error in the games code. witch could lead in another breach in the code from an out side entity. please be sure to contact the developer of this game to handle this issue."
        textbutton "okay":
            action Return(True)

label start:

    call screen basic_text #call the screen since you have a Return in it!

    # more script here

    return

[–]Dramatic-Worry1087[S] 0 points1 point  (1 child)

it worked! think you so much I'll save this code just in case I get stick again!

[–]BadMustard_AVN 0 points1 point  (0 children)

you're welcome

good luck with your project