Delete_GM(mob/M as mob in GMs)
set category = "Host"
set desc="Strips any GM of their status and power"
if(M.key != src.key)
var/tmp/O = M.contents.Find(/obj/GM_Stone)
del(O)
usr << "\green <b>[M] is no longer a GM</b>"
M << "\red <b>[usr] just stripped you of your GM powers"
world << "<b>[M] is no longer a GM"
Problem description: I'm working on a GM system for a game. A GM gains all their powers from an item called a GM stone which contains all their special verbs.
There is also a function to identify the host and give him the power to add and delete GMs. The adding part is already in working order; when the host selects the mob to be GMed that mob is added to a list called "GMs". An item is also added to their contents called "GM_stone"
What I want to do is give the host the ability to both remove the GM's powers (the GM_stone) and delete them from the GMs list... any idea why the above code doesn't work?