var/verbpicked="flight"
src.+[verbpicked]+()
or however you do strings or something similar to this?
just was wondering is it possible to call a verb by a string like
var/verbpicked="flight" or however you do strings or something similar to this? |
Feb 5 2017, 6:58 pm
Best response
|
|
http://www.byond.com/docs/ref/info.html#/proc/call
|
is there a way i can do it where it calls a verb based on a var?
var/skill="test" like how would i do it in that fashion is it doable? |
and that code you gave me doesnt seem to do anything when i tried to get it to call a verb
|
If you're specifying the whole path to the verb/proc, use text2path().
mob/verb/Test(skill in list("A","B")) Otherwise you can just do like so: mob/verb/A() |