scoreboard players set .number_max dialog 2
execute if score .number dialog matches 0 store result score .random dialog run random value 1..8


execute if score .number dialog matches 1.. if score .random dialog matches 1 run function main:dialog/text/text {"name":"Tobie","name_color":"yellow","text":"Let`s get this over with.","text_color":"white","duration":10}
execute if score .number dialog matches 1.. if score .random dialog matches 2 run function main:dialog/text/text {"name":"Tobie","name_color":"yellow","text":"Send me to hell already.","text_color":"white","duration":10}
execute if score .number dialog matches 1.. if score .random dialog matches 3 run function main:dialog/text/text {"name":"Tobie","name_color":"yellow","text":"Be gentle..","text_color":"white","duration":30}
execute if score .number dialog matches 2.. if score .random dialog matches 3 run function main:dialog/text/text {"name":"Tobie","name_color":"yellow","text":"...j-just kill me.","text_color":"white","duration":10}
execute if score .number dialog matches 1.. if score .random dialog matches 4 run function main:dialog/text/text {"name":"Tobie","name_color":"yellow","text":"Ah yeah, you again...","text_color":"white","duration":30}
execute if score .number dialog matches 1.. if score .random dialog matches 5 run function main:dialog/text/text {"name":"Tobie","name_color":"yellow","text":"You`re an asshole mate.","text_color":"white","duration":10}
execute if score .number dialog matches 1.. if score .random dialog matches 6 run function main:dialog/text/text {"name":"Tobie","name_color":"yellow","text":"Your father would be proud...","text_color":"white","duration":30}
execute if score .number dialog matches 2.. if score .random dialog matches 6 run function main:dialog/text/text {"name":"Tobie","name_color":"yellow","text":"...cuz` you`re beating a disabled.","text_color":"white","duration":10}
execute if score .number dialog matches 1.. if score .random dialog matches 7 run function main:dialog/text/text {"name":"Tobie","name_color":"yellow","text":"Bitch.","text_color":"white","duration":30}

execute if score .random dialog matches 8 if entity @a[tag=melee_class] run function main:dialog/text/text {"name":"Tobie","name_color":"yellow","text":"Shred me to pieces.","text_color":"white","duration":10}
execute if score .random dialog matches 8 if entity @a[tag=ranged_class] run function main:dialog/text/text {"name":"Tobie","name_color":"yellow","text":"Fill me up with bullets.","text_color":"white","duration":10}