ID:268839
 
var/attack = pick(atk1(),atk2(),atk3(),atk4(),atk5())


How would I executer that? I know you can't do src.attack, but, please, helpeth me. :(
Thanks for reading the post.
Hell Ramen wrote:
> var/attack = pick(atk1(),atk2(),atk3(),atk4(),atk5())

How would I executer that? I know you can't do src.attack, but, please, helpeth me. :(
Thanks for reading the post.

Not sure you can do it that way but you could always do this:

var/attack = pick("attack1","attack2","attack3","attack4","attack5")
if(attack == "attack1")
atk1()
if(attack == "attack2")
atk2()
if(attack == "attack3")
atk3()
if(attack == "attack4")
atk4()
if(attack == "attack5")
atk5()


I think this is what you are trying to achieve? If not let me know and explain to me what you are, then I can help you.



--Man
In response to The-Man-On-The-Moon
Dur, it is, I should've atleast thought about that. >_<
Thanks!
In response to Hell Ramen
Hell Ramen wrote:
Dur, it is, I should've atleast thought about that. >_<
Thanks!

No problem!




--Man
var/attack = pick("atk1","atk2","atk3","atk4","atk5")
call(src,attack)