ID:264992
 
Code:
Bump(atom/a)
if(ismob(a))
if(usr.chidori==1)
a:damage(90)
usr.chidori=0
usr.injutsu=0
else if(usr.cherry==1)
if(usr.dir==EAST)
a:dir=WEST
a:vel_x=40
a:damage(50)
a:knocked=1
view() << 'punch1.wav'
spawn(10)
a:knocked=0
else if(usr.dir==WEST)
a:dir=EAST
a:vel_x=-40
a:damage(50)
a:knocked=1
view() << 'punch1.wav'
spawn(10)
a:knocked=0
else if(usr.needler==1)
usr.needler=0
usr.needled=1
usr.injutsu=1
a:injutsu=1
var/obj/thousandneedles/t=new/obj/thousandneedles(a.loc)
spawn(30)
a:damage(80)
a:injutsu=0
usr.needled=0
usr.injutsu=0
del t
else if(usr.capturing==1)
a:injutsu=1
usr.capturing=0
usr.captured=1
var/obj/waterprison/w=new/obj/waterprison(a:loc)
spawn(20)
del w
new/obj/inwaterprison(a:loc)
if(a:knocked==1||usr.knocked==1)
a:injutsu=0
usr.captured=0
spawn(620)
a:injutsu=0
usr.captured=0
else
return


Problem description:
Evereything compiles fine but the Bump() proc isnt working in the game. Anyone know what's wrong?

What's wrong is that you ripped this... or you learned from one.

I make the assumption that this is a mob procedure.

1. You're not bumping properly when you test it.
2. You could probably make life a lot easier for yourself if you'd use the . operator instead of the : operator.
In response to Lugia319
You left out the part where bump doesn't always have a usr, just though I'd put that out there.

Also, @Zerok, don't rip, don't use rips, don't look at rips, don't think about looking at rips, just don't have anything to do with rips.
In response to Robertbanks2
Don't ever use : operator if you don't know what it does. It justs access a var that's not prototyped (In other words, not defined.) If you use it and the atom doesn't have that variable, runtime error.
Also, you shouldn't use usr in Bump() procedure. Though. usr is 'mostly' used on Click() procedures.