ScarabMonkey Posted March 3, 2012 Share Posted March 3, 2012 I have spent hours trawling theses forums and CreationKit.com and can't find what seems to be the most useful feature for mod creators...:How to get your new Item/Spell straight into the Inventory/SpellBook. I gathered that it may have something to do with making a Quest script - but failed to find any definitive answers. Can anyone help? Thanks! Link to comment Share on other sites More sharing options...
swicklepick Posted March 3, 2012 Share Posted March 3, 2012 Put the spell in the inventory/spell list of the Player actor. That works for when starting a new game, anyways Link to comment Share on other sites More sharing options...
David Brasher Posted March 4, 2012 Share Posted March 4, 2012 (edited) You might take a look at this playable modders template and tutorial on adding items to the player via quest script: Auto-Add Your Item To Player Template. Edited March 4, 2012 by David Brasher Link to comment Share on other sites More sharing options...
cscottydont Posted March 4, 2012 Share Posted March 4, 2012 (edited) I wish I could find the post I'm looking for so I can credit the awesome person I got this from...but its a wily, elusive thread :( so here is the method I am using: 1.create a new Formlist and dump all the spells you want to be added to the player into it 2.create a new quest, check the boxes for "Start Game Enabled" and "Run Once", click over to the scripts tab 3.attach this script to that quest, ! be sure to set the properties correctly in the properties tab ! Scriptname yourscript extends Quest ;=============== PROPERTIES ==========================================; FormList Property yourlist auto ;=============== VARIABLES ==========================================; Spell SpellForm Actor Player ;=============== EVENTS ==========================================; Event OnInit() int CurrentSpell = 0 int FormListSize = yourlist.GetSize() Player = Game.GetPlayer() while ( CurrentSpell < FormListSize ) SpellForm = yourlist.GetAt( CurrentSpell ) As Spell Player.AddSpell(SpellForm) CurrentSpell += 1 endWhile EndEvent this script will run once on game load and cycle through each spell in the formlist, until its added them all to the player Edited March 4, 2012 by cscottydont Link to comment Share on other sites More sharing options...
ScarabMonkey Posted March 4, 2012 Author Share Posted March 4, 2012 Thanks guys, that's just what I was after! Link to comment Share on other sites More sharing options...
Recommended Posts