ID:178591
 
If I was going to call a proc, and I want to have a var in, like this:

mob/mob1/Click()
usr.proc1(M as src)
mob/proc/proc1()
src<<"you are the src"
M<<"you are the M"

It will not let me set the M to src. How would I go about doing this?
Loduwijk wrote:
If I was going to call a proc, and I want to have a var in, like this:

mob/mob1/Click()
usr.proc1(src)
mob/proc/proc1(atom/M)
src<<"you are the src"
M<<"you are the M"

It will not let me set the M to src. How would I go about doing this?


mob/mob1/Click()
usr.proc1(src)
mob/proc/proc1(atom/M)
set src= M
src<<"you are the src"
M<<"you are the M"


that what you want?
In response to Winbiko
Winbiko wrote:
Loduwijk wrote:
If I was going to call a proc, and I want to have a var in, like this:

mob/mob1/Click()
usr.proc1(src)
mob/proc/proc1(atom/M)
src<<"you are the src"
M<<"you are the M"

It will not let me set the M to src. How would I go about doing this?


mob/mob1/Click()
usr.proc1(src)
mob/proc/proc1(atom/M)
set src= M
src<<"you are the src"
M<<"you are the M"


that what you want?

He is creating me a battle system and its not working because of errors that come up with:

error: Bad input type: src

If you want to see the battle system code then I will post if means be as I nor him knows how to fix it and I don't know how to use Battle Systems fullstop.

Lee
In response to Winbiko
I have a question, but it is not about that code you showed. Why did you reply with quote then change what I said in your reply? Just wondering.
In response to Loduwijk
oh cause I needed to look at your code as a fixed it.
In response to Winbiko
Oh, all right. BTW, yes that is what I needed. Thanks.
In response to Loduwijk
cool.