Delekatala Posted April 14, 2018 Share Posted April 14, 2018 (edited) SOLVED Hello, So I'm working on my first mod, a portable home. The mod dwemer storage cube is my favorite home, but it's to small for me, so I made a new home, slightly bigger. I am new to all this, and his/her mod is free to use or change, so I just took his/her files for the teleport part, and renamed everything. I have double checked and triple checked, everything looks good. But when I go into game and use my item, it says "this item cannot be equipped". I am so frustrated, its exactly the same, but his/hers works and mine doesn't. Here is the script, I need help. The one thing i was slightly unsure about, cell property should be the name of the cell right? Scriptname dweadvkit_TeleportScript extends ObjectReference ObjectReference Property dweadvkit_OutsideMarker AutoObjectReference Property dweadvkit_InsideMarker AutoCell Property AAAdwemeradvkit AutoEvent OnEquipped(Actor akActor) if (akActor.GetParentCell() != AAAdwemeradvkit) dweadvkit_OutsideMarker.MoveTo (akActor) akActor.MoveTo (dweadvkit_InsideMarker) else akActor.Moveto (dweadvkit_OutsideMarker) endifEndEvent Edited April 15, 2018 by Delekatala Link to comment Share on other sites More sharing options...
candlepin Posted April 14, 2018 Share Posted April 14, 2018 If you can't equip the item, OnEquipped will never fire. Did you change the item you equip to transport you to the house? Link to comment Share on other sites More sharing options...
Delekatala Posted April 14, 2018 Author Share Posted April 14, 2018 If you can't equip the item, OnEquipped will never fire. Did you change the item you equip to transport you to the house? No, I literally took the current item and just renamed it and changed to the renamed script. How did they do this sorcery. Link to comment Share on other sites More sharing options...
candlepin Posted April 15, 2018 Share Posted April 15, 2018 Did you make sure the properties in the renamed script are filled properly? Link to comment Share on other sites More sharing options...
Delekatala Posted April 15, 2018 Author Share Posted April 15, 2018 (edited) Did you make sure the properties in the renamed script are filled properly?I believe they are, but I am no expert on scripting. the script i s up there in the first post. How would I go about checking? Edited April 15, 2018 by Delekatala Link to comment Share on other sites More sharing options...
candlepin Posted April 15, 2018 Share Posted April 15, 2018 Did you make sure the properties in the renamed script are filled properly?I believe they are, but I am no expert on scripting. the script i s up there in the first post. How would I go about checking? In the CK, navigate to the item which the script is attached to. Right click on the script. Select Edit Properties. All three of the Property Names should have a little pencil w/ a plus sign next to it.If not, click Auto-Fill All. Link to comment Share on other sites More sharing options...
Delekatala Posted April 15, 2018 Author Share Posted April 15, 2018 Did you make sure the properties in the renamed script are filled properly?I believe they are, but I am no expert on scripting. the script i s up there in the first post. How would I go about checking? In the CK, navigate to the item which the script is attached to. Right click on the script. Select Edit Properties. All three of the Property Names should have a little pencil w/ a plus sign next to it.If not, click Auto-Fill All. That was it! It works flawlessly now. I am so grateful, you have no idea. Link to comment Share on other sites More sharing options...
candlepin Posted April 15, 2018 Share Posted April 15, 2018 (edited) No worries, glad I could help. For future modding reference, that's something you should always check if you're making mod with a script and it isn't working. Edited April 15, 2018 by candlepin Link to comment Share on other sites More sharing options...
YsCordelan Posted April 15, 2018 Share Posted April 15, 2018 For the benefit of anyone reading this thread in the future, I just want to correct one thing: If you can't equip the item, OnEquipped will never fire. This is wrong. OnEquipped fires when you click on something in the inventory screen, regardless of whether or not it is actually equippable. Link to comment Share on other sites More sharing options...
candlepin Posted April 15, 2018 Share Posted April 15, 2018 For the benefit of anyone reading this thread in the future, I just want to correct one thing: If you can't equip the item, OnEquipped will never fire. This is wrong. OnEquipped fires when you click on something in the inventory screen, regardless of whether or not it is actually equippable. Thanks for the correction. Appreciated. Link to comment Share on other sites More sharing options...
Recommended Posts