Jump to content

XunAmarox Modder's Resource

Recommended Posts

XunAmarox Modder's Resource

View File

I'll add some more stuff later after I finish my current project but I feel that these two things are severely needed by the modding community so I want to get them out there right away.


What's Included
As of right now there are just three scripts: One to create custom displays (e.g. for stuff like elder scrolls, thieves guild stuff, daedric artifacts, or whatever you want!), another for a disenchanting font which removes all enchantments and improvements from an item placed in a container and returns it to the player. Well, you could call it a renewal font or whatever you want since it pretty much renews the item to its original state before anything was done to it. And as of 1.3 a script to display animated objects (toggle their animation on/off) much like the display script does but it's set up for the Auriel's Bow Pedestal (a static version of it) so you'll need to edit the source and rename it for any other animated object you want to use it for. 


I've also included an esp with a small test cell with the scripts implemented so you can study how the scripts work. You can go to the area via console with "coc 0xtestlab" and it's in the CK under 0xTestLab right at the top. As of 1.3 it's probably not too useful for showing the newer features. I recommend just taking a look at my Stormcrown Estate mod to see how I implemented the scripts if you're having issues.


Tip: To create a static object of any item you don't need to extract it from the BSA just edit it in the Object Window and copy the entire line it lists under Model, something like Clutter\Containers\Satchel.nif and then when you create a new static object make sure you're in your Meshes folder then just paste that address and click Open.


How to use
-Create a static item that will be what you are displaying and set it to initially disabled.
-Create a container (set to not respawn), and hide it off of the map like under the floor or behind a wall or something (hiding it is optional but recommended).
-Add the script to a new trigger.
-Go to Primitives tab and make sure player activation is checked.
-Go to the scripts tab and then Properties and click Auto-Fill.
-Hover over various sections for descriptions, it should be intuitive.


Only one of DisplayArmor, DisplayWeapon, DisplayItem, DisplayBook, or DisplaySoulGem, should be used at a time and should point to the original item's BaseID. The words after Display are the category it falls under - Item is for MiscItem.


DisplayReference should link to the disabled static item you added earlier, the script will enable/disable it based on whether the real item is added or not.


DisplayContainer should link to the hidden container you created earlier. It doesn't need to be unique, you can use one container for your entire display setup.

When activated, the script should take the item out the player's inventory, move it to the container, and enable the static item.  When activated again it will disable the static item and move the item back to the player's inventory. Any improvements or enchantments will have been retained.


-Add the script to a container, any container will do.
-Create a new Global under Miscellaneous/Global called RFontGlobal with variable type of short, value set to 0, and Constant left unchecked.
-Create a new message under Miscellaneous/Message called RenewalFontMSG and keep Message box checked, inside the text box add a warning letting the user know what's happeing for instance "Items you place here will have all improvements and enchantments removed." or something.
-Go to properties in the script and click Auto-Fill.
-Done. Script will now work, any item added will be "disenchanted" and renewed to its original state. It'll also remove any smithing improvements done or renaming. Additionally, on its first activation the user will get the help pop-up that you wrote earlier.


Currently this one only works for the Auriel's Bow pedestal which you'd want to create a static object for. If you wanted to use it for a different object you'd need to edit the source and change "AnimIdle01" and "AnimIdle02" to the appropriate animations but if you're going to do that then ensure you change the name of your script before distributing it so it doesn't conflict with anyone else's. The animation names are listed when you prevew an item (right click > preview)


To set this one up you need to place a static copy of auriel's bow pedestal and then create an activator and add this script to the activator.
--Go to Primitives tab and make sure player activation is checked for your activator.
-Open the script and hit auto-fill, PlayerRef and defaultLackTheItemMSG should be filled for you.
-Set the DisplayContainer to the hidden container where the bow will be stored for safekeeping.
-Set the DisplayAnim to the static copy of the auriel's bow pedestal
-Set the DisplayWeapon to Auriel's Bow (DLC1AurielsBow)
Hit OK.


This is a modder's resource. You are free to re-use it, modify it, and include it in your mods as much as you want as long as credit is given.


Version 1.1
-DisplayItem renamed to DisplayMiscItem to avoid confusion.
-Linking the static reference to enable/disable to the activator is no longer required. It was just an oversight as we already set it in the script, now the script uses that variable rather than checking for linked references. It should be easier to do multiple displays now.
Version 1.0
Initial release.


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...