Author Topic: NESS - Spawn once per area enter?  (Read 460 times)

Legacy_Buddywarrior

  • Hero Member
  • *****
  • Posts: 512
  • Karma: +0/-0
NESS - Spawn once per area enter?
« on: April 23, 2012, 09:27:39 pm »


                Hope it's fine to post a NESS question in here. I would like to spawn a group, but have it only spawn once until the area is empty, and once a player enters the empty zone, that's when it will spawn again...
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
NESS - Spawn once per area enter?
« Reply #1 on: April 23, 2012, 11:48:51 pm »


               There are a number of ways to do this. One way that is easy (and loose) would be to use the following tags.

SP_IS1D0_SD360_PCR

You'll need to add the group info. I forgot how to do that without my toolset and notes here with me.

The NESS tags I gave you mean the following:
it is a NESS spawn point, initially active, has 0 initial delay to a spawn, a 360 minute delay to subsequent spawns, only spawns when a PC is in the area, and once the PC leaves the whole thing refreshes to initial conditions. Refreshing to initial conditions means that the initial delay of 0 minutes will be adhered to rather than the 360 minute.

I chose 360 as an arbitrary delay. You could put any ridiculously large number there.

There are more precise ways to get the result you want via scripting, but I figure that if you knew how to do that you wouldn't be posting the question. Its a bit more complicated and involves scripting.
               
               

               
            

Legacy_Buddywarrior

  • Hero Member
  • *****
  • Posts: 512
  • Karma: +0/-0
NESS - Spawn once per area enter?
« Reply #2 on: April 24, 2012, 02:46:20 pm »


               Scripting solution it is then. Thank you for your assistance Henesua!
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
NESS - Spawn once per area enter?
« Reply #3 on: April 24, 2012, 04:47:00 pm »


               For a scripting solution there are innumerable ways to solve it. NESS however does provide a number of hooks for you to take advantage of. There are pre-spawn scripts that you can use to determine if a spawn will proceed for example.

I'd recommend using one of those in combination with the PCR tag combo.