$execute if score @s movie matches $(movieend) run return run function ws:misc/cinema/movieend
$execute if score @s movie matches $(nextframe) at @s run function ws:misc/cinema/movie/$(movieprefix)/screen$(frame)
scoreboard players add @s movie 1