Code:obj
sorensoukatsui
icon = 'soukatsui.dmi'
icon_state = ""
density = 1
New()
spawn(100)
del src
Bump(A)
if(ismob(A))
var/mob/M = A
if(M == src.Gowner)
del src
return
if(M.ispedal)
del src
return
var/mob/O = src.Gowner
var/damage = O.reiatsu * 6- M.reiatsu
if(damage < 1)
damage = 1
if(M.chadref)
var/K = new/obj/reflection(M.loc)
K:attack = damage
K:dir = M.dir
K:Gowner = M
walk(K,M.dir)
del src
SorenSoukatsui()
set category = "Fighting"
if(usr.rei < 3000)
usr << "Your reiatsu is too low!"
return
if(usr.safe)
return
if(!usr.firing)
view(8) << "[usr]: Destruction Spell No.73! Soren Soukatsui!"
usr.firing = 2
usr.rei -= 3000
var/K = new/obj/soukatsui(usr.loc)
K:Gowner = usr
K:dir = usr.dir
walk(K,usr.dir)
sleep(0)
usr.firing = 2
Problem description: im trying to make a new kido(Soren soukatsui) so how would i make it so it fires twice?
</1></3000>
ID:142061
Aug 31 2008, 12:45 pm
|
|
Aug 31 2008, 12:49 pm
|
|
Repost this topic, and this time.. Put the code in between the < d m > and < / dm > (without all of those spaces..)
|
obj I put your code in the DM tags (its not edited). Just make it create 2 objs. |
In response to Quiet Screams
|
|
When i do that i get a duplicate and a previous definition error
|
In response to Brklynty1
|
|
Ignore my post. it was off anyway
|
In response to Quiet Screams
|
|
I just noticed that the code has a lot of errors, OP.
Problems: You didn't typecast k, meaning you lack all basic fundamental programming skills. DM guide, stat! Using : is bad, because it prevents you from getting compiler errors. This later results in runtime errors, which are much much worse. Use . instead, always!* *I don't follow this rule from time to time, and sometimes I regret it. |
In response to Jeff8500
|
|
I didnt edit his coding at all. I just put it in the dm tags
|
In response to Jeff8500
|
|
thanks for the lecture lol but i studied C++ in school but it wasnt my biggest intrest guess thats wat i get lol. thanks anyways
|
In response to Quiet Screams
|
|
Which is why I said OP. OP = original poster.
|
In response to Jeff8500
|
|
Oh, xD Didn't know what OP was. Mk ^^
|
In response to Jeff8500
|
|
oops sorry lol
|
In response to Brklynty1
|
|
If you studied C++, you should certainly have covered loops, meaning this post shouldn't even exist.
|
In response to SHSPlyr03
|
|
Use < and > to show < and >, respectively. Other ways of showing it are silly.
|