Difference between revisions of "Basic NPC Creation Tutorial"

Jump to navigation Jump to search
m
internal links
imported>Dev akm
(→‎Editing NPC Inventory & Spells: link Spell_List_Tab)
imported>Qazaaq
m (internal links)
{{Featured}}
This tutorial will cover the basics of creating a new [[NPC]] combatant and placing it in a dungeon. The following subjects will be covered.
* Creating a new NPC
* Editing NPC Stats
* Basic AI & Package Editing
 
This tutorial will not delve into [[dialogue]] or [[quest]] creation. Let's begin.
 
==Creating a new NPC==
*'''Respawn''' This NPC will respawn when the cell reloads if you check this - since this is an unnamed boss, we want to allow respawns.
 
You may notice that the values in the ''"[[Stats"'' tabTab - NPC|Stats Tab]] are locked. (except for personality) This is because we have "''PC Level Offset''" checked.
 
The ''"[[Factions"'' tabTab]] is also important. We'll leave the "''BanditFaction"'' in here, but if we needed to add any, we could do so from Character>Factions... in the toolbar. Then drag the faction from the list on the left into the list of factions for the NPC. Additionally, you may set the faction rank simply by clicking once on the faction rank number in the NPC window, and typing in a new value.
 
==Editing NPC Appearance==
[[Image:tut3_img3.jpg|Face Advanced Tab|thumb|right]]
 
Click the "'''[[Face'''" tabTab]]. This tab gives us some basic controls in the form of age, complexion, and hair sliders. Additionally we can change hair style, color, generate random facial features, and change eye color.
 
The "Lock" radio buttons allow you to manually set sliders and then use the "'''generate''" button to randomize all ''other'' features of the face.
* press OK to preview results
 
Usually it's enough to randomly generate a unique face and move on, especially for combatants like this boss NPC. For more delicate tuning, however, we can select the "'''[[Face Advanced'''" tabTab]].
 
This tab opens myriad options and is even more robust than the in-game facial editing features. We'll go over the basics here, but you'll learn the most by experimenting with the options available on your own.
 
==Editing NPC Inventory & Spells==
Open the '''[[Inventory''' tabTab]]. You can do this by using the small left/right arrow icons. You'll notice a lot of items beginning with ''LL'' in this list. This is the standard prefix for [[Leveled_Item|Leveled lists]] used when we created the game. Since we used a template NPC we don't need to add anything to this - her inventory contains all the equipment she needs to provide the player with a challenging battle and rewarding spoils. However; if you wanted this NPC to carry a special item (notes and keys are especially good examples), you would drag the item into this list from the [[Object Window]].
 
Notice also that you can enter a hypothetical player level and press '''Preview Calculated Result'''. This will open a pop-up window with a list of items that the editor chooses randomly from the list. Running this test a few times is a good way to test your inventory without having to run the game.
 
Next, open the [[Spell_List_Tab|SpellList]] tab]]. This list is empty, but let's give this boss some basic alteration ability, since she's got a little skill in that school of magic (I determined this from the stats tab).
 
From the [[Object Window]], navigate to Magic>LeveledSpell, and drag the ''LL1AlterationMinorLvl100'' spell list into the NPC. This will prepare her for battle with some alteration spells appropriate for the level of the player.
 
[[Image:Tut3_img6.jpg|thumb|right|The AI window]]
Finally, we want to give this NPC a little more than the standard behavior. Press the "'''[[AI'''" buttonButton]] to open the AI window.
 
We're only concerned with the AI Attributes and AI Package List portions of this window. The other settings are for vendor and trainer NPCs.
 
We can leave the default AI Attributes from the original NPC we opened. [[Aggression]] and [[confidence]] of 100 mean she will engage any enemy and never run away. You can play with these values to get different behavior, such as lowering confidence to give the NPC a tendency to flee from battle. Energy level and [[Responsibility]] tie into some other AI behaviors and can be left alone for this NPC.
 
Notice '''aaaCreatureInterior512''' and '''aaaCreatureExterior1500''' packages[[package]]s already in the package list. '''aaa''' is a naming convention prefix we use to indicate basic packages which can be used on any NPC or creature. We'll leave these two in, which will just allow the NPC to wander around and interact with the environment if no other packages are chosen.
 
In your toolbar, open ''Packages...''. This is a complete list of packages created. Select the following three and add them to the NPC's package list.
Anonymous user

Navigation menu