Author Topic: NWN Scripting Tools and Resources  (Read 2816 times)

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
NWN Scripting Tools and Resources
« on: July 27, 2010, 08:42:47 am »


               

NWN Lexicon:

Wiki Updated NWN Lexicon 1.69, Searchable
NWN Lexicon 1.69, Hosted
NWN Lexicon 1.69, Download

NWN Scripting Programs:

Lilac Soul's NWN Script Generator V2.3
LS-TK Script Generator (Updated revision of Lilac Soul's Script Generator)
ScriptEase
PRC Neverwinter Script Compiler v2.0

NWN Scripting Tutorials:

Jassper's "Noobs Corner"
NWN University
Knightmare's "Scripting For Noobs"
Learning To Write an If-Statement (Axe Murderer)
Tag-Based Scripting (Axe Murderer)

Other Useful Scripting Resources:

Tag-Based Template (The Krit)
Tag-Based Template, Activate Only (The Krit)
Neverwinter Script Directory, NWNWiki
Pastebin (Useful for posting/reading large scripts)


-----------------------------------------------------------------------------------------------------------------------

 

UPDATE: I am aware that there are still broken links above and will try to update them as I find their new locations. Most of them are likely on the new vault. 7-8-15

Just figured I'd post some stuff that has helped me learn to script over the years (I still have a lot to learn). I hope that this will be helpful to the scripting community.

I do realize that the Lexicon has it's own sticky (as it should), but I figured it could be helpful here as well. And you can never have enough links to the lexicon. '<img'>

I'm sure there are many more helpful tools and resources to help people script so feel free to post away.
I'd be happy to reorganize this post if it will help.

Happy Scripting!


               
               

               


                     Modifié par GhostOfGod, 11 juillet 2015 - 09:39 .
                     
                  


            

Legacy_Genisys

  • Hero Member
  • *****
  • Posts: 961
  • Karma: +0/-0
NWN Scripting Tools and Resources
« Reply #1 on: July 27, 2010, 08:55:35 am »


               My Custom Script Templates (most of them)

http://www.mediafire...m9ctjbt25ckzkqh

Custom Boss & Lackey Spawn Trigger - Template Script (Very Nice for Server Modules)
http://social.biowar...2/index/4442913

These are good for saving time, some can learn by them, they are all well scripted, tested, and commented, enjoy...
               
               

               


                     Modifié par Genisys, 14 août 2010 - 01:31 .
                     
                  


            

Legacy_ChaosInTwilight

  • Full Member
  • ***
  • Posts: 126
  • Karma: +0/-0
NWN Scripting Tools and Resources
« Reply #2 on: July 28, 2010, 04:53:21 am »


               Re: Tag based scripting:

Exhaustively detailed guide by Axe.
               
               

               


                     Modifié par ChaosInTwilight, 28 juillet 2010 - 03:53 .
                     
                  


            

Legacy_TSMDude

  • Hero Member
  • *****
  • Posts: 1515
  • Karma: +0/-0
NWN Scripting Tools and Resources
« Reply #3 on: July 31, 2010, 05:43:56 pm »


               Just FYI; this is from the old forums but was something that helped me when I first started.



The many Bioware provided scripts can be quite useful and can often save you some time and effort - if you find the right one. Unfortunately, there are a LOT of them, and many are of limited use in user made modules. I made a list of some that might be useful, with a short description of each. I haven't tried them all yet, so don't blaim me if some of them don't do what they're supposed to. But some have been of great use to me - especially the Conversation Check ones. Enjoy.

PS: The list should be a little cleaner if you copy and paste it.

edit: Of course, these scripts are also of great use for getting ideas of how to do things with NWscript.

nw_c2_amb_target: Ambient Attack placeables
nw_02_onoff : Turns the placeable object's animation on/off
nw_c2_assvict1 : OnSpawn: Perceive & Damaged uncommented
nw_c2_bat9 : OnSpawn: Herbivore, Spawn In animation
nw_c2_bossdie : Boss death script, spawns treasure
nw_c2_bossspawn : Boss OnSpawn, enables Fast Buff
nw_c2_commoner1 : Commoner heartbeat
nw_c2_commoner2 : Commoner OnPerceive
nw_c2_commoner4 : Commoner OnDialogue
nw_c2_commoner5 : Commoner on attacked
nw_c2_commoner9 : Commoner OnSpawn (stores location)
nw_c2_commonerd : Commoner Userdefined (return to location etc.)
nw_c2_default1 : Default heartbeat
nw_c2_default2 : Default OnPerceive
nw_c2_default3 : Default end of combat round
nw_c2_default4 : Set listening patterns
nw_c2_default5 : Default on attacked
nw_c2_default6 : Default on damaged
nw_c2_default7 : Default on death
nw_c2_default8 : Default on disturbed
nw_c2_default9 : Default on spawn
nw_c2_defaultb : Default on spell cast at
nw_c2_defaulte : Default on blocked
nw_c2_dimdoor : Random Dimension Door combat effect
nw_c2_dimdoors : OnSpawn, Ambient Anim. & EndOfCombatRound uncommented
nw_c2_dropin9 : OnSpawn, Appear Anim uncommented
nw_c2_gargoyle : Gargoyle heartbeat
nw_c2_gated : Gated demon heartbeat
nw_c2_gatedbad : OnSpawn, self destruct after 60 sec.
nw_c2_herbivore : OnSpawn, herbivore
nw_c2_j_assvict1: OnSpawn, OnPerceive & OnDamaged uncommented
nw_c2_j_assvict2: Surrender UserDef (group surrender) Gives XP
nw_c2_j_surrend : Surrender UserDef (group surrender) Gives XP
nw_c2_j_surrend2: OnSpawn, perceive & damaged uncommented
nw_c2_lycan_9 : OnSpawn, attacked uncommented
nw_c2_lycat_d : Werecat UserDef
nw_c2_lyrat_d : Wererat UserDef
nw_c2_lywolf_d : Werewolf UserDef
nw_c2_nodieflee : Jump to safe location, returns after 5 sec.
nw_c2_omnivore : OnSpawn, omnivore
nw_c2_patrol1 : Ambient guard heartbeat, mutters to himself
nw_c2_patrol9 : OnSpawn, alarm patroller
nw_c2_patrold : Alarm patroller userdef
nw_c2_recruit1 : Summoned guard heartbeat (used with alarm patroller)
nw_c2_recruit9 : OnSpawn, summoned guard
nw_c2_recruitd : Summoned guard userdef
nw_c2_sitting : Make NPC sit in nearest NW_CHAIR
nw_c2_smnodamag5: On Attacked, warn, then summon guards
nw_c2_smnodamag8: On Disturbed, warn, then summon guards
nw_c2_smnodamagd: Userdef, summon generic guards
nw_c2_stnkbtdie : Stink Beetle on death
nw_c2_vampire7 : OnDeath - turn vampire into gaseous form
nw_c2_vampireg9 : Gaseous form OnSpawn
nw_c2_vampiregd : Gaseous form userdef
nw_c2_wnattack2 : On Perceive, if I see enemy, then attack
nw_c2_wnattack4 : On Dialogue, attack if friend cries for help
nw_c2_wnattack5 : On Attacked, if by friend or enemy, warn, else attack
nw_c2_wnattack8 : OnDisturbed, warn, then attack
nw_c2_wnattack9 : OnSpawn, set location and listen for help cries
nw_c2_wnattackd : Warn and attack userdef
nw_c2_wnshout5 : On attacked, warn and summon helper
nw_c2_wnshout8 : On attacked, warn, then make faction hostile
nw_c3_blocker : Signal to defender to attack
nw_c3_blocker9 : Set up defender
nw_c3_blockerd : Defender userdef
nw_ch_ac1 : Associate heartbeat
nw_ch_ac2 : Associate on perceive
nw_ch_ac3 : Associate end of combat round
nw_ch_ac4 : Associate on dialogue
nw_ch_ac5 : Associate on attacked
nw_ch_ac6 : Associate on damaged
nw_ch_ac7 : Henchman on death
nw_ch_ac8 : Henchman on disturbed
nw_ch_ac9 : Associate on spawn
nw_ch_ac_st_01 : Is the PC speaker not my master?
nw_ch_ac_st_02 : Is the PC speaker my master?
nw_ch_acani9 : Animal companion on spawn
nw_ch_acb : Henchman on spell cast at
nw_ch_ace : Associate on blocked
nw_ch_acgs9 : Giant Spider animal companion on spawn
nw_ch_action13 : Henchman joins, gives personal item
nw_ch_action17 : Henchman level up
nw_d1_attonend : Attack on end of conversation (faction hostile)
nw_d1_attonend02: Attack on end of conversation (only speaker hostile)
nw_d1_attonend4 : Attack nearest PC
nw_d1_attonendpl: Plot character attacks (PC certain death)
nw_d1_gv100gp : Give 100 gp to the PC speaker
nw_d1_heartoff : Turns heartbeat script off (requires prep of the hb script)
nw_d1_hearton : Turns heartbeat script on (requires prep of the hb script)
nw_d1_henchman01: Takes 150 gp from the PC speaker
nw_d1_henchman02: Takes 100 gp from the PC speaker
nw_d1_henchman03: Takes 125 gp from the PC speaker
nw_d1_henchman04: Takes 200 gp from the PC speaker
nw_d1_henchman05: Takes 175 gp from the PC speaker
nw_d1_henchman06: Takes 250 gp from the PC speaker
nw_d1_henchman07: Takes 225 gp from the PC speaker
nw_d1_high_evil : Makes the PC speaker (much) more evil
nw_d1_high_good : Makes the PC speaker (much) more good
nw_d1_j_innkeep1: Takes 5 gp from the PC speaker, jumps PC to NW_INNROOM01, then rest
nw_d1_j_intl25gp: Conv check: Low to Normal INT, has 25 gp
nw_d1_j_intn25gp: Conv check: INT 9+, has 25 gp
nw_d1_mid_evil : Makes the PC speaker (medium) more evil
nw_d1_mid_good : Makes the PC speaker (medium) more good
nw_d1_mobonend : Attack the PC on end of conversation (faction hostile + help shout)
nw_d1_smallevil : Makes the PC speaker (a little) more evil
nw_d1_smallgood : Makes the PC speaker (a little) more good
nw_d1_talktime : Increments the "NW_L_TALKTIMES" variable by one
nw_d1_templeheal: Cast the special Temple "cure-all" on the PC speaker
nw_d2_arcane : Conv check: Is the PC Wizard, sorcerer or bard?
nw_d2_chrh : Conv check: CHA high?
nw_d2_chrl : Conv check: CHA low?
nw_d2_chrn : Conv check: CHA normal?
nw_d2_classame : Conv check: Same class as me?
nw_d2_classbbn : Conv check: Barbarian?
nw_d2_classholy : Conv check: Cleric or paladin?
nw_d2_classno : Conv check: Not the same class as me?
nw_d2_divine : Conv check: Cleric, druid, ranger, paladin?
nw_d2_evil : Conv check: Evil?
nw_d2_female : Conv check: Female?
nw_d2_flfemale : Conv check: NPC female normal+ CHA, PC male high CHA?
nw_d2_flirt : Conv check: Opposite sex, normal CHA?
nw_d2_flirtno : Conv check: Low CHA or same gender?
nw_d2_flfemale : Conv check: NPC male normal+ CHA, PC female high CHA?
nw_d2_heal_0 : Am I a healer?
nw_d2_holy : Return total levels of Cleric/paladin of PC speaker
nw_d2_male : Conv check: Male?
nw_d2_naked : Conv check: Naked?
nw_d2_nature : Return total levels of Ranger/druid of PC speaker
nw_d2_notmyself : Conv check: Am I talking to someone other than myself?
nw_d2_perseasy : Conv check: Easy Persuade check
nw_d2_pershigh : Conv check: Hard Persuade check
nw_d2_persmed : Conv check: Medium Persuade check
nw_d2_racediff : Conv check: Different race?
nw_d2_racesame : Conv check: Same race as me?
nw_d2_shady : Conv check: Rogue skills?
nw_d2_warrior : Conv check: Fighter, ranger, monk, paladin or barbarian?
               
               

               
            

Legacy_TSMDude

  • Hero Member
  • *****
  • Posts: 1515
  • Karma: +0/-0
NWN Scripting Tools and Resources
« Reply #4 on: July 31, 2010, 05:44:43 pm »


               Old School Scripting Resource
Axe's Learn To Write If Statements
Was Scriptease mentioned?
Gulbsoft though I think his name was Dom something.
From Sim9 some tutorials
               
               

               


                     Modifié par TSMDude, 31 juillet 2010 - 04:45 .
                     
                  


            

Legacy_Lilac Soul

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
NWN Scripting Tools and Resources
« Reply #5 on: August 08, 2010, 10:39:55 pm »


               Some years back, I created a number of tools for NWN1, including the Script Generator which is already mentioned in the first post of this thread. These are:

Module debugger - checks scripts for invalid ResRefs
InfoChanger - allows you to alter the required version or expansion of modules and .erf files
BioSearcher - allows you to search through default BioWare scripts as well as scripts in hakpaks
DeImporter - allows you to remove previously imported .erf files from module

None of these tools have been updated for quite a few years, and I don't really use NWN any longer, so I don't know if they're still useful what with new updates and all. But these are the links in case anyone would still find the tools useful.
               
               

               
            

Legacy_Bubba McThudd

  • Sr. Member
  • ****
  • Posts: 254
  • Karma: +0/-0
NWN Scripting Tools and Resources
« Reply #6 on: August 08, 2010, 11:45:58 pm »


               L.S.,

Your script generator is fantastic - I couldn't have made any of my NWN projects without it.  Pity you don't use NWN anymore, but time moves on.  What have you moved on to?
               
               

               
            

Legacy_Lilac Soul

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
NWN Scripting Tools and Resources
« Reply #7 on: August 09, 2010, 12:57:02 am »


               I don't really play games any more. It seems these days, being a father of twin girls is enough to keep me occupied :-)
               
               

               
            

Legacy_PSpeed

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
NWN Scripting Tools and Resources
« Reply #8 on: August 12, 2010, 10:58:55 pm »


               Don't know if it fits here and I haven't played the game in a while myself or done anything with these tools, but there are the modpacker utilities here:

http://nwntools.sourceforge.net/

...in addition to z-dialog which was superseded by other versions, I suspect.



The modpacker utils allow converting a module to/from XML (among other things) which I found very useful for keeping my modules in source control.



And for those of us who like build tools like ANT, there were also ant tasks for packing/unpacking as well as ones that would call Torlack's old compiler.  I don't remember what the last version it worked with was... just saying.
               
               

               
            

Legacy_DarkStormInc

  • Newbie
  • *
  • Posts: 46
  • Karma: +0/-0
NWN Scripting Tools and Resources
« Reply #9 on: August 22, 2010, 07:59:26 am »


               x2 ambient system - a tutorial this to me is a good one. Shows off the incomplete ambient NPC system bioware didn't  get to fully integrate into HotU plus some changes made to expand on what is already there.
               
               

               
            

Legacy_SuperFly_2000

  • Hero Member
  • *****
  • Posts: 1292
  • Karma: +0/-0
NWN Scripting Tools and Resources
« Reply #10 on: November 03, 2010, 11:56:32 am »


               Endless List of HomeBrew Functions [post functions only, not for asking questions]

Newbe FAQ #2 [not for asking questions]
               
               

               


                     Modifié par SuperFly_2000, 03 novembre 2010 - 11:57 .
                     
                  


            

Legacy_Tarot Redhand

  • Hero Member
  • *****
  • Posts: 4165
  • Karma: +0/-0
NWN Scripting Tools and Resources
« Reply #11 on: February 13, 2011, 11:15:33 pm »


               Having just looked through all the suggestions on here I'm a bit surprised that Fancy Colors - NWScript support in text editors by Elf des coquillages, hasn't been mentioned. Without it I wouldn't find Notepad++ anywhere near as useful for scripting as I do. You might also like to consider the edited and indexed versions of the scripts in Superfly_2000's post above. The link's in my sig under unearthed gold.



TR
               
               

               
            

Legacy_MarcusMoon

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
NWN Scripting Tools and Resources
« Reply #12 on: March 08, 2011, 05:33:32 am »


               The lexicon was mentioned above, but I'd like to give Celowin's tutorials a shout out. They took me from 0 knowledge to making my own basic scripts in one weekend.

A definite MUST READ for noobs.
               
               

               
            

Legacy_OldTimeRadio

  • Hero Member
  • *****
  • Posts: 2307
  • Karma: +0/-0
NWN Scripting Tools and Resources
« Reply #13 on: April 16, 2011, 04:44:35 am »


               NWN Omnibus: Offline search tool for select legacy BioWare forums, documents, CCG, Lexicon and more.
'Posted

View the introduction on YouTube, HERE. Download HERE at NWVault.
Requires about 500 megabytes of free space.  Runs from hard disk or USB drive and under Windows and Linux.

What is the NWN Omnibus?
It is an attempt to gather the majority of NWN reference material together in one place and allow very quick keyword searching against all of the documents at once.  It includes reference documents as well as all threads from selected forums(see below for complete list).

Who is going to get the most out of the NWN Omnibus?
Any NWN Custom Content creator or NWScripter who finds themselves frequently searching through the old BioWare forums using Google, the NWN Lexicon or the BioWare "For Developers" documents for specific topics.  Since so much raw information is available for searching, those who will get the very most out of the Omnibus are individuals who already have a decent working knowledge of how Custom Content and NWScript work but who often find themselves needing to look up specific keywords or topics to further advance their pursuits.

What information does this release of the NWN Omnibus contain?
2DA 169 - All 575 .2DA files, current to the 1.69 release

3DS Max Export Scripts - BioWare 3DS Max export scripts documentation, which includes a good deal of information on NWN Custom Content in general.  Downloadable separately here

BioWare For Developers - All 22 documents covering NWN file formats (and other things) from this page

BioWare Forums - Offline archives of the following forums from the old BioWare website, each thread in its own .HTML file.  The following full forum archives from the old BioWare site are included in this release (followed by the number of searchable threads from each):

NWN Custom Content (ARCHIVE) - 17,000
Custom Content - 3,567
Scripting - 15,194
Toolset - 4,907
BioWare News Discussion -1,372
For Developers - 988
Server Admin - 5,788

Also Stickied threads for 21 forums (all of the forums above and more)

Custom Content Guide 3.0 - The "Bible" of Custom Content.  Downloadable separately here.

GMax & Maxscript Help - Help files for GMax (3DS Max 4) and Maxscript, downloadable separately here

Lexicon 169 - The "Bible" of NWScript (and many, many other things as well!), downloadable separately here

Tileset Construction - BioWare's NWN Tileset Construction Tutorial, downloadable separately here.  I don't include any of the files, just index the information.

TXI - Every TXI officially released by BioWare as part of their content, segregated by the bif they were found in.  Extremely useful for looking up how certain TXI commands were used by BioWare and whether other commands or setting were typically paired with them.
               
               

               
            

Legacy_LLJKSiLk

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
NWN Scripting Tools and Resources
« Reply #14 on: July 18, 2011, 03:08:25 am »


               Thanks for the Omnibus information. I was just wishing for something like this earlier... I haven't messed with custom content since running my PW back in 2003/2004.