How to remove verbs in javascript

The_Mastermind
13 Nov 2022, 14:50I've been trying to implement a verb that only appears on an object under certain conditions. I've heard that I should be able to use list add (object.displayverbs, "verb")
and list remove (object.displayverbs, "verb")
, but whenever I try, it seems to automatically correct the script to just list (object.displayverbs, "verb")
.
I looked into it more and someone else said I had to tick "Disable automatically generated verb list for this object", which I then did, but there's still the same issue.
Anyone know why this would happen?
Edit: So... it turns out it's because I misunderstood what I read. I was using the gui and was putting it into a run javascript command, which has a "JS." prefix I wasn't aware of. I removed that in code view.