ID:194388
May 14 2001, 12:14 pm
|
|
How can i make a healing center? i need a code. not a refferal to a tutorial.
|
In response to Gughunter
|
|
On 5/14/01 4:25 pm Gughunter wrote:
How can i make a healing center? i need a code. not a refferal to a tutorial. Hey, this gives me an idea. Shouldn't it be possible to make a subclass derived from world? I'm trying to make a huge full featured RPG. So far, my code looks like this: world RPG But it doesn't work. Why not? Do I need to say world huge_full_featured_RPG ? If this is a bug, please fix it in the next release of BYOND. Thanks. |
In response to Air Mapster
|
|
On 5/14/01 5:12 pm Air Mapster wrote:
On 5/14/01 4:25 pm Gughunter wrote: You forgot to put var in front of it: world var/RPG That will do the trick. Personally I don't like the combat system you get that way, though. |
In response to Deadron
|
|
lol! this is babble. this is the board we all make fun ofeach other in. you want newbie central. that is the form for help like that. On 5/14/01 5:36 pm Deadron wrote: On 5/14/01 5:12 pm Air Mapster wrote: |
In response to jobe
|
|
lol! this is babble. this is the board we all make fun ofeach other in. you want newbie central. that is the form for help like that. That's right. But what the heck... I'll be a nice guy and provide a slightly expanded version, based on my wild guess at what a "healing center" might be. This will create an area which will restore 1 hit point to any mobs within it every 10 seconds. Note that you can draw little patches of this area at various points on the map--BYOND will treat it as a single area! mob/player var/hitPoints = 12 var/maxHitPoints = 14 area/healing_center var/healDelay = 100 // 10 seconds New() . = ..() spawn HealContents() proc/HealContents() while(src) for(var/mob/player/P in contents) if(P.hitPoints < P.maxHitPoints) P.hitPoints++ P << "You regain 1 hit point." sleep(healDelay) |
In response to Gughunter
|
|
On 5/14/01 8:45 pm Gughunter wrote:
lol! this is babble. this is the board we all make fun ofeach other in. you want newbie central. that is the form for help like that. Hey, that's pretty good. I'd better download that and convert it into a snippet for my huge library. |
In response to Spuzzum
|
|
Hey, that's pretty good. I'd better download that and convert it into a snippet for my huge library. Excellent! Be sure to test it, though... I didn't quite get that far. :) |
In response to Gughunter
|
|
On 5/14/01 9:13 pm Gughunter wrote:
Hey, that's pretty good. I'd better download that and convert it into a snippet for my huge library. Works like a charm. =) |
In response to Spuzzum
|
|
On 5/14/01 9:51 pm Spuzzum wrote:
On 5/14/01 9:13 pm Gughunter wrote: your all verry odd............... |
In response to jobe
|
|
On 5/15/01 9:42 am jobe wrote:
On 5/14/01 9:51 pm Spuzzum wrote: How so? If someone asks a question along the lines, "How can I heal my mobs when they walk into a certain area?", I could immediately refer to Guy's wonderful snippet. By "library" I do mean "database", though. A giant library of miscellaneous snippets would probably be a little unwieldy to include in a world. Rather, I would have little snippets in separate .dm files. (I already have about 17 or 18 .dm snippets in my C:\Jeremy\BYOND\library\ folder!) |
In response to Spuzzum
|
|
On 5/15/01 4:04 pm Spuzzum wrote:
On 5/15/01 9:42 am jobe wrote: can i have a copy? |
In response to jobe
|
|
On 5/15/01 4:12 pm jobe wrote:
On 5/15/01 4:04 pm Spuzzum wrote: When I upload them onto my webpage, everyone can have a copy... |
In response to Spuzzum
|
|
funny how sariat didnt reply back
hope he is still alive |
Try this:
obj
healing_center