ID:146040
 
Code:
obj
aura
verb
powerup()
set name = "Power Up"
set category = "Fighting"
if(usr.powered == null||1||0)
if(usr.powerlevel < usr.maxpowerlevel)
while(usr.powerlevel < usr.maxpowerlevel) //while their powerlevel is less than their max
usr.powerlevel += usr.maxpowerlevel/10 //increase it by 1/10 of their max every 2 seconds
//skills.dm:350: Inconsistent indentation.
sleep(20)
//skills.dm:351: Inconsistent indentation.
goto loop
//skills.dm:352: Inconsistent indentation.
usr.dir=2
usr.icon_state="ssj"
usr << "<B>An aura flickers around you."
view()<<sound('energy.wav')
var/aura = 'whiteaura.dmi'
aura += rgb(usr.customred,usr.customgreen,usr.customblue)
usr.underlays += aura
poweruploop
if(usr.powerlevel >= usr.maxpowerlevel)
usr << "You finish powering up."
break //ends proc if powerlevel is max or greater
usr.icon_state=""
usr.underlays -= aura
usr.overlays -= /obj/ray
usr.ptime = 1
sleep(1800)
usr.ptime = 0


Problem description:
plz help to repair this

Please learn how to program yourself. It is not helping you by taking other peoples codes and asking the community to fix it. You have been posting ALOT of useless threads today.

EDIT: Also you have to state the problem of the code, not just tell us to read over it.

->Calus CoRPS<-
Well, let's see here.

  • Everything under while and above that if() statement needs a tab over
  • if() statement and under needs 2 tabs over
  • You're using "goto" when a while() or for() loop would be better by far
  • Seeing as you used the word "powered"(which is most likely boolean) for one of your vars and are doing an if() check to see if it equals any of the options you're going to make it be, you should just remove that because it's pointless.
  • You didn't close your
tag.