ID:142176
 
Code:
mob
proc
Gain(add,g,f,a,u,c)
var/Z=add
Z+=g
if(f) F_damage(src,g,"#32cd32")
if(a) view(src)<<"You gained [g] [u]!"
if(c) call(src,text2path(c))()
Garp(p,add,g,f,a,u,c)
var/stat/Y=vars[add]
if(!p) Y.val+=g
else Y.maxval+=g
if(f) F_damage(src,g,"#32cd32")
if(a) view(src)<<"You gained [g] [u]!"
if(c) call(src,"[text2path(c)]")()
Okay() src<<"DEE DEEE" // test verb


Problem description:
I can't get to use the Call() proc correctly, could anyone please help me with how I'd set up a proc such as that Okay() one?

Thanks in advance,

Rick
The Gain() proc should work correctly. Make sure c is an actual proc, otherwise text2path would return null. If it is, then try enclosing the text2path(c) part in parenthises. It could be an order of operations error (I don't know BYOND's order of operations enough to be positive).
In response to Jeff8500
The thing is, do I need to fill in this /mob/proc/Okay or /mob/proc/Okay() that or something else? I tried both of them and they didn't work.
In response to Sokkiejjj
Just the path of the proc would suffice, so you would use /mob/proc/okay. Here's a piece of code I made a while back that works similarly to how yours is supposed to:

call(Pokemon,text2path("/mob/Pokemon/proc/[Attack2text(Pokemon.attacks[2])]"))()


I think your problem might be that you aren't adding the () part (which is for args) to the end.
In response to Jeff8500
Alot of thanks, it worked.