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  Randomized Creature Stats
Author  Zunath
Submitted / Updated  02-04-2008 / 02-04-2008
Category  Creature Related
Expansions  Works on all versions
View Code  

Select All Text | View Code in separate window
Format  Code Only
Type  Type - Spawning
Description
Warloxx on the NWN forums requested this. I found it a very interesting idea so I went ahead and made it for him. :)

What this does is give any creature you want a random stat increase when they spawn. It's intended to give a little more randomized feel for your creatures.

INSTRUCTIONS:

1.) Save this script as spawn_rand_stats

2.) Open up your OnSpawn script for creatures

3.) Add the following line:
ExecuteScript("spawn_rand_stats", OBJECT_SELF);

4.) Add variables to every creature you want to utilize this script.

Example:

Variable Name: MAX_STR_INCREASES
Variable Type: INT
Variable Value: 8

So now when this creature spawns, a random amount between 0-8 of STR will be added.

Follow the same set up for the rest of the stats.

Please let me know if something doesn't work correctly.

Files

NameTypeSizeDownloads
NO FILES
SCORE OUT OF 10
9.75
2 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
No Images




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

Posted by Narash at 2008-05-15 08:21:44    Voted 10.00 on 05/15/08
Simply amazing, it took a bit to import it correctly, but now it works so well.

Btw, I modified it a little with adding chance to decrease a spawned creature's abilities. With this modification now this is exactly what i needed.

Posted by The Amethyst Dragon at 2008-02-07 23:19:21    Voted 9.50 on 02/04/08
Re: Heatstroke and Coolty3000:

I took the idea of this script and altered it so that it would randomly alter all the ability scores of the NPC by a maximum amount (up to 12, determined by a single local integer). My version shifts abilities up and down (equal chance of either, so -12 to +12).

If you would like my version as an alternative for this posting, Coolty3000, send me an email and I'll send an .erf with it your way (so you could have both versions here).
_________________________
World of Aenea (Hall of Fame PW and the origin of all my works)
Vault Entries: The Complete List (50+ entries, including 17 Hall of Fame awards)

Self-Promotional Honesty: If you have opinions on stuff I've made, or if you use any of it (as a player or builder), I like comments/votes/feedback...so do other content makers and builders. Keep us motivated. :)

---------------------------- Neverwinter Nights Community Site: The Unofficial Homepage for NWN ----------------------------

Posted by Coolty3000 at 2008-02-05 17:45:50    
@DM Heatstroke: That's a valid point, but I personally find it easy enough to just set the minimum stats on the creature and let the script take over from there to handle the max stat amount.

@Link6746: I do not work with NWN2 so I honestly can't say how hard or easy it would be to put in your module. From what I understand, the scripting language hasn't changed much between the games so you can always try it and see.

Posted by Link6746 at 2008-02-05 14:52:16    
I wish I knew how easily this script could be ported to NWN2. Merged with some other randomizing scripts, it'd be perfect for a custom spawn system with my PW (When it recovers from a weather based perm crash)
_________________________
__________________________________________________
Megadeth has a very intelligent way of talking about governments and religions: Either they bullshit you or try to kill you for not being one of them. I wholeheartedly agree.
(Note: Just because Mustaine is christian doesn't mean he believes EVERYTHING the bible tells him.)
__________________________________________________

Posted by DM Heatstroke at 2008-02-05 06:43:53    
I'd like to use this on Athas Reborn but it would have to randomly be able to assign negative vaules as well as positive values. Then when creating a creature I could just use baseline monster stats & apply this script on spawn.
_________________________
Heatstroke

Posted by Coolty3000 at 2008-02-05 04:22:28    
Glad to help. I really appreciate the vote. Thanks a lot. :)

Posted by The Amethyst Dragon at 2008-02-04 21:34:35    Voted 9.50 on 02/04/08
I like this idea and script. I'm going to have to try it out. Thanks for making it.
_________________________
World of Aenea (Hall of Fame PW and the origin of all my works)
Vault Entries: The Complete List (50+ entries, including 17 Hall of Fame awards)

Self-Promotional Honesty: If you have opinions on stuff I've made, or if you use any of it (as a player or builder), I like comments/votes/feedback...so do other content makers and builders. Keep us motivated. :)

---------------------------- Neverwinter Nights Community Site: The Unofficial Homepage for NWN ----------------------------

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 Prefab Blueprints


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