Aller au contenu

Photo

NESS - Spawn once per area enter?


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Buddywarrior

Buddywarrior
  • Members
  • 256 messages
 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...

#2
henesua

henesua
  • Members
  • 3 878 messages
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.

#3
Buddywarrior

Buddywarrior
  • Members
  • 256 messages
Scripting solution it is then. Thank you for your assistance Henesua!

#4
henesua

henesua
  • Members
  • 3 878 messages
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.