ID:178248
 
trainer1
DblClick()
if(src in oview(1))
if(usr.trainer1 == 0)
if(usr.clvl >= 2)
usr << "You have become much stronger!"
usr.Statups()
usr.trainer1 = 2
else
usr << "You are to far away to talk to him."
else
usr << "I have taught you all I know."
else
usr<< "You are not worthy of my teachings!"

I get: Test World.dm:58:error:else :'else' clause without preceding 'if' statement. I need a way to genrate mutiple elses so that the user knows why they can't get training from the trainer.
else
usr << "You are to far away to talk to him."
else
usr << "I have taught you all I know."
else
usr<< "You are not worthy of my teachings!"

Your problem is it's in the wrong order. Reverse the order of the elses so that the other elses aren't contained in the other elses. In other words, your tree of if/else should be like a bell curve. Do you know what I'm saying?
In response to Garthor
thx I figured it out just before I looked again. It should look like this for anybody who might want to know.
trainer1
DblClick()
if(src in oview(1))
if(usr.trainer1 == 0)
if(usr.clvl >= 2)
usr << "You have become much stronger!"
usr.Statups()
usr.trainer1 = 2
else
usr << "You are not ready for me to teach you!"
else
usr << "I have taught you all I know."
else
usr << "You are to far away to talk to him."
icon = 'icons/sprites/monk.dmi'