Code:
function getQuest(p: player):
if {%{_p}%'s uuid::*} is set:
send "&cYou already have a ongoing quest! Use /currentquest to view your current quest." to {_p}
else:
set {%{_p}'s uuid::*} to random element out of {quests::*}
that is my code, I would like to know how would i set a function to the list {quest::*} and how would i then get that function out of the list randomly and then run it?