VirtualSpace Posted February 27, 2011 Share Posted February 27, 2011 I'm adding an object script to a lockpick, though it won't work unless I manually add the properties (name, icon). I add the script to the lockpick in the CS, using the following code: ScriptName LockpickOnAdd BEGIN OnAdd Message "xxx", 10 END After adding the script, I enter the game and find that lockpicks have no name (as indicated by <missing name>). I edit the name properties in the CS, and they are now named, though have no icon. I don't understand what's happening here, as I'm following this tutorial: http://cs.elderscrolls.com/constwiki/index.php/Scripting_Tutorial:_My_First_Script - nowhere does it state I must manually add the properties to the object... What's going on? Link to comment Share on other sites More sharing options...
Hickory Posted February 27, 2011 Share Posted February 27, 2011 I just tested your script and it works fine. I don't know what you did, but you did something wrong. Delete your esp and start again. Open the CS and create the script first, and make sure it is an object script. Save it. Double click on the Lockpick in Misc\Items and select the script dropdown. Select LockpickOnAdd and press OK. Save and name your new esp. Link to comment Share on other sites More sharing options...
VirtualSpace Posted February 27, 2011 Author Share Posted February 27, 2011 Thanks Hickory. It seems I forgot to load the master .esm... which would explain me having to enter the properties for each item manually. Link to comment Share on other sites More sharing options...
Recommended Posts