ID:177777
 
I have tried over and over and can't get one to work could U please give me the code. I'll give U credit. No GM powers unless You wish to join the team.
You need to be more specific what exactly are you looking for?
In response to Nadrew
A system where U can eat food and gain health. I need one for an apple, chicken, and meat. But also no going over max health and can be eaten only once
In response to Codesterz
obj
food
var/hpup
apple
hpup = 10
chicken
hpup = 50
beef
hpup = 70

verb/eat()
usr.hp += src.hpup
if(usr.hp >= usr.maxhp)
usr.hp = usr.maxhp

mob
var
hp = 100
maxhp = 100
In response to Nadrew
Actually I remember reading a snippet by Sariat I think that did something like this with the min procedure.
This code needs editing to work.

eat(mob/usr,obj/food/src)
if(usr.hp >= mhp)
usr << "You are full."
return 0
var/x = min(usr.hp+src.rvalue,usr.mhp)
usr << "You gain [x-usr.hp] health!"
usr.hp = x
//rvalue is how much health an object restores.
//I'm not sure how well this works.
In response to Exadv1
Thats me!
In response to Codesterz
.....that is SO SIMPLE! YOu must not be trying... or you lied about trying, it is SO SIMPLE! Mine was hard, where you had to eat or you'd starve to death... and you could vomit if you eat too much.... stuff like that! What you are trying to do is SO EASY I will call you a newbie forever if you don't figure it out...
In response to Ter13
Ter13 wrote:
.....that is SO SIMPLE! YOu must not be trying... or you lied about trying, it is SO SIMPLE! Mine was hard, where you had to eat or you'd starve to death... and you could vomit if you eat too much.... stuff like that! What you are trying to do is SO EASY I will call you a newbie forever if you don't figure it out...

Ter13, why teh F*ck do u reply saying its soo easy and then u never tell them how to do it.
you do it in almost all of your replies.
he will learn if someone tells him because then he can understand that code and learn what it did.

in future, why dont u actually reply for a reason instead of calling them a newbie.
In response to R4GIN
Okay, now first of all, he has been asking questions NONSTOP since day 1, and he will only learn that there are people willing to help make his game on BYOND, which is not always true, I have also seen this guy bumping posts nonstop within 20 minutes of his previous post, just because there was 1 above his and he had no reply, ALSO I have seen him b***hing about his post being up for an hour and a half and not having replies, just because the other posts were responded to in a few minutes.

I WILL tell you this, I learned the most about BYOND when I was grounded from using the internet. I did it alone and with no help at all. I got twice as good with the code in under a month.

EAT IT.
In response to Ter13
Ter13 wrote:
Okay, now first of all, he has been asking questions NONSTOP since day 1, and he will only learn that there are people willing to help make his game on BYOND, which is not always true, I have also seen this guy bumping posts nonstop within 20 minutes of his previous post, just because there was 1 above his and he had no reply, ALSO I have seen him b***hing about his post being up for an hour and a half and not having replies, just because the other posts were responded to in a few minutes.

I WILL tell you this, I learned the most about BYOND when I was grounded from using the internet. I did it alone and with no help at all. I got twice as good with the code in under a month.

EAT IT.

i dont give a sh*t what you did, we arent talking about you
and now because of your mum i have grey hairs all over my toungue, so you better be better than her.
In response to R4GIN
lol... dude, now that's just dirty...

no seriously, he won't learn until he starts doing things himself.
In response to R4GIN
R4GIN wrote:
Ter13 wrote:
Okay, now first of all, he has been asking questions NONSTOP since day 1, and he will only learn that there are people willing to help make his game on BYOND, which is not always true, I have also seen this guy bumping posts nonstop within 20 minutes of his previous post, just because there was 1 above his and he had no reply, ALSO I have seen him b***hing about his post being up for an hour and a half and not having replies, just because the other posts were responded to in a few minutes.

I WILL tell you this, I learned the most about BYOND when I was grounded from using the internet. I did it alone and with no help at all. I got twice as good with the code in under a month.

EAT IT.

i dont give a sh*t what you did, we arent talking about you
and now because of your mum i have grey hairs all over my toungue, so you better be better than her.

R4GIN, Ter13. This is an official warning. You will adhere to the forum guidelines, or find your posting privilidges removed. Putting asterix' in a swear word does nothing but prove you know you are breaking a rule.

I suggest you reconsider how you act on these forums, if you intend to keep posting here.

Forum Moderator