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  



NWN SCRIPTS

- Jump to comments -
Title  Let's spawn some ants! Dynamic ant spawning encounter.
Author  orshad2048
Submitted / Updated  03-20-2005 / 11-22-2006
Category  Area
Expansions  NWN-1.65
View Code  

Select All Text | View Code in separate window
Format  Module and Code
Type  Type - Combat
Includes  BioWare Standard
Description
This relativly simple set of scripts spawns in 120 ant's over the course of a combat. There are several scripts associated with this as well as some variables set on the area. Here are the variables that are set on the area and there values: ANTS_IN_BURROW 120 ANTS_ON_FIELD 0 ANT_COMBAT_STARTED 0 COMBAT_ROUND 0 IDLE_ROUNDS 0 NUM_PC_IN_AREA 0 There are five scripts associated to this combat. Three of them are dedicated to the area. One is for the Ant's on death event. Finally a small snippet of code for the Module on Death event. All of the variables set on the area control the flow of the combat. While several of the values are hard coded in the script if you wanted to make it a bit more dynamic substituting more variables in the area and feeding those into the scripts would be you're best option. Enjoy! orshad2048

Files

NameTypeSizeDownloads
orshad20481111378627234spawnsomeants.ziporshad20481111378627234spawnsomeants.zip
Submitted: 03-20-2005 / Last Updated: 03-20-2005
zip15.35Kb200
--
SCORE OUT OF 10
10
1 votes
View Stats
Cast Your Vote!

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





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

Posted by harkker at 2005-12-03 22:14:30    Voted 10.00 on 12/03/05
awesome!
_________________________
The World of Karador Rocks!
Link

Posted by orshad2048 at 2005-03-28 19:06:00    
black_feather1
The variable strTemplate located in the function StartAntSpawnLogic. This function is inside of the larger script placed in the Area OnHeartBeat event. The StartAntSpawnLogic function generates the ants by rolling a percentiles and assigning the resref to the variable strTemplate. Here is the snippet of code that controls this:

int iPercent;
iPercent = d100();
if ( iPercent 70 && iPercent < 90)
{
strTemplate = "cw1_ant_g_guard";
}
else
{
strTemplate = "cw1_ant_queen";
} //end-if
} //end-if

01 - 70 ant solder
71 - 89 ant guard
90 - 100 ant queen

Just substitute the resref of you're choosing here and you're off and running. Also you can change this section in as many ways as you're imagination takes you. if you just want 1 creature then drop the percentile roll and assign the resref to the variable when it is initialized at the start of the sub-function. Or change the IF logic to alter the percentage. The choice ultimately up to you. I attached a .erf to this post so you can down load it and import it into a module of you're own. Please let me know if it breaks and I'll try to rectify any mistakes.
Also keep in mind there is a 2 tiered loop that controls the 12 way-points set up to spawn in at most 12 ants and as little as 0 depending on how many ants are on the field of battle. Good luck orshad2048

Posted by orshad2048 at 2005-03-27 18:59:00    
The ant's are from the CEP. I made copies of them to attach the new on death script. Also I beefed up the ant's stats from the CEP so that the encounter is for 5 to 7th level characters.

Posted by Lexx ( 60.229.xxx.xxx ) at 2005-03-27 18:28:00    
Are the ants in the picture from a hack? And if so which one?

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

 
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 Modules


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