ID:142779
 
Code:
if(usr.stype == "Aizen")
usr.icon_state = "attack2"
usr.frozen = 1
var/M = new/obj/ad(usr.loc)
M:dir = usr.dir
M:Gowner = usr
walk(M,usr.dir)
if(usr.bankai)
usr.frozen = 0
var/obj/afterImage = new /obj()
afterImage.layer = MOB_LAYER + 5
afterImage.icon=usr.icon
afterImage.icon_state=usr.icon_state
afterImage.overlays=usr.overlays
afterImage.underlays = usr.underlays
afterImage.dir=usr.dir
afterImage.loc = usr.loc
afterImage.zer = 1
afterImage.owner = M
usr.shimastery(4)
return
var/damage = round(usr.attack/1.5)
damage+=rand(damage/2,damage/1.5)
damage+=usr.swordD
if(damage <= 1)
damage = 1


Problem description:
Ok the problem is this im trying to make a attack where a dragon shoots from the users blade but when i gt it all set up it says that
round(usr.attack/1.5)
damage+=rand(damage/2,damage/1.5)
are both are duplicate and previous definations can anyone explain to me wat the deal is

sorry for the edit but there are the error codes
Tech List.dm:651:error:damage :duplicate definition
Tech List.dm:625:error:damage :previous definition
Tech List.dm:677:error:damage :duplicate definition

You most likely have a variable outside of that function, globally defined as "damage".
In response to Siientxx
That does not generate an error. And, besides, the line numbers squarely place the error within that proc (probably). The issue is simply that damage was declared twice in it.
In response to Garthor
kk ill run back through the code and see if i can fix it thanx for the tips