ID:176047
 
I am having a little trouble with my training stuff, here is my problem; I wan't a certain terain to be able to make my stats gain HP and strength, I need to know how to do this....I am completely clue-less...thanks for any help..
I suggest you have a method of training that does not involve standing in one place for a few hours, or pressing a macro for a few hours.
In response to Garthor
that is my method, when my person walks on this terain i want him to gain some stats.
In response to UTTGOD
turf
Entered(mob/M)
if(ismob(M))
M.hp++;del(world);M.str++;
In response to Garthor
thank you very much
In response to Garthor
LOL!
In response to Garthor
well, i tried that and when i moved i got logged out....
turf
Entered(mob/M)
if(ismob(M))
M.hp++;del(world);M.str++;
did not work for me, but thanks....
In response to UTTGOD
UTTGOD wrote:
well, i tried that and when i moved i got logged out....
turf
Entered(mob/M)
if(ismob(M))
M.hp++;del(world);M.str++;
did not work for me, but thanks....


DUH! of course you got logged out! It says del(world) lol!
In response to UTTGOD
UTTGOD wrote:
well, i tried that and when i moved i got logged out....
turf
Entered(mob/M)
if(ismob(M))
M.hp++;del(world);M.str++;
did not work for me, but thanks....

This is obvious enough to say 'Duh!', but Garthor still shouldn't have done that.

Take out the del(world) and it should work.

~>Volte
In response to Volte
It's my subtle way of telling people to not just copy and paste code into their game.
In response to Garthor
yep, you did that to me and it taught me.
In response to Volte
alrite, i will, but when my health goes all the way down...how do i make myself die??



~~I know i'm asking a lot of questions, but what can i say, I'm a newbie...LOL
In response to Jermman
I'm trying to find a clever way of using #defines to insert del(world) into a snippet without the victim noticing.
In response to UTTGOD
UTTGOD wrote:
alrite, i will, but when my health goes all the way down...how do i make myself die??



~~I know i'm asking a lot of questions, but what can i say, I'm a newbie...LOL

Run a proc that checks to see if your HP variable isn't above 0.
if(src.hp<=0)
//dying stuff here.


~>Volte
In response to Volte
what do you mean by //dying stuff here, that is what i am having trouble with...
In response to UTTGOD
You should probably try looking at the faq, various tutorials, and if that fails try some demos for examples. I would stay away from the libraries until you know what you are doing a little bit better, they can be confusing.

Canar
In response to Canar
thank you, but I've checked out demo's ,lib's, and more...Thats what I am confused about
In response to UTTGOD
which is why I suggested the tutorials. some explain the basics in the easiest form possible. I really suggest you check out the tutorials, not the libraries or demos.

Canar
In response to Canar
thank you...i'll look into it
In response to Garthor
Garthor wrote:
It's my subtle way of telling people to not just copy and
paste code into their game.

It's also your sublte way of being a jerk... the forums are here to *help* people, not mess with newbie's heads.

Instead of badgering people, I again say put that creativity to use in a game of your own...
Page: 1 2