$execute store result storage ws:temp scientist[{UUID:$(UUID)}].pay int 1 run scoreboard players get @s scientist.capital
$function ws:work/misc/tier2/scientist/aec with storage ws:temp scientist[{UUID:$(UUID)}]
particle minecraft:happy_villager ~ ~2 ~ 0.1 0 0.1 0 10 normal
playsound minecraft:entity.arrow.hit_player player @s ~ ~ ~ 0.3 1
data remove storage ws:temp scientist