Renpy Save Data -

label ending_1: $ persistent.total_endings += 1 "You found an ending."

label critical_battle: $ renpy.save("auto_save_battle", "Pre-Battle Checkpoint") renpy save data

# Create a default instance default player = PlayerStats() label ending_1: $ persistent