ID:2237977
 
Hello everyone,

I am attempting a Jail System. I wanted the system to work like this:

*Player B jails Player A

*Player A get's sent to jail and has all verbs removed

*Later Player B Release's Player A

*Player A receives their all their verbs back

I thought this would not only be better, but easier than just having a variable that cancels out verbs if they are jailed. I have everything working up until the verbs being taken. I imagine I could simply add their verbs to a list, remove them, then add the verbs from the list. Though I do not know exactly how to remove the verbs. Would I have to actually go by types such as "src.verbs-= typesof(/mob/Magic/verb)". Thank you for your assistance!
As much as I want to say to forget verbs entirely...

The "verbs" list is, to a certain extent, a list. Obviously, you can add and remove from it. You can store the verbs in a separate list, empty it, then add the old verbs back:
// store the verbs in a separate list
var list/old_verbs = verbs.Copy()

// empty the verbs list
verbs.Cut()

// add the verbs back
verbs += old_verbs
In response to Kaiochao
Thank you very much for providing me the solution to my problem. It was exactly what I needed and for that I thank you again!