Code:
Problem description:
How would i make a NPC(Non playing character(Game mob)) use a verb?
Jul 31 2014, 6:35 am
Best response
|
|
A verb is a proc that has been been made accessible to a client to call directly. Therefore, you would call it just like you would call any other proc.
|
In response to Pirion
|
|
obj So how would I do this one? |
As the verb uses usr, you need to first resolve that issue. For tips, check out "Dream Tutor: usr Unfriendly".
Once you've done that, you'll want to determine how /mob will access the path /obj/skill/clones/verb/Clones. 1: You can add the verb to the verbs list, this will not preserve the meaning of src. (src becomes /mob rather than /obj/skill/clones) 2: You can create an instance of the object and call object.Clones() (src is an object, though it doesn't have access to Clones(), so src.Clones is not correct here). This will preserve the meaning of src. |