ID:163382
 
What could I possibly Do to make a Knock-Out System? I'm a very new Coder, so please bare with me. Or the Elysium one is good, your choice.
Don't repost the same topic just because you didn't receive a reply in less than an hour. You have to be patient and wait for someone to answer you.
In response to Monkeykid0049
Meh, well, since you posted, mind helping? And posts that aren't responded to in an hour are usually just left alone.
In response to Xorbah
I'll try to but I'm not a very good coder -_-" anyway what do you mean by a knockout system?
In response to Monkeykid0049
When you reach a certain amount of HP your screen would go blank(black). Something like that.

*~Modulus
In response to Modulus
makes sense....I thought he was talking about something weird like some boxing game or whatever....
In response to Monkeykid0049
Na. It's why he made the reference to Elysium the DragonBall game. It's pretty basic I could most probably do it, but I'm rusty haven't coded on BYOND in months upon months. So some BYOND savvy will come through the digital doors to help you so don't worry. Just give it a bit.

*~Modulus
In response to Modulus
I've never played Elysium which is probably why I didn't really understand but yeah..

[EDIT]
I think I've played a DBz game that was a rip of Elysium so I might have an idea of what you were talking about....but anyway here's my attempt at making a training/knockout thingy.... -_-"
mob
var //variables youll need
Train = 0
Health = 100
Strength

mob
verb
Train()
if(src.Train==0)//if they arent training
if(src.Health >= 1)//make sure they have health
src. << "You begin to Train."//they start to train
src.Train=1
while(src.Health >= 1)//if their health is atleast 1 or greater
if(Train==1)
src.Strength += rand(1,2)//then their strength increases
src.Health -= rand(1,5)//but health decreases
src. << "You feel stronger."
sleep(50)//wait 5 seconds
else
return
if(src.Health <= 0)//if they have 0 or less health
src << "You blackout!"//then they blackout
//and youll have you're screen black out here
src.Train = 0
return
else
src. << "You don't have enough health to train!"
return
if(src.Train==1)//if they are already training
src. << "You stop resting."//they stop
src.Train=0
return

This is an attempt so I'm not really sure how well it will compare to more expert coders -_-" There are most likely better ways to do this
[EDIT(again...)]
sorry about constantly editing the code...I kept finding problems with it....should of tested it first =P
In response to Monkeykid0049
That would Probably Work, Now I just gotta make a Finish Off Verb to Kill them.