ID:169641
May 21 2005, 10:20 am
|
|
Okay, I want this skill to kill clones not players.It will kill any clone in a 5 tile radius.I just want an example not the whole darn code, I want to learn how to it msyelf you know XD.
|
May 21 2005, 10:33 am
|
|
Pseudo code then.
|
In response to Hell Ramen
|
|
Before I start trying on my own,explain the code please so I can understand.
|
In response to Broly103
|
|
Broly103 wrote:
Before I start trying on my own,explain the code please so I can understand. mob/proc/killclone() |
In response to Hell Ramen
|
|
obj/illuminate Am I close XD? |
In response to Broly103
|
|
Broly103 wrote:
> obj/illuminate Am I close XD? Not even. obj/illuminate |
In response to Hell Ramen
|
|
That else is completely useless. It's a common mistake to try and hang an else off of every if(). Remember, if it doesn't do anything, then chances are, it doesn't belong there.
obj/illuminate/verb/Illuminate() |
In response to Wizkidd0123
|
|
In addition to the above, if a 5-tile radius is actually desired (as in, a circular region), then you'd need some additional math in there to be sure this falls within a circle. Otherwise, the effect will be an 11×11 square if you just use view(5). To make it a circle, you'd need this:
for(var/mob/M in oview(5)) That will produce a nice circular effect. Lummox JR |