ID:966232
 
(See the best response by Kaiochao.)
Code:
mob/PC/verb/Prestitge()
set category = "Training"
switch(alert("Prestige Doubles Your stats!","Prestige 500,000","Yes","No"))
if("Yes")
if(src.level < 500000)
alert("You Have To Be Level 500,000 To Prestige!")
else
src.powerlevel_max * 2
src.ki_max * 2
src.strength_max * 2
src.defence_max * 2
src.speed_max * 2
src.fatigue_max * 2
src.level = 1
src.mode = 1
src.rank = "Newbie"
usr<< "You Prestiged to level [plvl]!"
if("No")
return


Problem description:
i get an error on the first alert
What would that error be?

If I had to take a guess, it's because you're tabbing everything under set category, which is incorrect.
Best response
Aside from the actual error, you're going to get a lot of warnings for those "var * 2" lines. If you want to set a variable to "var * 2", you use the *= operator.
n *= 2
n = n * 2 // equivalent
Now that the code errors are out of the way. Why the hell are you letting people double their level an infinite number of times simply for being over level 500,000?
In response to DvK87
DvK87 wrote:
Now that the code errors are out of the way. Why the hell are you letting people double their level an infinite number of times simply for being over level 500,000?

You must've misread the code. Try again.
Good call, they set the level to 1 after and its the power level that doubles. I don't really understand that game mechanic but whatever.
In response to DvK87
DvK87 wrote:
Now that the code errors are out of the way. Why the hell are you letting people double their level an infinite number of times simply for being over level 500,000?
the level reverts to level 1
In response to DvK87
its a new dbz game. non rip either
it is not! i started this new on thank you sketh >:O
What does prestige mean in this context? why does prestige double your power level? When in dragonball does prestige double your power level?
In response to DvK87
Think CoD, and there is no reason for it. It's a stupid idea.
Yeah im thinking that too, I can respect fan-games if they at least link the gameplay to the spirit of the original franchise. I don't understand mimicking a popular FPS in the game mechanics of a dragonball game.

(Correcting spelling/grammar rather than addressing a criticism is a form of concession in my mind)