ID:264095
 
Code:
mob/var
Hatake_Sharingan = 1
Hatake_Mangekyou = 0
Hshari = 0
Hmangekyou = 0
HSuses
mob/Hatake
verb
HatakeMangekyouPrep()
set category="Doujutsu"
set name = "Use Hatake_Mangekyou"
if(usr.firing)
return
if(usr.froze)
usr<<"You are froze"
return
if(usr.resting)
usr<<"Not while your resting"
return
if(usr.meditating)
usr<<"Not while your meditating"
return
if(usr.Frozen)
usr<<"You are froze"
return
if(usr.caught)
usr<<"Your captured"
return
if(usr.captured)
usr<<"Your captured"
return
usr.goingHmange=1
usr.Hatake_Sharingan=0
if(usr.HSuses<=100)
usr.HSuses=101
usr<<"Now use Sharingan"
sleep(100)
usr.goingHmange=0
usr.Hatake_Sharingan = 1
mob/Hatake
verb
Sharingan() // Verb used for firing the beam
set category = "Doujutsu"
set name = "Use_Sharingan"
if(usr.froze)
usr<<"You are frozen"
return
if(usr.resting)
usr<<"Not while your resting"
return
if(usr.meditating)
usr<<"Not while meditating"
return
if(usr.Frozen)
usr<<"Your are froze"
return
if(usr.captured)
usr<<"Your captured"
return
if(usr.caught)
usr<<"Your captured"
return
if(usr.Hshari == 0&&Hatake_Sharingan == 1) // If the mob's firing var is one...
usr.overlays+='hatakecounter.dmi'
usr.icon_state="1"
usr.overlays += 'hatakesharingan.dmi'
view()<<"<font size=1><font face=verdana><b><font color=white>[usr]<font color=green> Says: <FONT COLOR=#8b0000>S</FONT><FONT COLOR=#a0050f>h</FONT><FONT COLOR=#b40b1f>a</FONT><FONT COLOR=#c9102e>r</FONT><FONT COLOR=#dc143c>i</FONT><FONT COLOR=#ca1131>n</FONT><FONT COLOR=#b80d25>g</FONT><FONT COLOR=#a50818>a</FONT><FONT COLOR=#93040c>n</FONT><FONT COLOR=#800000>!</FONT>"
view()<<"[usr]'s left pupil dialates to form Hatake Sharingan (thank you obito)!"
usr.Hshari=1
usr.ST=1
usr.HSuses += 1
usr.gen = usr.gen*1.5
usr.nin = usr.nin*1.5
usr.tai = usr.tai*1.5
usr.verbs += /mob/Hatake/verb/Sharinganilluminate
usr.verbs += /mob/Hatake/verb/Counter
usr.see_invisible = 1
sleep(15)
usr.overlays-='hatakecounter.dmi'
usr.overlays-='hatakecounter.dmi'
usr.overlays-='hatakecounter.dmi'
usr.overlays-='hatakecounter.dmi'
if(usr.Mnin>=5000&&usr.HSuses>=300)
usr.Hmangekyou=1
usr.Hatake_Sharingan=0
return
if(usr.Hshari == 1&&usr.Hmangekyou == 1&&usr.ST == 1&&usr.goingHmange == 1)
usr.overlays+='hatakecounter.dmi'
usr.overlays += 'hatakesharingan.dmi'
usr.icon_state="mangekyou"
view()<<"<font size=1><font face=verdana><b><font color=white>[usr]<font color=green> Says: <FONT COLOR=#696969>M</FONT><FONT COLOR=#766065>a</FONT><FONT COLOR=#835760>n</FONT><FONT COLOR=#904d5b>g</FONT><FONT COLOR=#9d4456>e</FONT><FONT COLOR=#a93a50>k</FONT><FONT COLOR=#b6314b>y</FONT><FONT COLOR=#c32746>o</FONT><FONT COLOR=#d01e41>u</FONT><FONT COLOR=#dc143c> </FONT><FONT COLOR=#d41337>S</FONT><FONT COLOR=#ca1131>h</FONT><FONT COLOR=#c10f2b>a</FONT><FONT COLOR=#b80d25>r</FONT><FONT COLOR=#af0b1f>i</FONT><FONT COLOR=#a50818>n</FONT><FONT COLOR=#9c0612>g</FONT><FONT COLOR=#93040c>a</FONT><FONT COLOR=#890206>n</FONT><FONT COLOR=#800000>!</FONT>"
view()<<"[usr]'s left eye dilates to form Hatake Mangekyou Sharingan"
usr.HSuses += 1
usr.goingHmange=0
usr.shari=1
usr.gen = usr.gen*2
usr.nin = usr.nin*2
usr.tai = usr.tai*2
usr.ST=1
usr.sharingan3=1
usr.verbs += /mob/Hatake/verb/Sharinganilluminate
usr.verbs += /mob/Hatake/verb/Counter
usr.verbs += /mob/Hatake/verb/Susanoo
usr.see_invisible = 1
sleep(15)
usr.overlays-='hatakecounter.dmi'
usr.overlays-='hatakecounter.dmi'
return
else
usr<<"You release your Sharingan."
usr.overlays -= 'hatakesharingan.dmi'
usr.overlays -= 'hatakesharingan.dmi'
usr.see_invisible = 0
usr.nin=usr.Mnin
usr.gen=usr.Mgen
usr.tai=usr.Mtai
usr.goingmange=0
usr.Hatake_Sharingan = 1
usr.verbs -= /mob/Hatake/verb/Sharinganilluminate
usr.verbs -= /mob/Hatake/verb/Counter
usr.verbs -= /mob/Hatake/verb/Susanoo
usr.Hshari = 0
sleep(50)
usr.ST=0
return


