mob/verb
MakeKage(mob/M in world)
if(M.charvillage == "Hidden Leaf Village")
if(M.charrank == "Jounin")
if(M.kage == 0)
world << "[M] is now the Hokage."
M.kage = 1
M.charrank = "Hokage"
else
M << "You already a kage."
else
M << "Your not Jounin rank yet."
if(M.charvillage == "Hidden Sand Village")
if(M.charrank == "Jounin")
if(M.kage == 0)
world << "[M] is now the Kazekage."
M.kage = 1
M.charrank = "Kazekage"
else
M << "You already a kage."
else
M << "Your not Jounin rank yet."
if(M.charvillage == "Hidden Mist Village")
if(M.charrank == "Jounin")
if(M.kage == 0)
world << "[M] is now the Mizukage."
M.kage = 1
M.charrank = "Mizukage"
else
M << "You already a kage."
else
M << "Your not Jounin rank yet."
if(M.charvillage == "Hidden Rock Village")
if(M.charrank == "Jounin")
if(M.kage == 0)
world << "[M] is now the Tsuchikage."
M.kage = 1
M.charrank = "Tsuchikage"
else
M << "You already a kage."
else
M << "Your not Jounin rank yet."
if(M.charvillage == "Hidden Cloud Village")
if(M.charrank == "Jounin")
if(M.kage == 0)
world << "[M] is now the Raikage."
M.kage = 1
M.charrank = "Raikage"
else
M << "You already a kage."
else
M << "Your not Jounin rank yet."
else
M << "Your not in a village, that has kages."
Problem description:
everytime I use it, I get two messages. The "Your not in a village, that has kages." and "[M] is now [type of kage]....help please..
Here, analyze this code. It does essentially the same thing as your code wants to be doing, only more efficiently and with wookies instead of hokey anime jibberish.