In response to Garthor
Ya'll just made a simple argument over dm tags, he should have used them i agree but it is nothing to argue about.
In response to Forgotten Skittles
In response to Popisfizzy
Popisfizzy wrote:
[link]

Ha ha ha very funny.
In response to Forgotten Skittles
I am using bump for when the arrow hits a mob but all it does is hit the mob and stays there til the mob moves.
obj
arrow
icon='GM.dmi'
icon_state="arrow"
density=1
mob/verb
Shoot_Arrow(mob/M in view(0))
var/obj/arrow/A = new(usr.loc)
walk(A,usr.dir)
spawn(15)
del(A)
Bump(M)
if(M!=usr)
var/hit=src.SPP
M<<"You were hit by [src]'s arrow for [hit] damage."
usr<<"You hit by [M] with your arrow for [hit] damage."
M.Health-=hit
sleep(5)
src.SPPexp+=hit
if(src.SPPexp>=src.SPPexpreq)
spup(src)
if(M.Health<=0)
deathcheck(M)
del(A)
sleep(15)
src.action=0
else
return
In response to Riku411811
Well first off if i'm not mistaken isnt M!=usr mean if M isnt the usr?
In response to Forgotten Skittles
wow can't believe i did that ohh well fixed that but it still hits a mob and stays there
mob/verb
Shoot_Arrow(mob/M in view(0))
var/obj/Quincy/arrow/A = new(usr.loc)
walk(A,usr.dir)
spawn(15)
del(A)
Bump(M)
if(!M==usr)
var/hit=src.SPP
M<<"You were hit by [src]'s arrow for [hit] damage."
usr<<"You hit [M] with your arrow for [hit] damage."
M.Health-=hit
sleep(5)
src.SPPexp+=hit
if(src.SPPexp>=src.SPPexpreq)
spup(src)
if(M.Health<=0)
deathcheck(M)
del(A)
sleep(15)
src.action=0
else
return
In response to Riku411811
That's because putting Bump(M) right in the middle there means it's calling src.Bump() on M. M, in this (and almost every case, because mobs tend not to occupy the same space) will be src / usr. So, you're making the player bump into themselves.

You need to do this:

obj/arrow
var/mob/owner //you need to set this to the player that fired the arrow when you create it
Bump(var/mob/M)
//obviously, only hurt mobs
if(ismob(M))
M << "You were hit by [owner]"
owner << "You hit [M]"
del(src)
In response to Riku411811
You seem to be doing something odd with Bump(). Look it up in the reference. Bump is called when something can no longer move because a dense object is in its way (it hits something)
I don't know what you're trying to do by calling Bump directly. You probably want something closer to

//The indentation's a little off
obj/Quincy/arrow/A
Bump(mob/M)
if(!ismob(M)) return..()
var/hit=M.SPP
M<<"You were hit by [src] for [hit] damage."
M.Health-=hit
if(M.Health<=0)
deathcheck(M)

mob/verb/Shoot_arrow(mob/M in view(0))
// the other stuff you already have
src.SPPexp+=hit
if(src.SPPexp>=src.SPPexpreq)
spup(src)

del(A)
spawn(15)
src.action=0


Actually, it needs more work than that, and that may not even compile, but hopefully it gives you a better idea of how to use Bump.

EDIT
See Garthor's post
In response to Garthor
I was doing great til i got to the part with the owner part all my things that should be owner are becoming undefined. here is what i got. sorry if it is wrong
obj/Quincy
arrow
icon='GM.dmi'
icon_state="arrow"
density=1
Bump(var/mob/M)
if(!M==owner)
var/hit=owner.SPP
M<<"You were hit by [owner]'s arrow for [hit] damage."
owner<<"You hit [M] with your arrow for [hit] damage."
M.Health-=hit
sleep(5)
owner.SPPexp+=hit
if(owner.SPPexp>=owner.SPPexpreq)
spup(owner)
if(M.Health<=0)
deathcheck(M)
del(src)
sleep(15)
owner.action=0

mob/verb
Shoot_Arrow(mob/M in view(0))
var/obj/Quincy/arrow/A = new(usr.loc)
walk(A,usr.dir)
A:owner=usr
spawn(15)
del(A)
In response to Riku411811
obj/Quincy/arrow/var/tmp/mob/owner=null

I think this is what your missing
In response to Forgotten Skittles
ok everything seems to be working fine except when it hits the mob it does not delete it hits them several times.
In response to Riku411811
obj/Quincy
arrow
icon='GM.dmi'
icon_state="arrow"
density=1
Bump(var/mob/M)
if(!M==owner)
var/hit=owner.SPP
M<<"You were hit by [owner]'s arrow for [hit] damage."
owner<<"You hit [M] with your arrow for [hit] damage."
M.Health-=hit
sleep(5)del(src)
owner.SPPexp+=hit
if(owner.SPPexp>=owner.SPPexpreq)spup(owner)
if(M.Health<=0)deathcheck(M)
sleep(15)
owner.action=0

Try that i'm not fully sure, but I think that will work.
In response to Forgotten Skittles
It won't.
In response to Garthor
I can't seem to fix this
obj/Quincy
arrow
icon='GM.dmi'
icon_state="arrow"
density=1
New()
spawn(15)
del(src)
Bump(var/mob/M)
if(ismob(M))
var/hit=owner.SPP
M<<"You were hit by [owner]'s arrow for [hit] damage."
owner<<"You hit [M] with your arrow for [hit] damage."
M.Health-=hit

owner.SPPexp+=hit
if(owner.SPPexp>=owner.SPPexpreq)
owner.spup(owner)
if(M.Health<=0)
M.deathcheck(M)
del(src)

mob/verb
Shoot_Arrow(mob/M in view(0))
var/obj/Quincy/arrow/A = new(usr.loc)
walk(A,usr.dir)
usr.action=1
A:owner=usr
usr.action=0
obj/Quincy/arrow/var/tmp/mob/owner=null
currently i can delete the obj and not call deathcheck or call deathcheck and have the arrow remain and continue.
In response to SadoSoldier
Garthor and popfizzy can act real conceited and grumpy at times just be patient.
In response to Master rla
my patience has become very thin with people on the forums over time. although i dont mind garthor as much anymore.
In response to SadoSoldier
I know how you feel but people try to be nice in different ways so just adapt.....
In response to Master rla
Please don't make failed attempts to jump into my psyche. I know I'm just another member of this community, and if I were to dissapear the most change might be someone taking notice and asking where I went, which is hardly conceited. What I know for certain is that Sado's help is hardly helpful, and he shouldn't be posting it. You seem to imply that what I told him was entirely unfounded, yet you haven't, as far as I can tell, shown any real competency in DM, and therefore have no opinion on what is good code and what isn't. It'd be like me criticizing a German book.
In response to Master rla
Master rla wrote:
I know how you feel but people try to be nice in different ways so just adapt.....

I'm not putting you down or getting into your psyche.
In response to Master rla
what was the purpose in redoing ur sentence just to say something else? as for adaptation forget it O_O neway im gone to play games cya
Page: 1 2 3