Demote()
set category = "Game Mod"
var/list/stafftrial=new
for(var/d in staff) stafftrial+=d
for(var/b in trialstaff) stafftrial+=b
var/x=input("Who do you want to demote?","Demote")as null|anything in stafftrial
if(!x) return
if(x==ckey) {src<<"You cannot demote yourself.";return}
if(alert("Are you sure you want to demote [x]?",,"Yes","No")=="Yes")
if(x in staff)
staff-=x
world<<"[x] has been demoted from staff by [src]."
if(x in trialstaff)
trialstaff-=x
world<<"[x] has been demoted from trialstaff by [src]."
for(var/mob/t in world) if(t.client) if(t.ckey==x) {t.verbs-=typesof(/mob/Trial/verb,/mob/staff/verb);break}
Problem description: I get a compile error- Testing.dm:36:error:/mob/staff/verb: compile failed (possible infinite cross-reference loop)
-Doh