ID:2032374
 
Code:
mob/player

key_down(k)
if(k == "r")
Run()
if(k == "F5")
src.Admin()
key_up(k)
if(k == "r")
Run2()
proc
Run()
set hidden=1
/*if(src.in_water==1)
return*/

src.step_size = 10
src.icon_state = "Run"

Run2()
set hidden=1
src.step_size = 6
src.icon_state = ""


Problem description:
It isn't calling Run() when you press R.
A number of things could be causing this. Try inserting debug messages to see what's actually happening, like so:
mob/player
key_down(k)
world << "key_down([k])"
if(k == "r")
Run()
if(k == "F5")
src.Admin()

key_up(k)
world << "key_up([k])"
if(k == "r")
Run2()

proc
Run()
set hidden = TRUE
world << "Run"
/*if(in_water)
return*/

step_size = 10
icon_state = "Run"

Run2()
set hidden = TRUE
world << "Run2"
step_size = 6
icon_state = ""
In response to Kaiochao
I've already profiled it and it wasn't calling the procs. I just did the debug messages to be sure and it returns nothing.
In response to Edit Nero
Then that key_down() isn't being called, right?

So what's supposed to be calling key_down()?

If that's not being called either, what's supposed to be calling that?

etc.
Do you have a macro that calls key_down()?
In response to Super Saiyan X
No
Well, there's your problem.
In response to Super Saiyan X
You mean in the skin file?
Are you using a library like Forum_account's to handle keyboard shit?
In response to Super Saiyan X
Yeah. I'm using his.
That library is supposed to automatically generate macros for every key, as far as I'm aware...? Have you looked at the demos to see if you are missing anything essential?
In response to Super Saiyan X
Pretty sure I have everything I need.
Maybe try redownloading (delete and redownload) the library.

If you have multiple overrides of key_down/up(), make sure they call ..() so they all actually get called.
In response to Kaiochao
I plugged the .dm files directly into my source, I'm not using the lib.