Originally Posted by Cadmus88
Originally Posted by Abraxas*
Attaching scripts to RootTemplates works as well! It's a bit different from adding treasure tables, I think.
A short description of what I did:

1) Created char script in my mod module with dependencies on Main and Shared; added it via Ressource Manager to my module.
2) Took the script ID and added an entry to the animals.lsb file (RootTemplates).
3) Copied the file into Data/Public/MyMod/RootTemplates/

Loaded my module in the editor and all rats - in that case - had the new script added.

But would be fine if it was easier.


The other method for custom roots could be:

1. Find the root in the Create and View templates tool
2. Right click on it and select Create new from selected
3. https://monosnap.com/file/UYzYOe5AXB1Xye3S4jnlvm0astRGVj

--Select your mod in drop down
--Insert the name for file your want to store it in (Name.lsb)
--Click Add
--Select that lsb in the drop down
--Enter the name for your root
(next time you just select lsb, don't need to create it)

The created root will be the full copy of the root from Shared, but you will be able to attach any scripts and change any parametres you want.

Still requires manual work, as you need to replace roots of your instances. This can be done in sidebar.

https://monosnap.com/file/YhkFkqcI8f2A78FKc2JVVg1FmycnSj

You select your new created root in the list and this replace most parametrs to your root params


I tried to use that lsb maker thing in the root templates but didn't have too much luck. Will have to try again. That said, I wouldn't want to have to replace the root template of every instance of a common character or object with a slightly modified root template when editing the file directly would be a lot faster. And for root templates that there's only 1 or 2 instances of (e.g., bosses), it'd just be easier to edit the actual instance of the character/object with right click and copy to mod. A "Copy to Mod" function for root templates that would let you edit the actual existing root template would be very useful. The fact that this seems to be able to be done outside the editor but not in it is weird.

Another issue I find rather annoying: reload stats doesn't appear to do anything. Maybe it has a specific use, but it seems to me like it should just reload the text files and update all item and character stats if they've been modified. Is there a specific way to use this tool or an order or something?

Maybe this has been fixed in the patch today? I seem to be updating the EE editor and original editor. Edit: nevermind, probably just steam stuff.

Last edited by Baardvark; 14/04/16 07:04 PM.