ID:802605
 
(See the best response by Shwb1.)
Code:
    DyingTraining
icon='DWITraining.dmi'
density = 1
zer = 1
verb
Train()
set category = "Training"
set src in oview(1)
if(usr.health>= 5)
usr << "<b>Your too tired to do this! Please rest!"
return
if(!usr.firing)
usr.firing = 1
flick("punch",src)
usr.Levelup()
usr.exp = 100
usr.mDWP += 500
usr.MDyingWill += 500
usr.skillpoints += 500
sleep(12)
if(usr)
usr.firing = 0


Problem description:

Well, I kinda know how to do this but don't.

Basically, I need to know how to write a code that Round the Player Current HP And Minus by x/x of it everytime you hit it.

I Would think A Code like that would look something like this,
usr.health-= usr.maxhealth/ 0.5


But i'm not sure.

Thanks in Advance And If you know a Better Way I can do this then feel free to say so.
Best response
var/a = usr.health-= usr.maxhealth/ 0.5
round(a)


please read that special helper called the help file :D
open DM > menu bar > help > help on...
thanks i figure it out.