mob
verb/BunshinNoJutsu()
set name = "Bunshin no jutsu"
set desc = "Create a clone"
set category = "Jutsus"
usr.Handseals()
if(usr.firing)
return
if(usr.PK==0)
usr<<"NON PK ZONE!"
return
if(usr.Frozen)
usr<<"Your frozen"
return
if(usr.caught)
usr<<"Your captured"
return
if(usr.captured)
usr<<"Your captured"
return
if(usr.chakra <= 10)
usr << "Not enough chakra!"
return
if(usr.inso)
return
if(usr.Kaiten||usr.counter)
return
if(usr.froze)
usr<<"Your frozen"
return
if(usr.resting)
usr<<"Not while resting"
return
if(usr.meditating)
usr<<"Not while meditating"
return
if(usr.gate1)
return
if(usr.gate2)
return
if(usr.gate3)
return
if(usr.gate4)
return
if(usr.gate5)
return
if(usr.gate6)
return
if(usr.gate7)
return
if(usr.gate8)
return
if(!usr.handseals)
return
else
if(usr.BunshinN >= 50)
view() << "<font size=1><font face=verdana><b><font color=white>[usr]<font color=green> Says: <FONT COLOR=#c0c0c0>B</FONT><FONT COLOR=#b2b1ba>u</FONT><FONT COLOR=#a3a0b4>n</FONT><FONT COLOR=#9490ad>s</FONT><FONT COLOR=#857fa6>h</FONT><FONT COLOR=#756f9f>i</FONT><FONT COLOR=#665e99>n</FONT><FONT COLOR=#574e92> </FONT><FONT COLOR=#483d8b>N</FONT><FONT COLOR=#4d468c>o</FONT><FONT COLOR=#524e8d> </FONT><FONT COLOR=#57578d>J</FONT><FONT COLOR=#5d5f8e>u</FONT><FONT COLOR=#62688f>t</FONT><FONT COLOR=#677090>s</FONT><FONT COLOR=#6c7990>u</FONT><FONT COLOR=#708090>!</FONT>"
usr.firing = 1
usr.KillBunshin()
var/mob/npcs/Bunshin/A = new /mob/npcs/Bunshin
var/mob/npcs/Bunshin/B = new /mob/npcs/Bunshin
var/mob/npcs/Bunshin/C = new /mob/npcs/Bunshin
usr.BunshinN += 1
usr.Chakragain()
usr.bunshin += 3
if(A)
A.original = usr
A.icon = usr.icon
A.name = "[usr]"
A.overlays += usr.overlays
A.loc = locate(usr.x+1, usr.y, usr.z)
flick("smoke2",A)
A.max_exp = 2
A.exp = 2
A.health = 1
sleep(5)
if(B)
B.original = usr
B.icon = usr.icon
B.name = "[usr]"
B.overlays += usr.overlays
B.loc = locate(usr.x+2, usr.y, usr.z)
flick("smoke2",B)
B.max_exp = 2
B.exp = 2
B.health = 1
sleep(5)
if(C)
C.original = usr
C.icon = usr.icon
C.name = "[usr]"
C.overlays += usr.overlays
C.loc = locate(usr.x+3, usr.y, usr.z)
flick("smoke2",C)
C.max_exp = 2
C.exp = 2
C.health = 1
sleep(15)
usr.firing=0
usr.chakra -= 10
usr.random = rand(1,3)
if(usr.random == 1)
usr.genexp += rand(700,1000)
usr.Skills()
usr.genup()
if(usr.random == 3)
usr.Mgen += rand(100,2000)
usr.gen = usr.Mgen
usr.Skills()
usr<<"<font color = blue>Your genjutsu increased!"
if(usr.BunshinN <= 50)
usr.random = rand (1,4)
if(usr.random == 1||usr.random == 4)
view() << "<font size=1><font face=verdana><b><font color=white>[usr]<font color=green> Says: <FONT COLOR=#c0c0c0>B</FONT><FONT COLOR=#b2b1ba>u</FONT><FONT COLOR=#a3a0b4>n</FONT><FONT COLOR=#9490ad>s</FONT><FONT COLOR=#857fa6>h</FONT><FONT COLOR=#756f9f>i</FONT><FONT COLOR=#665e99>n</FONT><FONT COLOR=#574e92> </FONT><FONT COLOR=#483d8b>N</FONT><FONT COLOR=#4d468c>o</FONT><FONT COLOR=#524e8d> </FONT><FONT COLOR=#57578d>J</FONT><FONT COLOR=#5d5f8e>u</FONT><FONT COLOR=#62688f>t</FONT><FONT COLOR=#677090>s</FONT><FONT COLOR=#6c7990>u</FONT><FONT COLOR=#708090>!</FONT>"
usr.firing = 1
var/mob/npcs/Bunshin/A = new /mob/npcs/Bunshin
var/mob/npcs/Bunshin/B = new /mob/npcs/Bunshin
usr.KillBunshin()
usr.BunshinN += 1
usr.Chakragain()
usr.bunshin += 2
if(A)
A.original = usr
A.icon = usr.icon
A.name = "[usr]"
A.overlays += usr.overlays
A.loc = locate(usr.x+1, usr.y, usr.z)
flick("smoke2",A)
A.max_exp = 2
A.exp = 2
A.health = 1
sleep(5)
if(B)
B.original = usr
B.icon = usr.icon
B.name = "[usr]"
B.overlays += usr.overlays
B.loc = locate(usr.x-1, usr.y, usr.z)
flick("smoke2",B)
B.max_exp = 2
B.exp = 2
B.health = 1
sleep(15)
usr.firing=0
usr.chakra -= 10
usr.random = rand(1,3)
if(usr.random == 1)
usr.genexp += rand(500,1000)
usr.Skills()
usr.genup()
if(usr.random == 2)
usr.Mgen += 1
usr.gen += 1
usr.Skills()
usr<<"<font color = blue>Your genjutsu increased!"
Problem description:ex: on Bunshin No Jutsu. ive ben trying to make it so if ur Genjutsu is X(variable for number i have in) it will stop. but i cant get it to wrok. it wil leather say yo ureached your gen cap at 10 gen instead of the set number "X" that or it will jsut keep lvling past the Set cap.
kaveing smae prob on Kage Bunshin No Justu and My Logs. Any help?
Advice: delete your code and learn to program.