ID:143273
 
Code:mob/var

    ForbiddenSecretTechniqueReaperDeathSeal =0


mob/sarutobi
verb
ForbiddenSecretTechniqueReaperDeathSeal()
set category = "Jutsus"
set name = "Forbidden Secret Technique: Reeaper Death Seal"
if(usr.chakra <= 200000)
usr<<"You dont have enough chakra!"
return
if(usr.firing)
usr<<"Not now."
return
if(usr.froze)
usr<<"Your frozen"
return
if(usr.Frozen)
usr<<"Your frozen"
return
if(usr.caught)
usr<<"Your captured"
return
if(usr.captured)
usr<<"Your captured"
return
if(usr.resting)
usr<<"Not while resting"
return
if(usr.meditating)
usr<<"Not while meditating"
return
if(!usr.ForbiddenSecretTechniqueReaperDeathSeal&&!usr.firing)
view()<<"<font color = blue>[usr]: Forbidden Secret Technique: Reaper Death Seal!"
usr.overlays += 'Forbidden Secret Technique Reeaper Death Seal.dmi'
del target
del src


Problem description:
I need help coding Shiki Fuujin/Reaper Death Seal, i am a new cooder i have been doing fine until i wanted to put a the Reaper Death Seal in, it kills both user and target, ther is no errors with this code -.- but is wont kill them me or the target and it wont hit anything and im not sure how to approach this /figure it out (none of the jutsu i have coded have been instant kills so...)
please help

You can't have coded much if you dont know the answer.

ForbiddenSeal(mob/M in oview(1,usr))

M.health=0; M.DeathCheck(usr); usr.health=0; usr.DeathCheck(usr)
In response to Saucepan Man
^^ i have cooded alot but im a n00b at it, i get very confused easily first time making a jutsu were some1 gets auto killed, im currently tested ur code helpy thing
In response to Lewis4
eeek
M.health=0; M.DeathCheck (usr); usr.health=0; usr.DeathCheck(usr)

techs.dm:18312:error:= :invalid proc definition

T.T error ahhh damit

now i have to figur this out T.T (cooding is hard)
In response to Lewis4
youve got to define (make) a deathcheck proc

whenever a player is hurt, call it...
It should check if player has health left, and can control respawning etc.
look at demos/libraries...
In response to Saucepan Man
ok i just did and now it is saying theres an error


DeathCheck :previous definition
In response to Lewis4
HELP it is still not working
In response to Lewis4
This is why you do not "learn" from another source, you usually get wrapped too much around how they program (which is usually very bad) and have trouble putting in your own idea, that is different than the typical source in it.

Here's a hint for your problem: Do not copy and paste, learn what each one does and enter them in properly.
In response to GhostAnime
T.T well i cant figure it out nothing is working T.T
(i already no what the DeathCheck is but the damn thing is acting stupid)
In response to Lewis4
Lewis4 wrote:
T.T well i cant figure it out nothing is working T.T
(i already no what the DeathCheck is but the damn thing is acting stupid)

Obviously, if you read the error, you defined it twice. You only need it defined once but the problem is that you were calling it incorrectly earlier because you didn't spaced out (not spacebar type of space ;) ) each line correctly.
In response to GhostAnime
*blinks*
What?
In response to Lewis4
T.T i suck at cooding .....
In response to Lewis4
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH HHHHHHHHHHHHHHHHHHHHHHHH.....um when i used it i turn gray(which i wanted) and nothing happens then i click iot again and my server crashes!!! AHHHH OMG
In response to Lewis4
*sigh* i thought this was a help forum ...*sigh* i guess i will just have to give up since no1 really telling me what to do.
In response to Lewis4
You fail.
In response to Lewis4
Quit spamming the forum. GhostAnime did tell you what the problem was, and the solution to your problem should be obvious.
In response to D4RK3 54B3R
Agreed, you shouldn't spam the forum while waiting for responses. If you want help and ask for it intelligently, it will come. Good luck on your game, I don't know how to explain it any better than how the others did.

You called the proc incorrectly the first time, and the second time, you defined the proc again so the program gets confused when it compiles. So, look for the "Death Check" proc that isn't yours, using Ctrl+F or find, and delete it.

Then, fix your "Death Check" proc and you'll be fine. Hope that helped, best of luck.
In response to Erelus
T.T i quit i spent a day tring to figure it out and cant figure it out i took all ur advises and still nothing so i quit...... and sorry about the spam earlier.