Page 1 of 1

Gallery Images seen count

Posted: Fri Nov 24, 2023 12:49 pm
by henne

I use pretty much this gallery code and it works, so thanks :)

My problem.
I want to count how many images were already seen by the player, so something like:

Code: Select all

default persistent.bg_seen = 0
default persistent.max_bg_seen = #whatever my max will be

##Somewhere in my gallery screen:

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.