Problem description:
When I use it i press the mangekyou then sharingan is says you release sharingan even while its not in use so i tried it over and over please help


And its some super simple that im not seeing with my luck xD
mob/verb/Mangekyou()
//Mangekyou stuff


We don't know your problem. What's your code supposed to be doing?
In response to Darkmag1c1an11
Useing Hatake Mangekyou but its not working
In response to Mr. Chex
What's Hatake Mangekyou supposed to do? Be SPECIFIC. We don't know your anime BS.
In response to Darkmag1c1an11
Ok I need to use mangekyou it just i need to use Sasnoo from it and when i use it i take off sharingan then i press the mangekyou it says to use sharingan then when i do it says that i take down sharingan so then i try it again and says the same thing since it was down for sure if you need the whole clan jutsus tell me
This is more a a design suggestions, but why would you check to see if the player is frozen or captured or whatever every time, when you could very easily just make a proc that you would only have to call once every verb.
In response to Mr. Chex
I'm going to ask you once more. If you still refuse, I'm just going to click out of this topic and leave it.

Be SPECIFIC. If there is a term that isn't in the dictionary, DEFINE IT. I don't know what a Sasnoo is, how am I supposed to tell you how to fix it? I can somewhat infer that Sharingan is an active skill, and that Mangekyou is an extension of it, but I can't really know for sure.
In response to Darkmag1c1an11
OK its a jutsu with the mangekyou i dont remember what it does
i know its jutsu with mangekyou that i have to activate mangekyou which i cant and Sharingan in not active at the moment of use so i use it and it wont work it just make it
not inuse so press use mangekyou then it tell me now sharingan
i press it then when i press it it says you take down sharingan so then while down i use it again for sure and pops up again and if this isnt it im just give you the code and what i need to do is to use mankgeyou sharingan then i have to press sharingan to activate mangekyou sharingan and here is the clan jutsu coding so its like it counter acts the it from being used
 
