Sample starter scripts for new scripters and module builders.
Description
Sample starter scripts for new scripters and module builders.
Motivation
This module was built in response to frequent requests for simple scripts to provide functionality needed for most modules and persistent worlds. These scripts and the demo module should help new module builders and scripters get started with Neverwinter Nights 2 scripting.
Contents
Currently this includes a respawn script and a script to set starting gold and xp. I expect to add to these over time.
I have added a token trader for therealkid, but it is not a generic thing and I may remove it latter.
The download includes a demo module and an .erf file with the scripts and suporting items, as well as these instructions.
The .erf comprises:
starter_kill_pc.nss - Slays the PC to test the respawn.
starter_pc_first_time.nss - Sets the starting golg and xp for PCs.
starter_csf_component (placeable) - Links the sample scripts to events via the Common Scripting Framework.
starter_wp_respawn (waypoint) - Marks the respawn location.
All scripts begin with 'starter_' and all items are categorized under 'starter'.
Installation
You can just load the provided module and talk to Aldanon. He will tell you how to test out the scripts. Open the module in the Toolset to have a look at them. Or you can import the erf file into your own module.
This module uses the Common Scripting Framework. This is a tool to help you add scripted systems made by other module builders without having to merge their starting event scripts manually.
If you have CSF:
Import the .erf.
Place the 'Placeable->starter->CSF Component - Starter Scripts' in an inaccessible area.
Place the 'Waypoint->starter->Respawn Waypoint' where you want PCs to respawn (e.g. a temple).
If you don'thave CSF:
Import the .erf.
Place the 'Waypoint->starter->Respawn Waypoint' where you want PCs to respawn (e.g. a temple).
Rename the script 'starter_on_player_respawn' to 'gui_death_respawn_self'.
Open your starting area. Go to properties and set the script 'OnClientEnter' to 'starter_pc_first_time'.
Changelog
1.01 - Added the Token Trader for therealkid as discussed the forum.
1.00 - Respawn and starting gold/xp scripts.
Maintained by Daniel Vale aka GreenDragon5000 and Charlie Vale.
The csf scripts have not changed since release, although I did add some optional extras for dealing with creatures. If you want to use those with this module:
1. open this module in the toolset
2. import the csf_extension_dan.erf
3. compile all scripts
I am moving on to other projects and will no longer be making updates here. Thanks to all of you who have supported these projects with testing and feedback. Should anyone wish to take over one or more of my projects, contact charlievale at gmail dot com and I will have the project transfered to your vault account.
dj1 - Don't mess with it. :)
Really, I don't know what would happen. Even if it worked the way you want, I see potential for side-effects that may break the campaign for you.
That said the first step I would try if I were interested in this would be to comment out lines 21 and 24, compile the script and place a copy of the .ncs in the override folder. I would really expect that to break something, I just don't know what exactly.
I'm new at scripting so I'd like to run an idea by you. Languard tried a fix for the conversation pause with a plugin that sets all the convo multiplayer cutscene settings to false but apparently it breaks after every update. I was nosing through the scripts myself until I found the ga_party_freeze (normally for cutscenes, but I believe this is what's being used for convos). It appears that rather than alter all the convos, it would be easier to "pull its fangs". After looking at it, I'm thinking lines 17 thru 24 (I'm not certain of the syntax) could be erased and when the script was executed, it wouldn't affect anything. If you have time, look at the script and let me know what you think (beyond the generic "don't mess with it").
D
PS- I'd have posted to a forum but I like your work and wanted your input. _________________________ "In life, one and one don't make two. One and one make one."
-The Who "Bargain"
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