Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
default persistent.bg_seen = 0
default persistent.max_bg_seen = #whatever my max will be
##Somewhere in my gallery screen:
"[persistent.bg_seen]/[persistent.max_bg_seen]"
So I was wondering how to achieve that. I know that I would need to add "$ persistent.bg_seen += 1" somewhere but I don't seem to find the right place for it, aside from adding it under every image but that seems a bit awkward?
If something seems unclear please ask as English is not my first language.
You need to add setvariable seen +=1 in action i dont know yor code. If you getting thumbnails as imagebuttons and have action to see real image add there setvariable but it must be one time