ID:148438
 
When you go ssj1 u can go ssj2 when u go ssj2 u can go ssj1 someone fix it please

mob/Goku/verb/SSJ()
if(usr.level > 99)
if(usr.ssj == 0)
if(usr.ssj2a == 0)
usr << "You revert from SSj"
oview(6) << "[usr]'s hair returns to normal as the aura from Super Saiyan dissapates"
usr.underlays -= 'ssjaura.dmi'
usr.icon = 'Person.dmi'
usr.icon_state = "Goku"
usr.Powerlevel = usr.Powerlevel/4

usr.Str = usr.Str/4
usr.Def = usr.Def/2
ssj = 1


else

usr << "You turn SSj"
oview(6) << "[usr]'feels more power as his hair turns golden"
usr.underlays += 'ssjaura.dmi'
usr.icon = 'Person.dmi'
usr.icon_state = "SSJgoku"
usr.Powerlevel = usr.Powerlevel*4

usr.Str = usr.Str*4
usr.Def = usr.Def*2
ssj = 0
usr.ssj1a = 1
return



if(usr.ssj2 == 2)
usr << "You are in a superform"
return

mob/Goku/verb/SSJ2()
if(usr.level > 399)
if(usr.ssj2 == 0)
if(usr.ssj1a == 0)
usr << "You revert from SSj"
oview(6) << "[usr]'s hair returns to normal as the aura from Super Saiyan dissapates"
usr.underlays -= 'ssjaura.dmi'
usr.icon = 'Person.dmi'
usr.icon_state = "Goku"
usr.Powerlevel = usr.Powerlevel/4

usr.Str = usr.Str/4
usr.Def = usr.Def/2
ssj2 = 1




else
usr << "You turn SSj2"
oview(6) << "The begins to shake as [usr] goes SSJ2"
usr.underlays += 'ssjaura.dmi'
usr.icon = 'Person.dmi'
usr.icon_state = "SSJgoku"
usr.Powerlevel = usr.Powerlevel*4

usr.Str = usr.Str*4
usr.Def = usr.Def*2
ssj2 = 0
usr.ssj2a = 1
return

if(ssj == 2)
usr << "You are in a superform"

ssj2 = 2
return



mob
var
ssj2 = 0
ssj1a = 0
ssj2a = 0


Here, try this...I think it's simple enough for your needs, and it'll cut back on your variable usage. If you need something more, don't hesitate to ask.

mob
verb
SSJ()
if(usr.ssj==0)
orange(usr)<<"[usr] goes SSJ!"
usr.ssj++//now add your other stuff here
if(usr.ssj==1)
orange(usr)<<"[usr] goes SSJ2!"
usr.ssj++//now add your other stuff here
if(usr.ssj==2)
orange(usr)<<"[usr] goes SSJ3!"
usr.ssj++//now add your other stuff here
if(usr.ssj==3)
orange(usr)<<"[usr] goes SSJ4!"
usr.ssj++//now add your other stuff here
Revert()
if(usr.ssj==1)
orange(usr)<<"[usr] reverts from SSJ!"
usr.ssj--//now add your other stuff here
if(usr.ssj==2)
orange(usr)<<"[usr] reverts from SSJ2!"
usr.ssj--//now add your other stuff here
if(usr.ssj==3)
orange(usr)<<"[usr] reverts from SSJ3!"
usr.ssj--//now add your other stuff here
if(usr.ssj==4)
orange(usr)<<"[usr] reverts from SSJ4!"
usr.ssj--//now add your other stuff here
else
..()
In response to Goku72
Those need to be else-if(), not if(), except for the first one.