if(usr.field=="Physiology")
var/V=rand(1,2)
if(V==1)
var/Psiblast = pick(question_list3)
var/Answer = ParseQuestion3(usr,Psiblast)
if(Answer == TRUE)
goto End
else
if(V==2)
var/Psiblast = pick(question_list1)
var/Answer = ParseQuestion(usr,Psiblast)
if(Answer == TRUE)
goto End
else
else if(usr.field=="Microbiology")
var/Psiblast = pick(question_list2)
var/Answer = ParseQuestion2(usr,Psiblast)
if(Answer == TRUE)
goto End
End
usr.psionicgraphic()
So basically i'm getting an error:dm\Equipment.dm:460:error:goto End: bad link
dm\Equipment.dm:466:error:goto End: bad link
As I understand it goto will jump you to another part of the current proc which is what I'm trying to do, but since it's not happy with my format it's not doing that. Basically I'm just trying to base a couple of fairly complex vars on a character var without having a if/else tree that's 3 times larger than it needs to be. I would just use another proc that would trigger but I run into problems with the proc recognizing the vars from the rest of the earlier proc when I trigger a new proc so I was trying to stay in the same proc to avoid that.
mike-