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  Uncle FB's NPC Light Keeper
Author  Uncle FB and Kaldor Silverwand
Submitted / Updated  06-19-2009 / 06-19-2009
Category  Scripting routines
Type  Type - Lighting
Format  Module and Code
ShowCode  

Select All Text | View Code in separate window
Patch  1.22
NWN2Game  All
Description
This NPC will turn lights on or off depending on the time of day.

The on and off times are set via variable on the NPC and can be changed to suit your specific needs.

Lighting object (included in erf file) are not specifically tagged.

Lighting Prefabs can be made useabe/non-useable for the PC and still work for the NPC.
NOTE: PC must have a torch in hand to light any prefab

If you want to make the prefab useable by the NPC only simply place the prefab in tool set, ungroup it, select the container object (this is the lamp post or brazier itself) and de-select "useable" under properties.

Enjoy

Files

NameTypeSizeDownloads
light_keeper.erflight_keeper.erf
Submitted: 06-19-2009 / Last Updated: 06-19-2009
erf134.61Kb121
file containing the light keeper NPC, the scripts, and 15 light prefabs
Light_Keeper.modLight_Keeper.mod
Submitted: 06-19-2009 / Last Updated: 06-19-2009
mod9.3Mb104
sample module containing the light keeper NPC and all 15 light prefabs. This is a bare bones module just to demonstrate the prefabs and the NPC.
LightKeeper_Manual.pdfLightKeeper_Manual.pdf
Submitted: 06-19-2009 / Last Updated: 06-19-2009
pdf204.1Kb198
Users manual for light keeper including anatomy of a light object if you want to make your own
SCORE OUT OF 10
9.5
3 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 (18):

Posted by Grandpa FB at 2011-03-23 20:30:54    
@sirJesto
Please be sure to check that you have the correct wp tag for the light keeper. It should be WP_LKEXIT. One of the problems with NPC control and behavior is that the game system does not consider it a very high priority. sometimes things hang up. this may or may not be the issue with the light keeper in your mod.

another option is to use Uncle FB NPC control. The light keeper is included in that set and you can schedule what he does after using the lights.

Unfortunately the light objects are all generally tagged so the light keeper is simply looking for the next closest light item and toggling it appropriately for the hour.

Posted by sirjesto at 2011-03-23 19:47:43    
Hey there. Just wondering if there is a way to tell the light keeper to light the objects in a particular pattern? Also, in my module, when the light keeper has finished lighting all the lamps, he moves a few steps away from the last lamp and then just stands there. He doesn't go back to the exit waypoint. Any idea what is happening here? He has no problem spawning from there, just returning to there.

Posted by Grandpa FB at 2010-01-14 11:59:34    
@DMFirmy

Unfortunately the script will only activate 1 light at a time. When the activation takes place the light object searches for the nearest single instance to turn on.

Cheers,

FB

Posted by DMFirmy at 2009-12-28 14:51:39    Voted 9.50 on 12/28/09
I think this script is awesome! How would I get it to work so the light keeper could light one of the candelabras with more than 1 flame?

Posted by Grandpa FB at 2009-08-26 20:39:50    
Unless Death has something else to add the problem in his install was that he already had a running SLS2 installation in the module.

For some reason SLS2 and the lightkeeper are NOT compatible.

Cheers,

FB

Posted by DeathComeForThee at 2009-06-22 16:37:32    Voted 10.00 on 06/21/09
Yea all the tags are exactly as the should be, same with the npc variables. It has to be a conflict with my module. Im thinking the SLS2 mod I have imported, can't think of anything else. I sent you a more detailed email.

Posted by Grandpa FB at 2009-06-22 09:31:13    
@death
The Light Keeper will enter and exit from the WP_EXIT object. Since he is designed to continually do this duty day after day this location is his start and end point. If he is ignoring your light objects then they are either incorrectly tagged or the light keeper is missing the variable sTag = light on the NPC variables. The other possibility that comes to mind is pathing. Can the NPC actually get to the light objects from his location?
If you are still having trouble with this feel free to email me.

Cheers,
FB

Posted by DeathComeForThee at 2009-06-21 18:30:07    Voted 10.00 on 06/21/09
*doublefacepalms* crap sorry im an idiot, posted in the wrong mod... idiot :P

Posted by DeathComeForThee at 2009-06-21 18:28:15    Voted 10.00 on 06/21/09
Nevermind, i just checked out the tavern mod and realised i need patron npc's to take orders from *facepalm* Sorry I thought it was from PCs she takes the orders from. Works fine, great mod! lol
10/10 :)

Posted by DeathComeForThee at 2009-06-21 16:45:14    Voted 10.00 on 06/21/09
Ah alright i found your prefabs. Now, i am having issues... I set up all my lights with your prefabs and I made my waypoint for the Keeper to exit on after turning on/off the lights. What happens tho is when the time comes to light the lamps, he makes his entrance on the exiting waypoint, no matter where i place the keeper himself in the toolset, and just stays there. Firstly is he not supposed to enter where he is placed in the toolset and not the exiting waypoint? Secondly why wont he light the lights? What am I doing wrong? All the prefabs are tagged properly as per your instructions... :(

Posted by Grandpa FB at 2009-06-21 10:43:44    
As far as using any lamp YES you can. There are detailed instructions in the manual about how to do this. The prefabs consist of a container, light, IPOINT placeable, and a sound object (OPTIONAL).


Posted by Grandpa FB at 2009-06-21 10:38:46    
@Death

There is a weird thing that happens when importing prefabs. In order to see them you need to import, save, exit the toolset, and then open the toolset and your module again.
I don't know why this happens. I just double checked the erf and the prefabs are in fact in there.
They will be listed under blueprints...prefabs...NPC...Lights...

Cheers,

FB

Posted by DeathComeForThee at 2009-06-21 06:02:30    Voted 10.00 on 06/21/09
There are no light prefabs in the erf. You say there are 15 but none have been included. Do i need these prefabs to get this to work or can i use any lamp, torch etc?

Posted by DeathComeForThee at 2009-06-20 21:30:16    Voted 10.00 on 06/21/09
Man, you are a genius! Great job:)

Posted by DeathComeForThee at 2009-06-20 21:17:28    Voted 10.00 on 06/21/09
Wow, I will definatly try this out! Ill vote once ive given it a try, sounds awesome!

Posted by Grandpa FB at 2009-06-20 12:21:19    
@jaz thanks for your vote

@MCMunroe - discussed this with you at some length on the Obsidian Shore IRC.
For others who may be wondering about the same question.
1. this system does NOT require you to modify the placeables at all. Just place them and the Light keeper will find and activate/de-activate them.
2. the placables in this erf will allow you to have the PC directly turn on/off lighting if he/she is carrying a torch.
3. SLS2 is a much more heavy duty script package. So if you need to use lighting chains, or want a trigger activated light set up, that is probably the appropriate script set.

Cheers

FB

Posted by MCMunroe at 2009-06-20 10:27:13    
I like the idea.
How does it compare to the SLS2 lighting system?

Posted by jaz at 2009-06-20 03:59:07    Voted 9.00 on 06/20/09
Wow. Great idea!!!!! Very cool. :)

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 UI


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