ID:177789
 
How do you make a code have a max use? Like if I wanted there to be SSJ and if you are already in SSJ, then it just makes everything null. Well, its hard to explain, but could someone at least try to help me!
1.Dont make DBZ games, 2. That is about the simplest thing ever, so it tells me your working with someone elses code. 3. Thats what the if proc is made for(and about a milloin other proc on byond).
In response to Scoobert
Scoobert wrote:
1.Dont make DBZ games,

unless you know what you are doing.

2. That is about the simplest thing ever, so it tells me your working with someone elses code.

or don't know what you are doing

3. Thats what the if proc is made for(and about a milloin other proc on byond)

not really, the if proc is made to return 1 or 0

:P

but yes, it does involve the if proc.
In response to Ter13
K, I can make a DBZ Game if I want! I tried that return 1 and 0 stuff, and It doesn't work, so could one of you tell me whats wrong with the code.
In response to Kamion
mob/verb/Super_Saiyan()
if(usr.powerlevel >= 100000)
if(usr.ss == 0)
switch(rand(1,3))
if(1)
flick("goingss",usr)
usr <<"You scream in rage as you transform to your super saiyan state"
usr.overlays += 'sshair.dmi'
usr.ss = 1
if(2)
flick("goingss",usr)
usr <<"Your hair flashes golden and stays there..you go super saiyan with ease."
usr.overlays += 'sshair.dmi'
usr.ss = 1
if(3)
flick("ssfailed",usr)
usr <<"You try to go super saiyan but fail..(Try again)"
else
switch(rand(1,2))
if(1)
flick("revertssj",usr)
usr <<"You Revert from your saiyan State"
usr.overlays -= 'sshair.dmi'
usr.ss = 0
if(2)
flick("revertfail",usr)
usr <<"You fail to revert(try again!)"

That should work.(That isn't no zeta coding.I made it my self.Lol)

Its more advanced..then those cheezy ssj verbs..

[SX]
In response to Siientx
but its not like he understands why you did anything in there. And if you payed attention to the show(yes i do watch from time to time, i have a little bro) going SS doenst depend on your power lvl, look at goten and trunks, both SS but there power even at SS is not even Gokus out of SS. And when there not SS, i bet krillen could kick there buts. So to be true to the show, you would need, 1. An aging system. And 2. SS ability ranked by age and power lvl, not just power lvl.
In response to Scoobert
Powerelevel was just an example =/

try this then,


mob/verb/Super_Saiyan()
if(usr.powerlevel >= 100000 && usr.age >= 15)
if(usr.ss == 0)
switch(rand(1,3))
if(1)
flick("goingss",usr)
usr <<"You scream in rage as you transform to your super saiyan state"
usr.overlays += 'sshair.dmi'
usr.ss = 1
if(2)
flick("goingss",usr)
usr <<"Your hair flashes golden and stays there..you go super saiyan with ease."
usr.overlays += 'sshair.dmi'
usr.ss = 1
if(3)
flick("ssfailed",usr)
usr <<"You try to go super saiyan but fail..(Try again)"
else
switch(rand(1,2))
if(1)
flick("revertssj",usr)
usr <<"You Revert from your saiyan State"
usr.overlays -= 'sshair.dmi'
usr.ss = 0
if(2)
flick("revertfail",usr)
usr <<"You fail to rever

[SX]
In response to Scoobert
actually, it IS power level dependent, but because gohan's PL is 24,000,000 when he is sparring with goten, and goten's in SSJ is only like... let's see... erm... 16,000,000, Goten is still hella powerful, but for a little kid without any combat experience, and not being able to fly, yes, krillin would beat the crap out of him... if he used ki. But if it were hand to hand, and krillin didn't use any techiques, he would bet beaten, BECAUSE goten can't move at light speed yet.

AND the way I know it is PL dependent? well, you see here are my reasons:

1: half saiyans are prone to more periods of rage, and are more emotionally unbalanced than saiyans. Human blood reacts with saiyan blood in a way that is unpredictable, because goku was around 40 million powerlevel when goten was concieved, goten was left with MUCH more power than gohan was, when goku's power level was barely over a thousand. AND because Chi-chi was so hard on Goten during training, he became much more powerful, BECAUSE of the emotional stress put on him. The more emotional stress put on a body, the more the bar for super saiyan is moved back.

2: SSJ2 is only reached in periods of rage or extreme anger. Gohan reached SSJ2 when fighting with cell, because cell killed Goku. Gohan was the first to reach SSJ2.

That proves my point, it IS PL dependent, but because trunks and goten were seeded by powerful warriors, much of that power was there from birth, they just needed to learn how to use it.
In response to Ter13
oh, and when you first reach SSJ, your power dramatically increases, and you keep about a third of the power you gained during the first transformation. Goku's power level is 64,000,000 when he dies. Goten and trunks' powerlevels are only 16,000,000 in SSJ. Goku's power is stretched to the max, but goten and trunks are still learning to use theirs, eventually, goten could learn to be MUCH more powerful than goku could ever be, BECAUSE he started out so high.
In response to Siientx
Thats close to what i ment, but i mean that as you get older it makes it harder to go SS(i dont say SSJ because were not in jap, well most of us airnt) but when you do, you are more powerful of a SS.
In response to Ter13
how do you know there power lvls? The show dosnt tell you.
In response to Ter13
but..... if u think back thats not necesarily true. brolly, went ssj when he was a mere baby, he was born with power level of 10,000 and the only thing that drove him to go ssj was gokus crying (gokus crib was next to his) and that drove him crazy so i dont think pl has to do with going ssj, just getting ticked off. goku went ssj because frieza killed kurrin. so thats what i think, its rage.
In response to Liushinkyu
and as I said in my post, it IS power dependent, just a ton of rage and frustration moves the bar back!

SSJ2 is ONLY reached by rage, BUT, there is a large requisite to even get there in the first place. You must have a lot riding on you to transform the first time.

Trunks has little emotion, but Vegeta pushed him so hard to be a great saiyan warrior, he ended up getting moved so far ahead. AND goku was only a PL 45 at birth. that means he killed master gohan in the ape form at only a powerlevel 450! Master Gohan was only PL 225 at the time! Muten Roshi is only a powerlevel of 126, even though he is like 300 years old. YOu see?

Read posts more thouroughly.
In response to Scoobert
that doesnt mean hes using someone elses code.when i was new i didnt know that and asked the exact question...I was doing it from scratch
In response to Ter13
how do you know all these power lvls??