Caveats off the bat, this will not involve scripting and we are limited in what we can edit and create without scripting. I will probably do a scripting tutorial eventually, but no promises. We can still do alot of things without it though.
Setup our .esp in the creation kit
- Open the creation kit.
- It may take a while, especially on HDDs.
- In the top left click the folder icon.
- This gives you a list of .esps to pull data from.
- Double click the Starfield.esm master file.
- You can use the other master files too if you want, they are likely for DLC content.
- Then click ok.
- This will take even longer to load.
- Once that is done we want to name and create our mod.
- In the top left click save/ floppy disk icon. Name the file something your users will recognize.
- I reccomend the mods name and your author name.
- But it can be anything you want.
Load and edit an existing .esp – You obviously dont need this section in your first modding session.
- In the top left click the folder icon.
- This gives you a list of .esps to pull data from.
- Ussually you still want to load data from the master file, so double click it and make sure it’s checkbox has an X.
- Next select the mod file you wanna load.
- In the image I am using my TerrificTraitsByDigineaux.esp
- With your esp selected, click “Set as Active File” and then clock “OK”
- This will take some time to load and may appear as if it’s forzen or not responding.
- Just leave it alone and go do soemthing else.
Where are the Traits?
- Look for the window labeled “Object Window”.
- This is a hierarchical list of every object Form in the game.
- In this context Object is a programming term for a type of data and can be anything from an image, to an entire character, which is made up of it’s own heirachy of objects.
- Don’t worry you don’t really need to know that. Just know when i say Object or Form i mean an entry on the right hand side of this window.
- Traits are a perk Type and traits are perks with the trait checkbox selected.
- It makes more sense when you see it i promise.
- In the top left of this window is a text filter box.
- Inside it enter “trait”
- Next in under that expand the “Actors” Category
- In the creation engine Actors refers to characters. Ussually NPCs, but it sometimes includes the player too.
- An RTS might refer to these as units and Unity Game engine systems often refer to them as Entities.
- Your window should now look similar to the image. Though lacking my DigiTraits of course.
- You can open and view the data for any of these Trait Objects by double clicking or right clicking and selecting edit. similar to a desktop file browser
How do Traits work?
- We are going to use AlienDNA as a template. You can make any changes and experiement and poke around. Just be sure to click “Cancel” when your done, to remove any changes.
- This will show you how perks and their data is structured by offical bethesda devs and demonstrate a few essentials on how to use the creation kit.
- I also highly reccomend following this guide to create a new trait, rather than editing an existing trait as it means your mod will be compatible with anything.
- Open “TRAIT_AlienData”
- Note towards the bottom that “playable” and “trait” are checked. This is how the engine knows to put them in character creation menu
- The ID is what the engine uses to identify it and should not be changed without good reason
- The name and description is what the player sees in game. You can change those as much as you want.
- Click on the “Benefits” Tab under the ID box.
- The entry table is where you tell the engine what this perk should do.
- Currently it adds the Trait_AlienDNA_Ability, which is a spell object. I will touch on spell entires in the next tutorial.
- The other Entry Point modifies spell magnitude. that is the strength of spells.
- Double click or edit the spell magnitude entry.
- In the top right of this window is where you can pick the effect, choose how to modify it and specify values to modify it by.
- In the bottom left are conditions.
- Check out the spell and effect tabs
- The entry point is only in effect while the conditons are met
- The tabs determine the target of the conditon
- For example the spell tab checks if the spell has the keyword for food or drink. So only spells with those tags will be affected by the 0.8x spell effect magnitude multiplier of this perk entry.
- You can also double click or edit these conditons to have a look at how they are constructed
Creating a Trait
- Click cancel on the trait window to ensure no changes are saved.
- Reopen the alien dna trait
- Change the ID to “TRAIT_Juggernaut”
- You may also wish to add a tag that identifys the author and or mod this object is in.
- I ussually prefix or suffic “digi”, as in the the image.
- This can make it esier to find your objects later and for easier for advanced users and other modders to troubleshoot, edit,extend or add to your mod.
- Now click “Apply”
- We want to turn this into a new Form So click “Yes”.
- A new perk Object Form with our name should have apeared in the object windows list.
- If you now save this mod and enable it in your load order you should see the trait in character creation.
- Of course at the moment it’s identical to alien DNA and so the trait list will just show 2 alien DNA entries. so lets fix that.
- Open the trait again if it isnt already an change bothe name amd description. You should apply changes and save often.
- Remember to click apply, close the window and save the mod again
- I named it “Juggernaut” and used the following description ” You know how to get optimal defense out of your armor. Unfortunately it also increases it’s encumberance in combat and while sneaking. +50% armor rating, but +50% armor weight in combat and while under 90% HP”
- You can put whatever you want though.
Make it do stuff
- Lets move to the Benefits tab of the trait
- We wont be using any abilities, so right click the ability entry and select delete.
- The existing entry point can also be deleted or you could use it as a base template. I will be deleting it for this tutorial.
- right click in the perk entry box and click “add” to create our first entry.
- Checkmark the Entry point in the top right
- Directly below it is another filter box which works like the one in the object window
- Type “armor” into the box.
- in the drop down below that select “Mod Armor Rating”.
- This the total armor rating value of the player
- In function pick “Multiply Value”.
- Set the value to “1.5”.
- This means the armor rating will be multiplied by 1.5x
- Thats +50% for those of you who suck at maths
- But we only want this active when the player is standing still and in combat.
- So add a new conditon to the box in the bottom left
- In condition function search for moving and select “isMoving” from the dropdown.
- On the right the value corresponds to the movement state which you can reference form the link below.
- https://ck.uesp.net/wiki/IsMoving
- Most things from the fallout and skyrim creation kits is the same, so that wiki is pretty useful. But theres also a tonne thats not documented and alot that never will be.
- Set the value to 0 for not moving
- Thats our armor buff done. you can apply, save and test it in game if you wish.
And Or multiple Conditons
- Next lets give our juggernauts a penalty to armor weight when they are missing HP or in combat.
- Create a new perk entry on our trait.
- right click in the perk entry box and click “add” to create our first entry.
- Lets multiply it by 1,5x again
- you can also use numbers less than 1 to make armor lighter. just not sub zero.
- Next add a new condtion. “IsIncombat” with a value of 1.
- Make sure to tick “OR” on the right of the conditon window. this toggles the conditon to or logic instead of and.
- Set the entry point to “GetHealthPercentage”.
- But this time we want the value to be less than 0.9, so that its active when the player has less than 90% HP.
- So change the comparison symbol to < and the value to 0.9.
- Now your juggernaut will have 50% heavier armor when missing hp or in combat.
- But keep in mind this only updates when your inventory changes.
- But you could untick or, meaning the juggernaut would need to be in combat AND missing HP for the weight gain to apply.
- For more info on conditons read up here: https://ck.uesp.net/wiki/Category:Conditions#Or and here: https://ck.uesp.net/wiki/Condition_Functions
Thats the basics. Check back in a week or so for a guide on creating and adding spell effects via traits. Which allows us to alter alot more stuff. If you make anything with this, id love to check it out. feel free to advertise it in the comments. You can also download my trait mod and open it up in the creation kit to see how it works. Just remember to credit me if you use my mod. https://www.nexusmods.com/starfield/mods/9750
Leave a Reply