ID:173968
 
ok I have a bump proc on an obj and it has text to display in it. And everything works just fine the only problem is it displays the text 3 times every time. Thats all it calls numerous times is the text everything else it does just once per bump for some odd reason it does the text 3 times any ideas?
Aridale wrote:
ok I have a bump proc on an obj and it has text to display in it. And everything works just fine the only problem is it displays the text 3 times every time. Thats all it calls numerous times is the text everything else it does just once per bump for some odd reason it does the text 3 times any ideas?

Well, the first idea that comes to mind is to suggest you actually post the code for your Bump() proc.

Lummox JR
In response to Lummox JR
Bump(atom/A)
if(ismob(A))
Hit(A)
return
else
del(src)

proc/Hit(mob/M)
src.Owner << "Test"
s_damage(M,10,"black")
M.HP -= 10
M.DeathCheck(src.Owner,M)
del(src)
return

edit: forgot a line
In response to Aridale
Aridale wrote:
Bump(atom/A)
if(ismob(A))
Hit(A)
return
else
del(src)

proc/Hit(mob/M)
src.Owner << "Test"
s_damage(M,10,"black")
M.HP -= 10
M.DeathCheck(src.Owner,M)
del(src)
return

edit: forgot a line

1# Don't say you've edited your post if you havn't.

2# The line "M.HP -= 10" seems to be not indented.
I suggest to use DM tags next time

3# Why call return after deleting src??

4# What do you mean by "it has text to display in it"
do you mean like, on the object???, i see your using spuzzums libary (im only geussing, i havnt seen it in ages)
thats why im geussing about the text...

5# Or if you mean its repeating the "Test" message, it might be bumping into whatever it is, a few times maybe, in the 0.1 or so tick it has left :\
In response to Wanabe
Wanabe wrote:
1# Don't say you've edited your post if you havn't.

Just for the sake of clearing up confusion, I should point out that a post doesn't show as edited if it's changed within a certain grace period.

Lummox JR
In response to Lummox JR
Well Ive found out it is somethin with spuzzums s_damage why I dont know but if I call it right there it repeats all text in that block of code 3 times. Why I dunno but if I comment out that line then it works flawlessly and I guess the edit didnt show up cause I caught it so fast I forgot to add the s_damage line when I first typed it.

Oh well I dunno what the deal was/is but it works fine without it so /shrug thanks anyway