execute as @s[scores={evsw_survtrig=2222}] store result score @s evsw_survtrig run random value 1..65
scoreboard players set @s[scores={evsw_survtrig=4444}] evsw_powers 0
execute as @s[scores={evsw_survtrig=4444}] run return run function superpowers:book/power_setup
execute as @s[scores={evsw_survtrig=100}] run scoreboard players set @s evsw_powers 100
execute as @s[scores={evsw_survtrig=100}] run return run scoreboard players set @s evsw_survtrig 0


# red offensive
# dark red - offensive w drawbacks
# dark blue - defensive
# blue -support
# purple - based around certain playstyle
# dark green - balanced or creative gameplay
# gold - Uncategorisable



execute as @s[scores={evsw_survtrig=1}] run return run function superpowers:book/macro {"pow":"1","col":"red","mes":"Flame"}
execute as @s[scores={evsw_survtrig=2}] run return run function superpowers:book/macro {"pow":"2","col":"dark_blue","mes":"Summoner"}
execute as @s[scores={evsw_survtrig=3}] run return run function superpowers:book/macro {"pow":"3","col":"dark_green","mes":"Fly"}
execute as @s[scores={evsw_survtrig=4}] run return run function superpowers:book/macro {"pow":"4","col":"dark_blue","mes":"Solid Air"}
execute as @s[scores={evsw_survtrig=5}] run return run function superpowers:book/macro {"pow":"5","col":"dark_blue","mes":"Unbreakable"}
execute as @s[scores={evsw_survtrig=6}] run return run function superpowers:book/macro {"pow":"6","col":"dark_green","mes":"Intangible"}
execute as @s[scores={evsw_survtrig=7}] run return run function superpowers:book/macro {"pow":"7","col":"blue","mes":"Invisibility"}
execute as @s[scores={evsw_survtrig=8}] run return run function superpowers:book/macro {"pow":"8","col":"dark_green","mes":"Teleport"}
execute as @s[scores={evsw_survtrig=9}] run return run function superpowers:book/macro {"pow":"9","col":"red","mes":"Explosive"}
execute as @s[scores={evsw_survtrig=10}] run return run function superpowers:book/macro {"pow":"10","col":"red","mes":"Beast Mode"}
execute as @s[scores={evsw_survtrig=11}] run return run function superpowers:book/macro {"pow":"11","col":"dark_green","mes":"Speed"}
execute as @s[scores={evsw_survtrig=12}] run return run function superpowers:book/macro {"pow":"12","col":"dark_blue","mes":"Freeze Vision"}
execute as @s[scores={evsw_survtrig=13}] run return run function superpowers:book/macro {"pow":"13","col":"red","mes":"Lightning"}
execute as @s[scores={evsw_survtrig=14}] run return run function superpowers:book/macro {"pow":"14","col":"red","mes":"Weapon Master"}
execute as @s[scores={evsw_survtrig=15}] run return run function superpowers:book/macro {"pow":"15","col":"dark_purple","mes":"Sunlight Warrior"}
execute as @s[scores={evsw_survtrig=16}] run return run function superpowers:book/macro {"pow":"16","col":"dark_green","mes":"Dimension Hopper"}
execute as @s[scores={evsw_survtrig=17}] run return run function superpowers:book/macro {"pow":"17","col":"dark_purple","mes":"Deep Dark"}
execute as @s[scores={evsw_survtrig=18}] run return run function superpowers:book/macro {"pow":"18","col":"dark_green","mes":"Force"}
execute as @s[scores={evsw_survtrig=19}] run return run function superpowers:book/macro {"pow":"19","col":"dark_purple","mes":"Ocean Dweller"}
execute as @s[scores={evsw_survtrig=20}] run return run function superpowers:book/macro {"pow":"20","col":"blue","mes":"Punch Effects"}
execute as @s[scores={evsw_survtrig=21}] run return run function superpowers:book/macro {"pow":"21","col":"dark_blue","mes":"Resurrection"}
execute as @s[scores={evsw_survtrig=22}] run return run function superpowers:book/macro {"pow":"22","col":"red","mes":"Night Crawler"}
execute as @s[scores={evsw_survtrig=23}] run return run function superpowers:book/macro {"pow":"23","col":"red","mes":"Laser Eyes"}
execute as @s[scores={evsw_survtrig=24}] run return run function superpowers:book/macro {"pow":"24","col":"dark_blue","mes":"Combat Master"}
execute as @s[scores={evsw_survtrig=25}] run return run function superpowers:book/macro {"pow":"25","col":"dark_red","mes":"Destructive Wave"}
execute as @s[scores={evsw_survtrig=26}] run return run function superpowers:book/macro {"pow":"26","col":"dark_green","mes":"Soul Tether"}
execute as @s[scores={evsw_survtrig=27}] run return run function superpowers:book/macro {"pow":"27","col":"red","mes":"Poison Fog"}
execute as @s[scores={evsw_survtrig=28}] run return run function superpowers:book/macro {"pow":"28","col":"dark_blue","mes":"Traps"}
execute as @s[scores={evsw_survtrig=29}] run return run function superpowers:book/macro {"pow":"29","col":"red","mes":"Ninja"}
execute as @s[scores={evsw_survtrig=30}] run return run function superpowers:book/macro {"pow":"30","col":"dark_green","mes":"Miner"}
execute as @s[scores={evsw_survtrig=31}] run return run function superpowers:book/macro {"pow":"31","col":"red","mes":"Hex"}
execute as @s[scores={evsw_survtrig=32}] run return run function superpowers:book/macro {"pow":"32","col":"dark_green","mes":"Glitch"}
execute as @s[scores={evsw_survtrig=33}] run return run function superpowers:book/macro {"pow":"33","col":"dark_green","mes":"Energy Battery"}
execute as @s[scores={evsw_survtrig=34}] run return run function superpowers:book/macro {"pow":"34","col":"red","mes":"Dragon Rider"}
execute as @s[scores={evsw_survtrig=35}] run return run function superpowers:book/macro {"pow":"35","col":"red","mes":"Ice"}
execute as @s[scores={evsw_survtrig=36}] run return run function superpowers:book/macro {"pow":"36","col":"dark_green","mes":"Wizard"}
execute as @s[scores={evsw_survtrig=37}] run return run function superpowers:book/macro {"pow":"37","col":"red","mes":"Black Hole"}
execute as @s[scores={evsw_survtrig=38}] run return run function superpowers:book/macro {"pow":"38","col":"dark_red","mes":"Chaos Magic"}
execute as @s[scores={evsw_survtrig=39}] run return run function superpowers:book/macro {"pow":"39","col":"red","mes":"Muscle"}
execute as @s[scores={evsw_survtrig=40}] run return run function superpowers:book/macro {"pow":"40","col":"dark_green","mes":"Resize"}
execute as @s[scores={evsw_survtrig=41}] run return run function superpowers:book/macro {"pow":"41","col":"dark_green","mes":"Attraction/Repulsion"}
execute as @s[scores={evsw_survtrig=42}] run return run function superpowers:book/macro {"pow":"42","col":"dark_green","mes":"Web Slinger"}
execute as @s[scores={evsw_survtrig=43}] run return run function superpowers:book/macro {"pow":"43","col":"red","mes":"Meteor"}
execute as @s[scores={evsw_survtrig=44}] run return run function superpowers:book/macro {"pow":"44","col":"red","mes":"Smoke"}
execute as @s[scores={evsw_survtrig=45}] run return run function superpowers:book/macro {"pow":"45","col":"dark_green","mes":"Time"}
execute as @s[scores={evsw_survtrig=46}] run return run function superpowers:book/macro {"pow":"46","col":"dark_blue","mes":"Reaper"}
execute as @s[scores={evsw_survtrig=47}] run return run function superpowers:book/macro {"pow":"47","col":"red","mes":"Decay"}
execute as @s[scores={evsw_survtrig=48}] run return run function superpowers:book/macro {"pow":"48","col":"dark_green","mes":"Air"}
execute as @s[scores={evsw_survtrig=49}] run return run function superpowers:book/macro {"pow":"49","col":"dark_blue","mes":"Earth"}
execute as @s[scores={evsw_survtrig=50}] run return run function superpowers:book/macro {"pow":"50","col":"gold","mes":"Copy"}
execute as @s[scores={evsw_survtrig=51}] run return run function superpowers:book/macro {"pow":"51","col":"dark_blue","mes":"Infestation"}
execute as @s[scores={evsw_survtrig=52}] run return run function superpowers:book/macro {"pow":"52","col":"dark_purple","mes":"Quicksand"}
execute as @s[scores={evsw_survtrig=53}] run return run function superpowers:book/macro {"pow":"53","col":"dark_blue","mes":"Water"}
execute as @s[scores={evsw_survtrig=54}] run return run function superpowers:book/macro {"pow":"54","col":"red","mes":"Lava"}
execute as @s[scores={evsw_survtrig=55}] run return run function superpowers:book/macro {"pow":"55","col":"dark_red","mes":"Glass Cannon"}
execute as @s[scores={evsw_survtrig=56}] run return run function superpowers:book/macro {"pow":"56","col":"dark_red","mes":"Curse Fire"}
execute as @s[scores={evsw_survtrig=57}] run return run function superpowers:book/macro {"pow":"57","col":"blue","mes":"Possession"}
execute as @s[scores={evsw_survtrig=58}] run return run function superpowers:book/macro {"pow":"58","col":"red","mes":"Sonic"}
execute as @s[scores={evsw_survtrig=59}] run return run function superpowers:book/macro {"pow":"59","col":"dark_green","mes":"Plant"}
execute as @s[scores={evsw_survtrig=60}] run return run function superpowers:book/macro {"pow":"60","col":"blue","mes":"Hunter"}
execute as @s[scores={evsw_survtrig=61}] run return run function superpowers:book/macro {"pow":"61","col":"gold","mes":"Random"}
execute as @s[scores={evsw_survtrig=62}] run return run function superpowers:book/macro {"pow":"62","col":"dark_purple","mes":"Shadow"}
execute as @s[scores={evsw_survtrig=63}] run return run function superpowers:book/macro {"pow":"63","col":"dark_blue","mes":"Clone"}
execute as @s[scores={evsw_survtrig=64}] run return run function superpowers:book/macro {"pow":"64","col":"red","mes":"Wings"}
execute as @s[scores={evsw_survtrig=65}] run return run function superpowers:book/macro {"pow":"65","col":"blue","mes":"Telepath"}