Page 1 of 1

Better control over spawns

PostPosted: Sat May 28, 2005 6:39 pm
Author: Vorlis
I'm trying to build an encounter where one of the creatures is mandatory and static and the rest should dynamically scale to the proper level. DOes anyone know how I might be able to do this in one encounter?

PostPosted: Sat May 28, 2005 7:12 pm
Author: Drakuul
Artificially reduce the creatures CR to 1.

Set that creature to Unique

Add other creatures to scale to level.

PostPosted: Sat May 28, 2005 7:21 pm
Author: Alphonse
so this automatically adds a unique one even if it is the lowest CR level monster in the possible spawns?

PostPosted: Sat May 28, 2005 7:39 pm
Author: Drakuul
This will guarantee (you can set the CR of the mandatory one to 0.25 if you need to ) that the mandatory (unique flag) one will ALWAYS appear for any level character (and give no xp) and the rest of the critters (normal CRs) will scale to level depending on your parameters.

PostPosted: Sat May 28, 2005 7:41 pm
Author: Vorlis
Interesting...I'll try that then. Thank you very much

PostPosted: Sat May 28, 2005 8:46 pm
Author: JollyOrc
Note though: Lowering the CR will affect XP given when this creature is killed (lower XP), and may also affect randomly generated loot.

What you could do instead (if this is worrying you), is to create two encounters: One with the creature you must have, and the rest.

Mucking with the CR is not bad in itself. But I know a couple of people who will complain. Either because the "examine" function gives misleading info (screw them. That's OOC info anyway), or because the uber badass Demon Lord they fought for dozens of combat rounds, quaffing Heal potions like water, gives XP equivalent to fire beetle (they might have a point there)

PostPosted: Sun May 29, 2005 12:58 am
Author: Jonezie
Or, you could use the encounter's OnEnter event to trigger the creation of the extra monster. Don't put it in the creature list, but write a script that creates one whenever the trigger is entered by a PC.

This takes some tweaking, however, because of the way GetEncounterActive() works, and is probably more trouble than it's worth, unless there's a specific reason you can't use any of the other options which have been sugested. I'd reccomend having the 2 encounters that JolyOrc suggested.

PostPosted: Sun May 29, 2005 1:55 am
Author: Aloro
NWN encounter system = teh suck. :?

Jolly and Jonezie gave the two methods I'd consider in this case; the simpler option is laying two encounters. Watch your spawn points - when you nest encounters it's best to manually control where monsters appear, or NWN does some odd stuff.

- Aloro

PostPosted: Sun May 29, 2005 2:08 am
Author: Vorlis
Hmm...the first idea doesn't seem to be working...I've run through it several times, and he isn't always spawning...

Jonezie's idea is interesting but there's some issues there with multiple PC's entering the trigger and spawning multiple instances? Plus it'll be a lot of code...

I suspect 2 stacked encounters will be best. Thanks again all.

PostPosted: Wed Jun 01, 2005 11:13 pm
Author: Tali Esin
If that doesn't work you could always try having the script search for existing occurences of the creature in your area. Depending on the size and number of objects already there that option can be resource intensive - but if you're in a particuarly bare cave....

Personally, I've always gone with the dual encounters option and not had a problem. And I for one LOVE the Aurora engine. :P

PostPosted: Thu Jun 02, 2005 3:52 pm
Author: Papainhell
How about a spawn system that spawns creatures upon entering an area or generic trigger with the following catches:
~Creatures are spawned from a table stored in a DB table via NWNX and a controlling script..
~Creatures to be spawned will be created on WPs placed in the area.
~When creatures are killed they are placed in another DB table then spawned again according to a pre chosen time.

In the end you would have for the module a spawn table and a timer table to respawn any killed creatures / NPCs.

When the spawn script fires a creature is created at the location that it is tied to in the table, which could be one WP or over several WPs.

Upon killing a creature / NPC that creature is placed on the timer list for respawn.

I can expand on this as I have worked w/ another PW that uses this very spawn system and have the coding as well. This could be adapted for use in Avlis / CoPaP.

Another beauty of this spawn system is that you can make on the fly changes to spawns by amending the spawn table. NPCs / creatures can be added or removed as needed by those w/ access to the DB.

PostPosted: Thu Jun 02, 2005 5:10 pm
Author: Papainhell
Now if we could just add a way to scale spawned creatures CR based on party and single player levels I'd say that would be a kick ass spawn system.

Of course you'd want static spawns in the tougher spots of the world or just up the CR...