ID:169092
Jul 29 2005, 6:07 pm
|
|
I suck at coding so I need to know how to make a like a death proc for pvp where whoever dies is returned to the starting point with full health I can fill in the location and hp myself
|
Jul 29 2005, 6:14 pm
|
|
If you suck read the Dream Maker guide.
|
Try and read the tutorials at http://www.byondscape.com
but ill try and help you. Dont copy and paste this, learn from it. Plus youll get errors 'Inconsistent indentation' =D mob/var That should help you. Try reading byondscape tutorials. |
In response to Prjct_Caine
|
|
right well thanks I'm not sure how to do that fancy smanshy box thing but here's what I'm trying to do
mob proc deathcheck() if(src.HP<= 0) src << "You died" src.HP = 30 src.loc=locate(59,53,1) |
In response to Obiare
|
|
The fancy box is dm tags, like your normal bold tag <.b> except it's <.dm>. (without the periods).
About your code, if you want people to have diffrent hp, then i suggest you use: mob/var Well, that's as simple as it gets. I suggest you start reading stuff off of the dm guide, such as vars and procs. I also suggest you study the other replies. |
In response to Obiare
|
|
mob You had if(src.HP<=0) that would then mean they would have to hit 0 or lower, when you can simply use if(src.HP<1) which then assumes once the HP variable has dropped below 1 it takes its action, nothing major. that deathcheck also seems to work however you may want it to just simply be proc That way you are able to call it by the use of the simple deathcheck() |