mob/var
Hatake_Sharingan = 1
Hatake_Mangekyou = 0
Hshari = 0
Hmangekyou = 0
HSuses
mob/Hatake
verb
HatakeMangekyouPrep()
set category="Doujutsu"
set name = "Use Hatake_Mangekyou"
if(usr.firing)
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.Frozen)
usr<<"Your frozen"
return
if(usr.caught)
usr<<"Your captured"
return
if(usr.captured)
usr<<"Your captured"
return
usr.goingHmange=1
usr.Hatake_Sharingan=0
if(usr.HSuses<=100)
usr.HSuses=101
usr<<"Now use Sharingan"
sleep(100)
usr.goingHmange=0
usr.Hatake_Sharingan = 1
mob/Hatake
verb
Sharingan() // Verb used for firing the beam
set category = "Doujutsu"
set name = "Use_Sharingan"
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.Frozen)
usr<<"Your frozen"
return
if(usr.captured)
usr<<"Your captured"
return
if(usr.caught)
usr<<"Your captured"
return
if(usr.Hshari == 0&&Hatake_Sharingan == 1) // If the mob's firing var is one...
usr.overlays+='hatakecounter.dmi'
usr.icon_state="1"
usr.overlays += 'hatakesharingan.dmi'
view()<<"<font size=1><font face=verdana><b><font color=white>[usr]<font color=green> Says: <FONT COLOR=#8b0000>S</FONT><FONT COLOR=#a0050f>h</FONT><FONT COLOR=#b40b1f>a</FONT><FONT COLOR=#c9102e>r</FONT><FONT COLOR=#dc143c>i</FONT><FONT COLOR=#ca1131>n</FONT><FONT COLOR=#b80d25>g</FONT><FONT COLOR=#a50818>a</FONT><FONT COLOR=#93040c>n</FONT><FONT COLOR=#800000>!</FONT>"
view()<<"[usr]'s left pupil dialates to form Hatake Sharingan!"
usr.Hshari=1
usr.ST=1
usr.HSuses += 1
usr.gen = usr.gen*1.5
usr.nin = usr.nin*1.5
usr.tai = usr.tai*1.5
usr.verbs += /mob/Hatake/verb/Sharinganilluminate
usr.verbs += /mob/Hatake/verb/Counter
usr.see_invisible = 1
sleep(15)
usr.overlays-='hatakecounter.dmi'
usr.overlays-='hatakecounter.dmi'
usr.overlays-='hatakecounter.dmi'
usr.overlays-='hatakecounter.dmi'
if(usr.Mnin>=5000&&usr.HSuses>=300)
usr.Hmangekyou=1
usr.Hatake_Sharingan=0
return
if(usr.Hshari == 1&&usr.Hmangekyou == 1&&usr.ST == 1&&usr.goingHmange == 1)
usr.overlays+='hatakecounter.dmi'
usr.overlays += 'hatakesharingan.dmi'
usr.icon_state="mangekyou"
view()<<"<font size=1><font face=verdana><b><font color=white>[usr]<font color=green> Says: <FONT COLOR=#696969>M</FONT><FONT COLOR=#766065>a</FONT><FONT COLOR=#835760>n</FONT><FONT COLOR=#904d5b>g</FONT><FONT COLOR=#9d4456>e</FONT><FONT COLOR=#a93a50>k</FONT><FONT COLOR=#b6314b>y</FONT><FONT COLOR=#c32746>o</FONT><FONT COLOR=#d01e41>u</FONT><FONT COLOR=#dc143c> </FONT><FONT COLOR=#d41337>S</FONT><FONT COLOR=#ca1131>h</FONT><FONT COLOR=#c10f2b>a</FONT><FONT COLOR=#b80d25>r</FONT><FONT COLOR=#af0b1f>i</FONT><FONT COLOR=#a50818>n</FONT><FONT COLOR=#9c0612>g</FONT><FONT COLOR=#93040c>a</FONT><FONT COLOR=#890206>n</FONT><FONT COLOR=#800000>!</FONT>"
view()<<"[usr]'s left pupil dialates to form the Legendary Mangekyou Sharingan"
usr.HSuses += 1
usr.goingHmange=0
usr.shari=1
usr.gen = usr.gen*2
usr.nin = usr.nin*2
usr.tai = usr.tai*2
usr.ST=1
usr.sharingan3=1
usr.verbs += /mob/Hatake/verb/Sharinganilluminate
usr.verbs += /mob/Hatake/verb/Counter
usr.verbs += /mob/Hatake/verb/Susanoo
usr.see_invisible = 1
sleep(15)
usr.overlays-='hatakecounter.dmi'
usr.overlays-='hatakecounter.dmi'
return
else
usr<<"You release your Sharingan."
usr.overlays -= 'hatakesharingan.dmi'
usr.overlays -= 'hatakesharingan.dmi'
usr.see_invisible = 0
usr.nin=usr.Mnin
usr.gen=usr.Mgen
usr.tai=usr.Mtai
usr.goingmange=0
usr.Hatake_Sharingan = 1
usr.verbs -= /mob/Hatake/verb/Sharinganilluminate
usr.verbs -= /mob/Hatake/verb/Counter
usr.verbs -= /mob/Hatake/verb/Susanoo
usr.Hshari = 0
sleep(50)
usr.ST=0
return
mob/Hatake
verb
Sharinganilluminate() // Verb used for firing the beam
set category = "Doujutsu"
set name = "Illuminate"
if(usr.illuminating)
return
if(usr.froze)
usr<<"Your frozen"
return
if(usr.resting)
usr<<"Not while resting"
return
if(usr.caught)
usr<<"Your captured"
return
if(usr.meditating)
usr<<"Not while meditating"
return
if(usr.Frozen)
usr<<"Your frozen"
return
if(usr.captured)
usr<<"Your captured"
return
usr.illuminating=1
for(var/mob/npcs/Bunshin/B in world)
if(usr.Mnin <= 25&&usr.Mgen <= 15&&usr.Mtai <= 20)
usr << "Sorry not strong enough......"
return
else
var/image/I = image('Bun.dmi',B,"googa")
src << I
usr.illu = 1
for(var/mob/npcs/KBunshin/K in world)
if(usr.Mnin <= 100&&usr.Mgen <= 111&&usr.Mtai <= 100)
usr << "no......"
return
else
var/image/I = image('Bun.dmi',K,"googa")
src << I
usr.illu = 1
for(var/mob/M in oview(10))
M.invisibility = 0
M.overlays += 'Bun.dmi'
sleep(30)
M.overlays -= 'Bun.dmi'
if(M.kawa)
M.overlays += 'Bun.dmi'
sleep(30)
M.overlays -= 'Bun.dmi'
sleep(30)
usr.illuminating=0
mob/Hatake
verb
Counter() // Verb used for firing the beam
set category = "NinJutsu"
set name = "Sharingan Counter"
if(usr.firing)
return
if(usr.resting)
usr<<"Not while resting"
return
if(usr.meditating)
usr<<"Not while meditating"
return
if(usr.counter==0)
usr.counter=1
view()<<"<font color=silver><b><font face=verdana>[usr]: Counter!!"
usr.overlays += 'Hcounter.dmi'
sleep(30)
usr.counter=0
usr.overlays -= 'Hcounter.dmi'
else
usr<<"Counter is already active."

