usr.bending << pick(
if(prob(10))
usr.bender == "Fire"
usr << "You were born with the ability to control Fire!",
if(prob(10))
usr.bender == "Water"
usr << "You were born with the ability to bend Water!",
if(prob(15))
usr.bender == "Earth"
usr << "You were born as an Earth Bender!",
if(prob(1))
usr.bender == "Air"
usr << "You were born as one of the surviving Air Nomads!",
if(prob(64))
usr.bender == "None"
usr << "You were born without the ability to bend the elements."
)
Problem description:
Login.dm:11:error: usr: missing comma ',' or right-paren ')'
Login.dm:11:error: usr: expected end of statement
Login.dm:11:error: ,: expected }
Login.dm:4:error: location of top-most unmatched {
I don't know what's wrong with it, it looks okay to me but eh, I am obviously doing something wrong. It doesn't change when I use 'else' and, i've looked over it many times, trying different things but, nothing i've tried seems to work.
There is never a situation where you put an if() statement inside a proc call.