renpy/doc/reference/functions/renpy.seen label - Ren'Py

documentation index ◦ reference manual ◦ function index

# renpy.seen_label

Function: | renpy.seen_label | (label):

Returns true if the named label has executed at least once on the current user's system, and false otherwise. This can be used to unlock scene galleries, for example.

## Example

        if renpy.seen_label("one_time_only"):
            jump every_time

    label one_time_only:
        "This code only runs the first time through the game."

    label every_time:
        "While this runs every time through the game."

documentation index ◦ reference manual ◦ function index