![]() |
![]() |
|||||||||||||||||||||||
|
|
||||||||||||||||||||||||
|
Sections: New Creatures & Placeables | New Tilesets | New Scripts
Go to (Previous - 1. About, 2. Introduction, 3. Script: Set Name, 4. Script: Set Wing, 5. Commands - Next )
Georg's Scripting Extreme Close-Up I: Set NameBy Georg Zoeller This article discusses new scripting commands introduced in the 1.67 Update and demonstrates one possible way of using these commands to add interesting new features to a module or persistent world. This article assumes the reader is somewhat proficient with Neverwinter Script, but a demo module and downloadable .erf is provided for simple import and text. SetNameThis powerful, new scripting command allows the module builder to change the name of in game items, creatures and placeable objects, allowing for truly random content generation while adding personality to your NPCs.
New Game Functionality - The Built in Name GeneratorWith patch 1.67, the default OnSpawn script for the game (nw_c2_default9.nss) has been update to include an easy to use Random Name generator for creatures placed in the toolset.
Because we know that builders like to have the maximum level of control over content in their module, we also added functionality to allow a module creator to override the default name generator used by the game (RandomName()) with a custom, more sophisticated script of the builder's choice. Creating A Custom Name GeneratorTo override the default name generator used at creature spawn when the aforementioned variable is set, a module builder can create a script named "x3_name_gen.nss" in the toolset, which will automatically be executed when a creature is spawned and tries to generate a random name.
Example Application: Updating NPC NamesBuilders - In addition to the examples provided in the text above, the 1.67 demo module demonstrates some additional use for the function:
Players - You can test this functionality by downloading the demo module. The store in this module features a "Signet Item" that can be used on any item (such as a weapon) to imprint your name onto it. (i.e. Torias' Axe +2)
|
|||||||||||||||||||||||
|
|
||
|
Multiplayer Games at Neverwinter Connections
|
||
|
Buy Premium Modules
|
||
|
4,826,942 BioWare Users:
|
||