ID:146521
 

obj/sharingan
verb
Sharingan()
set category = "Dojutsu"
if(src.resting == 1)
src<< "You are resting"
return
if(usr.Chakra <=49)
src<< "You do not have enough Chakra"
if(src.drain == 1)
src << "Your Sharingan is already active"
return
if(usr.CControl == 101)
var/CCusage = rand(48,51)
if(CCusage <=49)
view(usr) << "[usr] says, Sharingan"
usr << "[CCusage]/50 Chakra Converted"
usr.Chakra -= CCusage
return
if(CCusage >=50)
view(usr) << "[usr] says, Sharingan"
usr << "[CCusage]/50 Chakra converted"
usr.Chakra -= CCusage
usr << "Sharingan activated"
view(usr) << "1 Cleft appears in [usr] eye and 2 in the other"
src.contents += new/obj/illuminate()
src.contents += new/obj/Deactivate_Sharingan()
return
if(usr.CControl >= 130)
var/CCusage = rand(45,50)
if(CCusage <=49)
view(usr) << "[usr] says, Sharingan"
usr << "[CCusage]/50 Chakra converted"
usr.Chakra -= CCusage
return
if(CCusage >= 50)
view(usr) << "[usr] says, Sharingan"
usr << "[CCusage]/50 Chakra Converted"
usr.Chakra -= CCusage
usr << "Sharingan activated"
view(usr) << "1 Cleft appears in [usr] eye and 2 in the other"
src.contents += new/obj/illuminate()
src.contents += new/obj/Deactivate_Sharingan()
if(usr.CControl <=100)
view(usr) << "[usr] says, Sharingan"
usr << "50/50 Chakra Converted"
usr.Chakra -= 50
usr << "Sharingan activated"
view(usr) << "1 Cleft appears in [usr] eye and 2 in the other"
src.contents += new/obj/illuminate
src.contents += new/obj/Deactivate_Sharingan

obj/Deactivate_Sharingan
verb
Deactivate_Sharingan()
set category = "Dojutsu"
src.contents -= new/obj/illuminate
src.contents -= new/obj/Deactivate_Sharingan
usr << "You deactivated Sharingan"
view(usr) << "[usr] Deactivates Sharingan"

obj/illuminate
verb
Illuminate()
set category = "Dojutsu"


When I activate sharingan,Deactivate_sharingan nor Illuminate show up.

Umm, I was looking at your code, your objects don't show up because you have no icons set to them.
In response to CaptFalcon33035
I think he means the verbs.
In response to CaptFalcon33035
CaptFalcon33035 wrote:
Umm, I was looking at your code, your objects don't show up because you have no icons set to them.

There not supposed to,those are techniques you learn at a certain skill.
In response to Hell Ramen
Hell Ramen wrote:
I think he means the verbs.

Yep,after you activate Sharingan those verbs should show up.
In response to Broly103
Now it won't take away the sharingan :(.

obj/Deactivate_Sharingan
verb
Deactivate_Sharingan()
set category = "Doujutsu"
usr.skills -= /obj/Deactivate_Sharingan()
usr.skills -= /obj/illuminate()
usr << "You deactivated Sharingan"
view(usr) << "[usr] Deactivates Sharingan"

runtime error: bad proc
proc name: Deactivate Sharingan (/obj/Deactivate_Sharingan/verb/Deactivate_Sharingan)
usr: Broly103 (/mob)
src: Deactivate Sharingan (/obj/Deactivate_Sharingan)
call stack:
Deactivate Sharingan (/obj/Deactivate_Sharingan): Deactivate Sharingan()
In response to Broly103
You can't subtract verbs of the same verb parent(like, mob/asdf/verb/q() in the verb mob/asdf/verb/q() or something, I can't remember). Try doing it in a proc called by the mob or something.
In response to Hell Ramen
Hell Ramen wrote:
You can't subtract verbs of the same verb parent(like, mob/asdf/verb/q() in the verb mob/asdf/verb/q() or something, I can't remember). Try doing it in a proc called by the mob or something.

An example,not the answer please.
In response to Broly103
Why? You shouldn't always be asking for "DBZ"-answers. I know, I may be being a jackass right now, but, I'm sorry, I'm not going to give you "the code" to the point to where your game was made by the BYOND community, not you, and most of it already is. I know, somebody uber-nice will come along and help you, but still, you need to learn or try by yourself.
In response to Hell Ramen
Okay, Ill give it one more run.
In response to Broly103
Post the code too, so we can help you with your mistakes, and whatever else has happened.
In response to Hell Ramen
Hell Ramen wrote:
Post the code too, so we can help you with your mistakes, and whatever else has happened.

No thanks,Ill try to solve this one by myself.

EDIT:Anyways, I start summer vacation in 2 days, then Ill have more time to practice.Also any other guides out there,because the dm guide explains it in a hard matter.
In response to Broly103
I'm sorry, I didn't really mean it like that. I just meant that you should atleast give it a try, not just go "code plx no answers".
In response to Hell Ramen
Hell Ramen wrote:
I'm sorry, I didn't really mean it like that. I just meant that you should atleast give it a try, not just go "code plx no answers".

Actually, I'm glad you said that, I need to learn how to do things on my own and stop asking for so much help.I'm haveing a hard time in this language because,when I get to something id on't understand I feel like quitting don't know why,and the dm guide has some weird explanations.
In response to Broly103
Broly103 wrote:
the dm guide has some weird explanations.

Remember, if you don't understand something in the DM Guide, you can always ask on the developer forum!
In response to Wizkidd0123
Wizkidd0123 wrote:
Broly103 wrote:
the dm guide has some weird explanations.

Remember, if you don't understand something in the DM Guide, you can always ask on the developer forum!


Yeah,but sometimes I do not get the explanations on the forum either.Yes its true I did not get a thing you did when you were explaining list's but I was scared if you might get mad at me asking for another explanation.
In response to Broly103
Broly103 wrote:
Yeah,but sometimes I do not get the explanations on the forum either.Yes its true I did not get a thing you did when you were explaining list's but I was scared if you might get mad at me asking for another explanation.

I won't get mad at all! If you can dig up that thread, and you can reply to my post, telling me what parts of it confuse you, I'll be glad to clarify them!
In response to Wizkidd0123
Wizkidd0123 wrote:
Broly103 wrote:
Yeah,but sometimes I do not get the explanations on the forum either.Yes its true I did not get a thing you did when you were explaining list's but I was scared if you might get mad at me asking for another explanation.

I won't get mad at all! If you can dig up that thread, and you can reply to my post, telling me what parts of it confuse you, I'll be glad to clarify them!

The topic is in the developer how to section, revived it.
In response to Broly103
Hmmm...Someone who actually thanks people when they're told to try to do it themselves first. Thats a change.
In response to Hell Ramen
Hell Ramen wrote:
I'm sorry, I didn't really mean it like that. I just meant that you should atleast give it a try, not just go "code plx no answers".

Guess what, I fixed the problem ;) and thanks for the advice.

EDIT:I got it to drain stamina and stop draining stamina my own way not the way wizkid did it!
Page: 1 2