ID:145508
 
Code:
mob
var
szshikai = 0

mob/verb/Shikai()
set name = "Shikai Release"
set category = "Combat"
if(usr.szshikai)
usr << "Your zanpaktou re-forms."
usr.szshikai = 0
usr.overlays -= 'SZpetals.dmi'
usr.overlays += 'chiru2.dmi'
spawn(20)
usr.overlays -= 'chiru2.dmi'
return
else
view(6) << "Chiru.......Senbon Zakura.."
usr.szshikai = 1
usr.overlays += 'chiru1.dmi'
spawn(20)
usr.overlays -= 'chiru1.dmi'
usr.overlays += 'SZpetals.dmi'
return

var/mob/M
var/obj/O
var/spcost =1000
var/spldmg = 50000


obj/proc/bump()


atom/var/trg



obj
SZ
icon = 'SZpetals.dmi'
icon_state = " "
density = 1
bump(obstacle)
if(istype (obstacle,/mob))
M = obstacle
var/spldmg = round(usr.reiatsu*(1+(usr.shikaimastery))*(1+(usr.zanjutsu) / M.reiatsu))
M.pp -= spldmg
usr << "you hit [M] for [spldmg] "
del src
else
del src
return



client/Click(trg)
if(usr.szshikai == 1)
usr.flash = 0
if(usr.sp > spcost)
var/spcost = round(1000/(1+(usr.shikaimastery)))
usr.sp -= spcost
s_missile(/obj/SZ,usr,trg,1,0)


if(usr.sp < 1)
usr.sp = 0
else
usr << "You don't have enough Spiritual power to continue!"


Problem description:

hello all again. ive fixed most of this code and using the s_missle by spuzzum. it works fine and all but the problem im having is with the obj SZ bumping into mobs. i wont do anything at all. just sit there against the mob,stuck =/

im not very experienced yet and this file alone has taken like 5 days time of me working on it and experimenting (some stupid mistakes were made until recently) now the bump is the only problem. any help at all is appreciated.
try changing

if(istype (obstacle,/mob))


to


if(istype (obstacle,/mob/))


Im not sure im to tired
In response to A.T.H.K
A.T.H.K wrote:
try changing

if(istype (obstacle,/mob))
>

to


if(istype (obstacle,/mob/))
>

Im not sure im to tired


sorry. that doesnt help =(

*PS* my yim or aim sn is dyingrelief . msg me if u wanna talk coding or stuff. lates
Bump() is a built in atom proc, you can't define an obj proc "bump()" and expect it to perform the actions of obj/Bump(), it's case-sensitive and you only need to overwrite it where you're going to use it.