Neverwinter Vault

Expand AllContract All -Site -My Profile -Features

Neverwinter Nights 2

-NWN2 Files -NWN2 Game Info -NWN2 Resources -NWN2 Community

Neverwinter Nights

-NWN Files -NWN Game Info -NWN Resources -NWN Community

Vault Network
RPG Vault
VN Boards
IGN Vault
Vault Wiki
· Age of Conan
· Anarchy Online
· Asheron's Call
· Dark Age of Camelot
· City of Heroes
· D&D
· EVE Online
· EverQuest
· EverQuest 2
· Final Fantasy
· Guild Wars
· Lineage 2
· Lord of the Rings Online
· Middle Earth
· Neverwinter Nights
· Pirates of the Burning Sea
· Rise of the Argonauts
· Star Wars Galaxies
· Tabula Rasa
· The Matrix Online
· The Witcher
· Titan Quest
· Two Worlds
· Vanguard
· Warhammer
· World of Warcraft

Planet Network
Planet Hub

IGN
Games
Cheats
Entertainment

The Web   The Site  



NWN2 SCRIPTS

- Jump to comments -
Name  Zhentarim Spawn System
Author  Zhentarim Shard
Submitted / Updated  03-25-2010 / 03-25-2010
Category  Spawning
Type  Type - Classic PnP
Format  Module Only
ShowCode  

Select All Text | View Code in separate window
Patch  1.23
NWN2Game  All
Description
This is a spawn system made to be as much as possible to be close to the PnP encounters. That is currently a BETA.

It contains 3 scripts:

1) plan_arrays (that's just arrays, nothing connected with the spawn)

2) z_inc_spawn (that's it, this library contains many spawn fucntions)

3) event_normalloc_enter (that's an area event, that starts a spawning)

Installation instructions are simple: import the erf, recompile the event script and place on a Client Enter area event.

Then create a number of waypoints on an area, each with the different tag. Then tou should open area Properties/Variables and enter the followings:

1) WPCOUNT - a number of waypoints yo've placed. That's an integer.

2) WP1, WP2, WP3, WP4, ... That's a strings. Enter all waypoint's tags.

3) CHANCE - the chance in % for each waypoint to create an encounter. For each hour area was not visited after the first visit this chance will grow. Positive integer. Anything greater than 100 would not differ from 100.

4) CR. Average difficulty of the area, integer from 1 to 30.

5) TABLECOUNT. Integer - the number of 2DA tables with creature lists.

6) TABLE1, TABLE2, TABLE3, ... The name for each table. For example: BEARS, WOLVES, DEERS, BADGERS for the forest.

Each 2DA table should look as following:

2DA V2.0

NAME CR FACTOR
0 z_cr_human_bandit1 1 2
1 z_cr_human_bandit2 1 4
2 z_cr_human_bandit3 1 0

The 0 row is the first row. The NAME column is the creature's resref. The CR column is the creature CR. The FACTOR column is the CR factor if it is lesser than 1 (CR, FACTOR 4 = CR 1/4).

The algorithm: when a player enters an area, the spawning starts. Firstly it checks the d100 for each waypoint. If the check succeeds, the encounter spawning starts at the location of that waypoint. For the first 10 seconds the system counts the encounter. There is a 30% chance of getting an easier encounter (from 1 to the given CR -1). The 15% chance of getting a harder encounter (the CR if raised by 1d4). And the 5% chance of getting a very hard encounter (currently randomised from the given CR+1 to 20). Then the script looks through the table and creates the list of creatures, whose CR is <= than the final gotten CR. It chooses the "boss" from this list and creates a second list, containing creatures, whose CR is <= than the boss's CR (including the "boss" blueprint itself). If the boss's CR is equal to the final encounter CR, it is just spawned. If not, the encounter continues to be counted. 2 creatures with a CR 3 are CR 4 encounter. 4 creatures with a CR 3 are CR 5 encounter. One creature with a CR 5 and four creatures with a CR 3 is a CR 6 encounter. That's not truly the PnP rules (In general, if a creature's Challenge Rating is two lower than a given Encounter Level, then two creatures of that kind equal an Encounter of that EL), but that's fun.

When the counting is finished, the creatures are spawned. The spawning is careful, currently it does not allows more then 10 creatures in 1 encounter, delays their spawning (all creatures should spawn in 1 minute) and commands them to run away from their spawning location to allow for the other creature to appear.

