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)
Line 1: Line 1:
{{Featured}}
{{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.
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
* Creating a new NPC
* Editing NPC Stats
* Editing NPC Stats
Line 7: Line 7:
* Basic AI & Package Editing
* Basic AI & Package Editing


This tutorial will not delve into dialogue or quest creation.  Let's begin.
This tutorial will not delve into [[dialogue]] or [[quest]] creation.  Let's begin.


==Creating a new NPC==
==Creating a new NPC==
Line 37: Line 37:
*'''Respawn''' This NPC will respawn when the cell reloads if you check this - since this is an unnamed boss, we want to allow respawns.
*'''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"'' tab are locked.  (except for personality)  This is because we have "''PC Level Offset''" checked.
You may notice that the values in the [[Stats Tab - NPC|Stats Tab]] are locked.  (except for personality)  This is because we have "''PC Level Offset''" checked.


The ''"Factions"'' tab 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.
The [[Factions Tab]] 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==
==Editing NPC Appearance==
Line 46: Line 46:
[[Image:tut3_img3.jpg|Face Advanced Tab|thumb|right]]
[[Image:tut3_img3.jpg|Face Advanced Tab|thumb|right]]


Click the "'''Face'''" tab.  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.   
Click the [[Face Tab]].  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.
The "Lock" radio buttons allow you to manually set sliders and then use the "'''generate''" button to randomize all ''other'' features of the face.
Line 57: Line 57:
* press OK to preview results
* 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'''" tab.
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 Tab]].


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.
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.
Line 66: Line 66:


==Editing NPC Inventory & Spells==
==Editing NPC Inventory & Spells==
Open the '''Inventory''' tab.  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]].
Open the [[Inventory Tab]].  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.
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).
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.
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.
Line 78: Line 78:


[[Image:Tut3_img6.jpg|thumb|right|The AI window]]
[[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'''" button to open the AI window.
Finally, we want to give this NPC a little more than the standard behavior.  Press the [[AI Button]] 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'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.
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 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.
Notice '''aaaCreatureInterior512''' and '''aaaCreatureExterior1500''' [[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.
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