ID:147840
 
At first i wanna say that this is a dbz code.
If you post here by saying, Go Make Something else Noob or saying something that has nothing to do with the topic.
Then don't post please.

Well i have trouble with this code:

obj
ssj
verb
SSJ()
if(usr.ssj==0)
orange(usr)<<"[usr] goes SSJ!"
if(usr.powerlevel < 800000)
usr << "<b>You seem too weak to."
if(usr.powerlevel >= 800000 && usr.powerlevel < 5000000)
usr << "<b>You explode in rage as you go Super Saiya-jin."
oview(6) << "<b>**<font color = red>[usr]'s hair begins to stand on end as a golden aura surrounds him.<font color = white>**"
usr.overlays += 'hair_super_saiyajin.dmi'
usr.overlays -= 'hair_black_spikey.dmi'
usr.overlays -= 'hair_black_spikey.dmi'
usr.overlays -= 'hair_black_spikey.dmi'
usr.underlays += 'ssjaura.dmi'
usr.ssj = 1
usr.state = "Super Saiya-jin"
usr.powerlevel = (usr.powerlevel * (rand(2,2.5)))
usr.powerlevel = round(usr.powerlevel)
usr.tiredssj()
if(usr.powerlevel >= 5000000 && usr.powerlevel < 20000000)
if(usr.ssj == 1)
usr.powerlevel += 0
if(usr.ssj==1)
orange(usr)<<"[usr] goes SSJ2!"
usr << "<b>You explode in rage as you go Super Saiya-jin 2."
oview(6) << "<b>**<font color = red>[usr]'s hair begins to stand on end and spike up as electricity flows around him and a golden aura surrounds him.<font color = white>**"
usr.overlays += 'hair_super_saiyajin.dmi'
usr.overlays -= 'hair_black_spikey.dmi'
usr.overlays += 'elec.dmi'
usr.underlays += 'ssjaura.dmi'
usr.ssj = 2
usr.state = "Super Saiya-jin 2"
usr.powerlevel = (usr.powerlevel * (rand(3,3.5)))
usr.powerlevel = round(usr.powerlevel)
usr.tiredssj()
if(usr.powerlevel >= 20000000)
if(usr.ssj == 1)
usr.powerlevel += 0
if(usr.ssj==2)
orange(usr)<<"[usr] goes SSJ3!"
usr << "<b>You explode in rage as you begin to go Super Saiya-jin 3."
oview(6) << "<b>**<font color = red>[usr]'s hair begins to spike backwards, as his eyebrows begin to dispatch.<font color = white>**"
usr.overlays += 'ssj3.dmi'
usr.overlays -= 'hair_black_spikey.dmi'
usr.overlays -= 'hair_super_saiyajin.dmi'
usr.underlays += 'ssjaura.dmi'
usr.state = "Super Saiya-jin 3"
usr.ssj = 3
usr.powerlevel = (usr.powerlevel * (rand(4,4.5)))
usr.powerlevel = round(usr.powerlevel)
usr.tiredssj()
if(usr.ssj==3)
orange(usr)<<"[usr] goes SSJ4!"
usr << "<b>You explode in rage as you begin to go Super Saiya-jin 4."
oview(6) << "<b>**<font color = red>[usr]'s hair begins to spike backwards, as he grows red hair on his chest.<font color = white>**"
usr.overlays += 'ssj4-hair.dmi'
usr.oicon = usr.icon
usr.icon = 'ssj4.dmi'
usr.overlays -= 'hair_black_spikey.dmi'
usr.overlays -= 'ssj3.dmi'
usr.underlays += 'ssjaura.dmi'
usr.state = "Super Saiya-jin 4"
usr.ssj = 4
usr.powerlevel = (usr.powerlevel * (rand(6,6.5)))
usr.powerlevel = round(usr.powerlevel)
usr.tiredssj()


And im getting this warnings:
objs.dm:415:if :warning: if statement has no effect
objs.dm:417:if :warning: if statement has no effect
objs.dm:430:if :warning: if statement has no effect
objs.dm:431:if :warning: if statement has no effect
objs.dm:446:if :warning: if statement has no effect
objs.dm:447:if :warning: if statement has no effect

And the warnings point too this codes:
if(usr.powerlevel < 800000)
if(usr.powerlevel >= 800000 && usr.powerlevel < 5000000)
if(usr.powerlevel >= 5000000 && usr.powerlevel < 20000000)
if(usr.ssj == 1)
if(usr.powerlevel >= 20000000)
if(usr.ssj == 2)


I tried else-if with those last 5 but it just made it worser.
Please help if you can...
Thanks in advance
I am fully against these thousands of DBZ "games" so I will not help as much as I would normally, but I have 2 words for you "Incorrect Indentation".

