tag @s add next_temp

scoreboard players operation #map_id temp = @s map_maker_id
execute store result storage pctf:map input.w int 1 run scoreboard players get #map_id temp
execute store result storage pctf:map input.y int 1 run scoreboard players add #map_id temp 1
function pctf:mode/z_map_maker/next_map/find with storage pctf:map input

tag @s remove next_temp