mob
verb
Train()
if (usr.flying == 0)
usr<<"You commence with your training."
icon='player.dmi'
icon_state="sparfury"
exp+=nextexp/rand(10,50)
Learn_Kamehameha()
Learn_Galick_Gun()
Learn_Special_Beam_Cannon()
spawn(30)
LevelCheck()
else if (usr.flying == 1)
usr<<"You can't fly and train at the same time."
proc
LevelCheck()
if(src.exp>=src.nextexp)
src.exp=src.exp-src.nextexp
src.nextexp*=2
src.level+=1
src.max_powerlevel += rand(1000,10000)
src.powerlevel += rand(1000,10000)
src.ki += rand(1000,10000)
src.max_ki += rand(1000,10000)
src<<"You are now Level [src.level]"
mob
var
powerlevel
max_powerlevel
ki
max_ki
level
exp
nextexp
zenni
flying=0
proc
Power_Level_Interchange()
if (usr.powerlevel >= usr.max_powerlevel)
usr.powerlevel = usr.max_powerlevel
Problem description:
Well, the code comes up fine, no runtime errors . . . However . . . When I actually test out the Train verb, I can't figure out how to make it end. I tried to make an else directive, but everything I try just doesn't work. Any tips?
P.S. I know I am kind of noobish, but I just started good coding a few days ago. My last game, a few months ago, did NOT go so well . . .