mob
Stat()
stat("Jump Level","[jexp]/[maxjexp]")
..()
mob
proc
jumplevelup()
if(src.jexp>=src.maxjexp)//If your exp var equals, or passes your maxexp var
src.level++//Add to your level
src.jexp=0//resets your exp to 0
src.maxjexp*=1.5//makes your maxexp double
src<<"\red You are now a better jumper!!"
src.Statup()
else
..()//defaults if the if() doesn't return it's arguments
mob
verb
Jump()
set category="Tricks"
set name = "jump"
if(!src.jumping)
src.density = 0
src.jumping = 1
sleep(2)//this is the delay between jumps(air time)
src.jumping=0
src.density=1
src.jexp+=3
src.jumplevelup()
/*
mob
verb
Jump()
set category="Tricks"
set name = "jump"
src.density = 0
src.jumping = 1
while(src.jumping)
src.jexp +=3
*/
mob
var
jumping = 0
jexp = 0
maxjexp = 9
Problem description:
umm everytime i try to jump, it freezes the game, its probably an infinite loop, but i cant fix it X_X
help please :)
spawn(3)
while()