mob/var
USN = 0
SusanooU = 0
mob/Hatake/verb
Susanoo(mob/M in oview())
set category = "Doujutsu"
set name = "Susanoo"
usr.Handseals()
if(usr.firing) // If the mob's firing var is one...
usr << "You must wait before using this."
return
if(usr.chakra <= 2000&&usr.health >= 20000)
usr<<"You dont have enough power!"
return
if(usr.caught)
usr<<"Your captured"
return
if(!usr.handseals)
return
if(usr.PK==0)
usr<<"NON PK ZONE!"
return
if(M.PK==0)
usr<<"NON PK ZONE!"
return
if(usr.Frozen)
usr<<"Your frozen"
return
if(usr.captured)
usr<<"Your captured"
return
if(usr.froze)
usr<<"Your frozen"
return
if(usr.resting)
usr<<"Not while resting"
return
if(usr.meditating)
usr<<"Not while meditating"
return
else
if(usr.SusanooU >= 50)
usr.USN = 1
usr.SusanooU += 1
usr.chakra -= 2000
view() << "[usr] Says: Susanoo!"
sleep(10)
flick('Susanoo.dmi',M)
var/damage = round(usr.nin*5)
M.health -= damage
M.chakra -= damage
M.Death(usr)
usr << "[usr] takes [damage] of [M]'s Health and Chakra with Susanoo!"
if(usr.Mnin <= usr.cap)
usr.random = rand(1,6)
if(random == 5||random==1)
usr.ninexp += rand(1,10)
usr.ninup()
usr.Skills()
var/ccrandom=rand(1,15)
if(ccrandom==4||ccrandom==10)
var/ccgain=rand(1,3)
if(usr.ChakraC>=100)
usr.ChakraC=100
return
else
usr.ChakraC+=ccgain
usr<<"[usr] you gained [ccgain] Chakra control..."
else
return
else
usr.random = rand(1,20)
if(random == 5||random==1)
var/ccrandom=rand(1,15)
if(ccrandom==4||ccrandom==10)
var/ccgain=rand(1,3)
if(usr.ChakraC>=100)
usr.ChakraC=100
return
else
usr.ChakraC+=ccgain
usr<<"[usr] you gained [ccgain] Chakra control..."
else
return
else
usr.random = rand (1,4)
if(usr.random == 1||usr.random == 4)
usr.USN = 1
usr.SusanooU += 1
usr.chakra -= 2000
view() << "[usr] Says: Susanoo!"
sleep(10)
flick('Susanoo.dmi',M)
var/damage = round(usr.nin*5)
M.health -= damage
M.chakra -= damage
M.Death(usr)
usr << "[usr] takes [damage] of [M]'s Health and Chakra with Susanoo!"
if(usr.Mnin <= usr.cap)
usr.random = rand(1,6)
if(random == 5||random==1)
usr.ninexp += rand(1,10)
usr.ninup()
usr.Skills()
var/ccrandom=rand(1,15)
if(ccrandom==4||ccrandom==10)
var/ccgain=rand(1,3)
if(usr.ChakraC>=100)
usr.ChakraC=100
return
else
usr.ChakraC+=ccgain
usr<<"[usr] you gained [ccgain] Chakra control..."
else
return
else
usr.random = rand(1,20)
if(random == 5||random==1)
var/ccrandom=rand(1,15)
if(ccrandom==4||ccrandom==10)
var/ccgain=rand(1,3)
if(usr.ChakraC>=100)
usr.ChakraC=100
return
else
usr.ChakraC+=ccgain
usr<<"[usr] you gained [ccgain] Chakra control..."
else
return
else
return
mob
var
G1U = 0
mob/Hatake/verb
OpenFirstGate()
set category = "TaiJutsu"
set name = "First Gate"
if(usr.gate1 == 1)
usr<<"You already have opened the first gate!"
else
if(usr.G1U >= 30)
view()<<"<font size=1><font face=verdana><b><font color=white>[usr]<font color=green> Says: Initial gate open!!"
usr.G1U += 1
usr.health -= round(usr.health/1.5)
usr.tai = usr.tai*1.5
usr.Move_Delay =Speed2
usr.overlays += 'lotus.dmi'
usr.Ldamage()
usr.gate1 = 1
sleep(200)
if(usr.gate1 == 1)
usr.gate1 = 0
usr.tai = usr.Mtai
usr.Move_Delay = Speed1
usr.overlays -= 'lotus.dmi'
usr<<"<B><font color = blue>You close the first gate."
return
else
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: Initial gate open!!"
usr.G1U += 1
usr.health -= round(usr.health/5)
usr.tai = usr.tai*1.5
usr.Move_Delay =Speed2
usr.overlays += 'lotus.dmi'
usr.Ldamage()
usr.gate1 = 1
sleep(200)
usr.gate1 = 0
usr.tai = usr.Mtai
usr.Move_Delay = Speed1
usr.overlays -= 'lotus.dmi'
usr<<"<B><font color = blue>You closed the first gate."
else
usr << "You failed to open the first gate!"
mob/var
In response to Mr. Chex
...Bye.
In response to Mr. Chex
On my game my verb is similar but they have to click Use_Mangekyou various times to make mangekyou work.....plus they need to have the kills and stuff..
In response to Megelic
no it wont even activate sharingan it unactivates it
That code is awful, and you haven't shown the part of the code that you talked about in your problem description.
Read the DM guide, then come back here. I can't understand anything you said like dark magician, and that code is horribly put together. Also, learn your operators. You shouldn't say A = A*B when you could easily say A *= B. Another thing, is that instead of saying if(var==0) you can say if(!var) and instead of saying if(var==1) you can say if(var) (Learn the ! operator, too) .Also, from what I understand, maybe you aren't clicking the verbs fast enough? Either that, or the problem isn't in the code you showed (I skimmed through).
In response to Jeff8500
How about you write your own code and stop ripping :]. That code is horrid...there are so many things wrong with it.
In response to Axerob
Reply to wrong post worse than talking to furniture here.

Kaioken
Lucky numbers:
In response to Darkmag1c1an11
Darkmag1c1an11 wrote:
...Bye.

This is off of an Anime called Naruto, a Jutsu is like a skill or an ability...so to say. Sharingan is a Jutsu in the users eye that gives them better reflexes and strength, but the Hatake Mangekyou Sharingan is just like a better version of it. ; )
In response to Darkmag1c1an11
Darkmag1c1an11 wrote:
I'm going to ask you once more. If you still refuse, I'm just going to click out of this topic and leave it.

Be SPECIFIC. If there is a term that isn't in the dictionary, DEFINE IT. I don't know what a Sasnoo is, how am I supposed to tell you how to fix it? I can somewhat infer that Sharingan is an active skill, and that Mangekyou is an extension of it, but I can't really know for sure.

calm down this is NARUTO stop being an ass

anyway your mangekyou code doesnt have a specfic verb so it doesnt have a target
In response to Naruto0727
Don't assume everyone watches Naruto.

I do, but most people here aren't fans of anime.