mob
verb
Punch()
if(usr.stamina == 2.9)
usr <<"You need to rest before continuing"
if(usr.resting == 1)
usr <<"You Need"
if(usr.resting == 0 && usr.stamina == 3)
Punch_System()
verb
Kick()
if(usr.stamina == 3.9)
usr <<"You need to rest before continuing"
if(usr.resting == 1)
usr <<"You Need"
if(usr.resting == 0 && usr.stamina == 4)
Kick_System()
proc
Punch_System()
if(usr.stamina == 2.9)
usr <<"You need to rest before continuing"
if(usr.resting == 1)
usr <<"You Need"
if(usr.resting == 0 && usr.stamina == 3)
usr.random = rand(1,4)
if(usr. random == 1)
M.powerlevel = -usr.strength
M <<"[usr] Has Attacked You For [usr.strength] Damnage!"
usr.stamina = -1.8
usr <<"You Attacked [M] For [usr.strength] Damnage!"
Tired()
M.Death()
if(usr. random == 2)
usr.stamina = -0.5
usr <<"You Tried To Attack [M], But Missed!"
M <<"[usr] Tried To Attack You, But Missed!"
Tired()
if(usr. random == 3)
usr.stamina = -0.5
usr <<"You Tried To Attack [M], But Missed!"
M <<"[usr] Tried To Attack You, But Missed!"
Tired()
if(usr. random == 4)
M.powerlevel = -usr.strength
M <<"[usr] Has Attacked You For [usr.strength] Damnage!"
usr.stamina = -2.6
usr <<"You Attacked [M] For [usr.strength] Damnage!"
Tired()
M.Death()
proc
Kick_System()
if(usr.stamina == 3.9)
usr <<"You need to rest before continuing"
if(usr.resting == 1)
usr <<"You Need"
if(usr.resting == 0 && usr.stamina == 4)
usr.random = rand(1,4)
if(usr. random == 1)
M.powerlevel = -usr.strength
M <<"[usr] Has Attacked You For [usr.strength] Damnage!"
usr.stamina = -3.8
usr <<"You Attacked [M] For [usr.strength] Damnage!"
Tired()
M.Death()
if(usr. random == 2)
M.powerlevel = -usr.strength
M <<"[usr] Has Attacked You For [usr.strength] Damnage!"
usr.stamina = -3.8
usr <<"You Attacked [M] For [usr.strength] Damnage!"
Tired()
M.Death()
if(usr. random == 3)
usr.stamina = -2.5
usr <<"You Tried To Attack [M], But Missed!"
M <<"[usr] Tried To Attack You, But Missed!"
Tired()
if(usr. random == 4)
M.powerlevel = -usr.strength
M <<"[usr] Has Attacked You For [usr.strength] Damnage!"
usr.stamina = -3.9
usr <<"You Attacked [M] For [usr.strength] Damnage!"
Tired()
M.Death()
proc
Death()
if(usr.powerlever == 0)
usr.loc =locate(1,2,2)
usr <<"You Have Died!"
world <<"[usr] Has Died!"
usr.powerlever =usr.maxpowerlevel
usr.stamina =100
usr.resting =0
proc
Tired()
if(usr.stamina == 0)
usr <<"You Must Wait for Your Stamina To Replensih Before Continuing"
usr.resting =+1
sleep(10)
usr.stamina =+10
sleep(10)
usr.stamina =+10
sleep(10)
usr.stamina =+10
sleep(10)
usr.stamina =+10
sleep(10)
usr.stamina =+10
sleep(10)
usr.stamina =+10
sleep(10)
usr.stamina =+10
sleep(10)
usr.stamina =+10
sleep(10)
usr.stamina =+10
sleep(10)
usr.stamina =+10
usr.resting =0
Problem description:My Game Does Not Have Much In It Yet So Its Had To Try And Test My Battle System. Also How Do I Make It So That When They Attack [M]'s defenses is subtracted from [usr]'s attack reducing the damnage? This Is My Custom Battle System, So If It Does Not Work Please Tell Me Why So I Can Continue Working On It. And If It Does Work And You Like It, Feel Free To Use It But Please Give Me Credit.