If there are no players in the area for a long time, all junk should be destroyed. Creatures are not junk though.

That's a very bad idea to pass more than a 20 waypoints, because the system could spawn for example, 200 creatures on 1 location and that would be very-very bad. 10 - 15 waypoints with a 10-20% chance should work fine.

Files

NameTypeSizeDownloads
nwvault_spawn_system.erfnwvault_spawn_system.erf
Submitted: 03-25-2010 / Last Updated: 03-25-2010
erf42.35Kb73
--
SCORE OUT OF 10
8.5
1 votes
View Stats
Cast Your Vote!
Voting FAQ

PORTFOLIO
Add this entry to your portfolio so you can track it
Manage your existing portfolios or create a new one.
SCREENS
No Images




You Must Be Logged In to Participate.
Comments (3):

Posted by Apep at 2010-03-27 05:20:04    Voted 8.50 on 03/27/10
Thanks for sharing these.
_________________________
AP Magical Miscellanea Package (v1.5, over 750 items): Link

Posted by Neor at 2010-03-25 21:52:47    
Oh... And waypoints variable names should be 1WP, 2WP, 3WP, ... The ending number is for groups.

Posted by Neor at 2010-03-25 21:49:56    
Next updates should include the following features:

1) Encounter grouping (i.e. groups of waypoints with different spawn properties and tables)
2) Setting the maximum number of crearures for each waypoint.
3) Wand for DM's capable of spawning encounters with a given CR and a given table.
4) Working with a database instead of 2DA tables, like most mmorpg do. Optional. Encounters for single modules.

You must be Logged In to post comments in this section.

10 - A Masterpiece, Genuinely Groundbreaking
9 - Outstanding, a Must Have
8 - Excellent, Recommended to Anyone
7 - Very Good, Deserves a Look
6 - Good, Qualified Recommendation
5 - Fair, Solid yet Unremarkable
4 - Some Merit, Requires Improvements
3 - Poor Execution, Potential Unrealized
2 - Very Little Appeal
1 - Not Recommended to Anyone

 
Most recent posts on the MMO General Boards
Analyst: Star Wars: The Old Republic Could...Analyst: Star Wars: The Old Republic Could Sell 3M: more numbers
- last reply by Acao on Aug 15, 2011 06:15 PM
which class will your first character be
- last reply by Blisteringballs on Aug 15, 2011 05:50 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 05:00 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 04:00 PM
NWN Idea Database Update
- posted by Vault_News on Aug 15, 2011 03:46 PM
Missing Votes for NWN2 Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:40 PM
Missing Votes for NWN Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:39 PM
Random Questions and game altering suggest...Random Questions and game altering suggestions!!!
- last reply by ArkadyTepes on Aug 15, 2011 03:22 PM
State of the game?
- last reply by LyricOpera on Aug 15, 2011 01:37 PM
Yesterday streaming, now demanding downloa...Yesterday streaming, now demanding download :(
- last reply by Sinane-tk on Aug 15, 2011 10:23 AM
 

   


IGN Entertainment
By continuing past this page, and by your continued use of this site, you agree to be bound by and abide by the User Agreement.
Copyright 1996-2011, IGN Entertainment, Inc. | Support | Privacy Policy | User Agreement | RSS Feeds
IGN’s enterprise databases running Oracle, SQL and MySQL are professionally monitored and managed by Pythian Remote DBA.


NWN2 Hall of Fame

HOF NWN2 Original Hakpaks


View all Hall of Fame entries


Neverwinter Nights 2

TOP NWN2 Modules

NEW Modules

NEW Reviews

NEW INTL. Modules

TOP Hakpaks

TOP Gameworlds

TOP Tutorials

TOP Prefab:Areas

TOP Blueprints

TOP Plugins

TOP UI

TOP Other

TOP Visual Effects

TOP Scripts

TOP Tools

TOP Movies

TOP Models

TOP Characters





Hall of Fame

HOF NWN Modules


View all Hall of Fame entries


TOP NWN Modules

NEW NWN Modules

NEW Reviews

TOP Intl. Modules

TOP NWN Hakpaks

TOP NWN Gameworlds

TOP NWN Models

TOP NWN Portraits

TOP NWN Scripts

TOP NWN Prefabs

TOP NWN Other

TOP NWN Movies

TOP Sounds

TOP NWN Textures

TOP NWN Creatures

TOP NWN Characters