ID:139139
 
Code:
obj
Fire_Throw
icon = 'FireThrow.dmi'
density = 0
New()
spawn(10)
del src
Bump(A)
if(ismob(A))
del src
return
obj
FlamesEffect
icon = 'FlamesEffect.dmi'
density = 0
New()
spawn(30)
del src
Bump(A)
if(ismob(A))
del src
return
mob
verb
Fire_Throw()
set category = "Fire Bending"
set name = "Fire Throw"
icon_state = "Fire"
var/K = new/obj/Fire_Throw(usr.loc)
var/K = new/obj/FlamesEffect(usr.loc)
K:dir = usr.dir
walk(K,usr.dir)


loading Avatar.dme
Techniques.dm:30:error: K: duplicate definition
Techniques.dm:29:error: K: previous definition

Avatar.dmb - 2 errors, 0 warnings (double-click on an error to jump to it)


Problem description:
Im trying to make it so that when i throw the technique Fire Throw, the flames effect will be under it and i know the techniques dont to damage atm but i want this cool effect first xD

...You can't have 2 variables with the same name.
You have 2 variables defined right next to each other with the same name. Change one.
In response to Albro1
I tried to the best of my knowledge but i cant figure out how to make it, It would just give me erros
In response to Blast3r
Change the second var/K to var/J......? =/
In response to KingCold999
KingCold999 wrote:
Change the second var/K to var/J......? =/


loading Avatar.dme
Techniques.dm:30:warning: J: variable defined but not used
loading Map.dmm
saving Avatar.dmb

Avatar.dmb - 0 errors, 1 warning (double-click on an error to jump to it)


Thats the problem of THAT
In response to Blast3r
NVM guys, I found out how, Thanks for the help