ID:141266
 
Code:
src."m[src.usm]"()


Problem description:
after chosing between move 1 move 2 move 3 or move 4 the var usm becomes 1 2 3 or 4 acording to the selection, after i want to call the proc. m1 m2 m3 or m4 according to the usm var.

m1 m2 m3 or m4 will be like Tackle, Water gun and etc.

i made a proc for each move in the game but when i call the
src."m[src.usm]"() i get errors, do you know any other way i can call it without errors?

it says "m[src.usm]" has no effect, plz help
Why would/could you possibly think that would work? I don't understand at all the crazy things some people post at Code Problems. I seriously want to know what made you think that would work.
</rant>

Look up call() in the Reference.
In response to Kaiochao
T_T

so new example
mob/var/uu="Tackle"

mob/proc
Tackle()
src<<"you used Tackle!"

is there a way i can call the proc src.uu() uu as Tackle instead of using src.Tackle because it would make my code a lot shorter. I'm not a very experienced coder and i dont speak english very well, and please dont tell me to read About procs.
In response to Karffebon
If you don't read about procs, you won't know anything about them.
Ask again when you learn English, or find someone who speaks your language.

You could change Tackle() to uu() in the code if you're really lazy.


If you want to be a programmer and don't like to type, that's unfortunate.
In response to Kaiochao
thanks for the info, i'm sorry for taking your time but i already figured out how to make a better attack system, i'll read guides to learn more.