I try and check and see if anyone has the leader's title before I make them the leader.
for(var/mob/M in leaders)
if(leaders["[M.name]"] != "Star Captain")
But everytime I try and run it, nothing happens. So I don't know if I'm doing it wrong or what. Can I get some help?
Also, this shouldn't affect it in any way but, name is a built-in text variable. You don't need to put it in quotes.