Kolagon Posted February 19, 2017 Share Posted February 19, 2017 (edited) I just got done making a lot of custom spells via Construction set and I'd like to know how to turn them into spell tomes and then add them to the loot list, or at least have them added to a merchant. Edited February 19, 2017 by Kolagon Link to comment Share on other sites More sharing options...
Oblivionaddicted Posted February 19, 2017 Share Posted February 19, 2017 You will need a bit of scripting, to create or modify leveled lists and maybe create and add some containers in some cells, nothing very complicated. To create tome spells, take a book matching your tastes, change its editor ID to whatever you want (preferably something including your nickname and in another language than english to decrease the risk of conflicts as much as possible). Replace the text. Give it an object script like it: ScriptName TheNameYouWantYourScriptToHave Begin OnAdd PlayerActivatePlayer.addspell YourSpellEditorIDEndifEnd Link to comment Share on other sites More sharing options...
Surilindur Posted February 19, 2017 Share Posted February 19, 2017 With OBSE, it should also be possible to use one single script for all the tomes. One simple way to do it would probably be something like this (assuming the script runs on the book ref): scriptname SomeSpellTomeScriptWithYourPrefix ref Container ref BaseObject begin _OnEquip ; no actor limits - will run on every actor let Container := GetContainer ; returns the container the tome is in if eval !( Container.IsActor ) return ; do nothing if equipped on something other than an actor (if at all possible) endif let BaseObject := GetBaseObject ; get the base object for this tome if ( BaseObject == YourFirstCustomSpellTomeObject ) ; if the tome is FirstTome... Container.AddSpell YourFirstCustomSpell ; ...then add FirstSpell elseif ( BaseObject == YourSecondCustomSpellTomeObject ) ; if the tome is SecondTome... Container.AddSpell YourSecondCustomSpell ; ...then add SecondSpell elseif ( BaseObject == YourThirdCustomSpellTomeObject ) ; ... Container.AddSpell YourThirdCustomSpell endif endBut that one only works if GetBaseObject returns the base object of the spell tome. And it only makes sense to use that if someone wants to stuff everything in one script as opposed to writing one script for each tome. I have not tested that, either, so it really is just an idea. Maybe one day if you get that far in scripting, you could consider something like that. The CS wiki can probably help you, at least the following pages I think:http://cs.elderscrolls.com/index.php?title=List_of_Functionshttp://cs.elderscrolls.com/index.php?title=OnEquiphttp://cs.elderscrolls.com/index.php?title=AddSpell Hopefully that helps a bit. For adding to leveled lists, you could use the Construction Set itself. OBSE offers commands to add items to leveled lists, but making it work in a reasonable manner requires some scripting work. Adding the items to leveled lists in the Construction Set should be enough, assuming the people using your mod will be rebuild their Bashed Patches after adding your mod. You can check the Bashed Patch.esp with TES4Edit after rebuilding it to see if your leveled items were included in it. Actual in-game changes to vendor inventories and all that probably take some time, but I have no idea really. I mostly do scripting and the like. :blush: Link to comment Share on other sites More sharing options...
Kolagon Posted February 19, 2017 Author Share Posted February 19, 2017 (edited) Oh jeeze, this sounds complicated. Basically, I recreated a lot of Skyrim's Destruction spells into Oblivion minus the Rune/Spray spells, nothing overwritten though. I might just add them to a merchant and let players buy them from said-merchant, I know they'll have a lot of fun, especially the Master spells that reachs up to 35 feet via exploding touch spells. Edited February 19, 2017 by Kolagon Link to comment Share on other sites More sharing options...
Oblivionaddicted Posted February 20, 2017 Share Posted February 20, 2017 This won't be hard to do. Need more explanations? Link to comment Share on other sites More sharing options...
Kolagon Posted February 20, 2017 Author Share Posted February 20, 2017 Yes please. Link to comment Share on other sites More sharing options...
Oblivionaddicted Posted February 20, 2017 Share Posted February 20, 2017 Be more precise. Link to comment Share on other sites More sharing options...
Kolagon Posted February 21, 2017 Author Share Posted February 21, 2017 Guide me on how to put the custom spells onto a merchant so that players can buy said-spells without needing to use console guides. Link to comment Share on other sites More sharing options...
Oblivionaddicted Posted February 21, 2017 Share Posted February 21, 2017 You want a merchant to sell the spell tomes which will give the spell to player once he buys the book? Link to comment Share on other sites More sharing options...
Kolagon Posted February 22, 2017 Author Share Posted February 22, 2017 (edited) No, I mean just buy the spell in general, not the tome. The script to make the tome looks a bit complicated for the time being so I will do it later. Edited February 22, 2017 by Kolagon Link to comment Share on other sites More sharing options...
Recommended Posts