ID:171106
 
How would I use a string inputted by the user as a verb name (and also check that it doesn't conflict with existing verbs)?
Sgeo wrote:
How would I use a string inputted by the user as a verb name (and also check that it doesn't conflict with existing verbs)?

I think you'll have to have a base verb already defined, then alter it's name.

mob/verb/base()

mob/verb/new_verb(name as test)
for(var/v in verbs)
if(v.name != name)
verbs += new mob/verbs/base/verb(name)
else
usr << "That name already exists!"


~X