~Ease~
In response to Ease
lol. what happended to all the indents? lol. TAB is the key btw.
In response to ZDarkGoku
Indentation is messed up, something simple that can be fixed easily.
In response to Vakir
Bah stupid me, well its fixed now, thank you guys
Now i understand more about the indentation problem.

EDIT:
Pff, still got a problem, ok when i transform it transforms ssj 1, but when i click it again it transforms too ssj4.

mob
ssj
verb
Transform()
set category = "Fighting"
set name = "Transform"
if(usr.ssj==0)
orange(usr)<<"[usr] goes SSJ!"
if(usr.powerlevel < 800000)
usr << "<b>You seem too weak to."
if(usr.powerlevel >= 800000 && usr.powerlevel < 5000000)
usr << "<b>You explode in rage as you go Super Saiya-jin."
oview(6) << "<b>**<font color = red>[usr]'s hair begins to stand on end as a golden aura surrounds him.<font color = white>**"
usr.overlays += 'hair_super_saiyajin.dmi'
usr.overlays -= 'hair_goku.dmi'
usr.overlays -= 'hair_vegeta.dmi'
usr.overlays -= 'hair_black_spikey.dmi'
usr.underlays += 'ssjaura.dmi'
usr.ssj = 1
usr.state = "Super Saiya-jin"
usr.powerlevel = (usr.powerlevel * (rand(2,2.5)))
usr.powerlevel = round(usr.powerlevel)
usr.tiredssj()
if(usr.powerlevel >= 5000000 && usr.powerlevel < 20000000)
if(usr.ssj == 1)
usr.powerlevel += 0
if(usr.ssj==1)
orange(usr)<<"[usr] goes SSJ2!"
usr << "<b>You explode in rage as you go Super Saiya-jin 2."
oview(6) << "<b>**<font color = red>[usr]'s hair begins to stand on end and spike up as electricity flows around him and a golden aura surrounds him.<font color = white>**"
usr.overlays += 'hair_super_saiyajin.dmi'
usr.overlays -= 'hair_black_spikey.dmi'
usr.overlays += 'elec.dmi'
usr.underlays += 'ssjaura.dmi'
usr.ssj = 2
usr.state = "Super Saiya-jin 2"
usr.powerlevel = (usr.powerlevel * (rand(3,3.5)))
usr.powerlevel = round(usr.powerlevel)
usr.tiredssj()
if(usr.powerlevel >= 20000000)
if(usr.ssj == 2)
usr.powerlevel += 0
if(usr.ssj==2)
orange(usr)<<"[usr] goes SSJ3!"
usr << "<b>You explode in rage as you begin to go Super Saiya-jin 3."
oview(6) << "<b>**<font color = red>[usr]'s hair begins to spike backwards, as his eyebrows begin to dispatch.<font color = white>**"
usr.overlays += 'ssj3.dmi'
usr.overlays -= 'hair_black_spikey.dmi'
usr.overlays -= 'hair_super_saiyajin.dmi'
usr.underlays += 'ssjaura.dmi'
usr.state = "Super Saiya-jin 3"
usr.ssj = 3
usr.powerlevel = (usr.powerlevel * (rand(4,4.5)))
usr.powerlevel = round(usr.powerlevel)
usr.tiredssj()
if(usr.ssj==3)
orange(usr)<<"[usr] goes SSJ4!"
usr << "<b>You explode in rage as you begin to go Super Saiya-jin 4."
oview(6) << "<b>**<font color = red>[usr]'s hair begins to spike backwards, as he grows red hair on his chest.<font color = white>**"
usr.overlays += 'ssj4-hair.dmi'
usr.oicon = usr.icon
usr.icon = 'ssj4.dmi'
usr.overlays -= 'hair_black_spikey.dmi'
usr.overlays -= 'ssj3.dmi'
usr.underlays += 'ssjaura.dmi'
usr.state = "Super Saiya-jin 4"
usr.ssj = 4
usr.powerlevel = (usr.powerlevel * (rand(6,6.5)))
usr.powerlevel = round(usr.powerlevel)
usr.tiredssj()


I tried this:
else
if(usr.ssj==1)
oview(6) << "[usr] transforms in a chihahwhaou"

But it gave me more if statement errors
In response to Superchoson
I doubt i'm right but i'll give it a try.

"usr"

should be

"src"

On all of the "if(usr.ssj==1)"

Perhaps? if not, then ignore me.
In response to Karasu Kami
Nevermind i quit making dbz games because there are just too many rips.
And i just have seen the beauty of coding.
Im reading the blue book right now, and im on chapter 4.
Well thanks anyway for replying.