mob/var/list/ignoreing = new
mob/verb/tell(mob/PC/M in world,msg as text)
if(usr in M.ignoreing)
if(M == usr)
M << "You told yourself, \"[msg]\""
else
M << "[usr] told you, \"[msg]\""
else
M <<"<b> [M] is ignoreing you!"
mob/verb/Ignore()
set category = "Communication"
var/whotoignore = input("Who do you want to ignore?","Type the name of the person you wish to ignore") as text|null
if(whotoignore == null)
return
else
if(whotoignore == key in world)
usr.ignoreing.Add(whotoignore)
usr<<"<b> \blue [whotoignore] is added to your ignore list!"
else
usr<<" <b> Sorry, [whotoignore] must be in the world to be ignored!"
mob/verb/Unignore()
set category = "Communication"
var/whotounignore = input("Who do you want to take off your ignore list?") as text|null
usr<< "[usr.ignoreing]"
if(whotounignore == null)
return
else
<b>usr.ignoreing.Cut(whotounignore)</b> //problem is here
usr<<"<b> \blue [whotounignore] is now off of your ignore list!"
Problem description:
The ignore function works fine, but how do I get the whotounignore to subtract from the list? I've never understood how to subtract from a list. Can someone please explain?