scoreboard players set .upgrade_5 gunner 0

execute store result score .upgrade_5_random gunner run random value 1..100
execute if score .elemental_grimoire artifact matches ..0 if score .upgrade_5_random gunner matches 1..50 run function main:characters/gunner/shift/id1/activation
execute if score .elemental_grimoire artifact matches 1.. if score .upgrade_5_random gunner matches 1.. run function main:characters/gunner/shift/id1/activation