ID:169789
 
mob
proc
Levelup()
if(src.exp >= src.maxexp)
if(src.Hyuga)
level++
Chakra+= rand(5,15)
ninjutsu+= rand(5,10)
genjutsu+= rand(5,15)
Taijutsu+= rand(5,20)
Agility+= rand(5,20)
Stamina+= rand(5,15)
Control+= rand(0,1)
src << "<li><font face= Arial color= blue>You are now on level [level]!!</font></li>"
src.maxchakra = src.chakra
return
if(src.Uchiha)
level++
Chakra+= rand(5,15)
ninjutsu+= rand(5,20)
genjutsu+= rand(5,15)
Taijutsu+= rand(5,10)
Agility+= rand(5,15)
Stamina+= rand(5,20)
Control+= rand(0,1)
src << "<li><font face= Arial color= blue>You are on level [level]!!</font></li>"
src.maxchakra = src.chakra
return
if(src.Akimichi)
level++
Chakra+= rand(5,20)
ninjutsu+= rand(5,15)
genjutsu+= rand(5,10)
Taijutsu+= rand(5,20)
Agility+= rand(5,10)
Stamina+= rand(5,15)
Control+= rand(0,1)
src << "<li><font face= Arial color= blue>You are on level [level]!!</font></li>"
src.maxchakra = src.chakra
return
if(src.Kayuga)
level++
Chakra+= rand(5,15)
ninjutsu+= rand(5,15)
genjutsu+= rand(5,10)
Taijutsu+= rand(5,20)
Agility+= rand(5,15)
Stamina+= rand(5,10)
Control+= rand(0,1)
src << "<li><font face= Arial color= blue>You are on level [level]!!</font></li>"
src.maxchakra = src.chakra
return

Okay how do I make it easier so every 50 levels I don't have to do a new level up proc, so they gain more stats.For example every 50 levels they would move up a mode from easy to Hokage. Everytime they move up a rank, their exp to gain levels will change for example from 4000 to 15k.

But they will gain more stats as they move up modes.How do I do all that in in one level up proc, if its possible.

That's easy, and the way you are checking for their clan is just wrong. I would imagine they can only have one clan(hince your return), but if not there is still a much, much easier way.

mob
var
statratio = 1
clan = "Hyuga"//Just an example
proc
Levelup()
if(src.exp >= src.maxexp)
if(!src.lvl%50)//remainder of src.lvl/50 is 0
src.statratio += 0.10 // 10% stat increase
src.mode = "Hokage"//?Not sure what you want?
src.maxexp += 15000
if(src.clan == "Hyuga")
//Add stats
src.Taijutsu += round(rand(5,20) * src.statratio)
In response to SSJ2GohanDBGT
SSJ2GohanDBGT wrote:
That's easy, and the way you are checking for their clan is just wrong. I would imagine they can only have one clan(hince your return), but if not there is still a much, much easier way.

> mob
> var
> statratio = 1
> clan = "Hyuga"//Just an example
> proc
> Levelup()
> if(src.exp >= src.maxexp)
> if(!src.lvl%50)//remainder of src.lvl/50 is 0
> src.statratio += 0.10 // 10% stat increase
> src.mode = "Hokage"//?Not sure what you want?
> src.maxexp += 15000
> if(src.clan == "Hyuga")
> //Add stats
> src.Taijutsu += round(rand(5,20) * src.statratio)
>


If you have played Majin and mystics remastered you will know what I mean on the mode thing.
In response to Broly103
I have not, thusly I do not.