Vega1942 Posted September 20, 2015 Author Share Posted September 20, 2015 its a normal miscitem I did not edit the item but I checked anyway its flagged as playable Link to comment Share on other sites More sharing options...
sLoPpYdOtBiGhOlE Posted September 20, 2015 Share Posted September 20, 2015 What's the item? Link to comment Share on other sites More sharing options...
Vega1942 Posted September 20, 2015 Author Share Posted September 20, 2015 winebottle02AEmpty Link to comment Share on other sites More sharing options...
sLoPpYdOtBiGhOlE Posted September 20, 2015 Share Posted September 20, 2015 I don't know what way your doing things but it works for me. I duplicated ABBlank Magic effect and renamed it Wine01AEmptyBottleEdited the duplicate effect and set it as Fire and forget and attached that exact script I posted earlier to the effect.Filled the MyItem property pointing it to WineBottle01AEmpty. Then I edited FoodWineAltoA and added the Wine01AEmptyBottle effect. I loaded my game and opened the console and typed:player.additem c5349 1Hit enter and a bottle of Alto Wine was added to my invetory. I opened my inventory and drank the Alto Wine and then went to the MiscItem inventory tab and yep there's the WineBottle01AEmpty in my inventory.Repeated it several time and each time the empty bottle was added. Link to comment Share on other sites More sharing options...
Vega1942 Posted September 20, 2015 Author Share Posted September 20, 2015 im sorry I didn't think to check my inventory I thought at the item name would show up in the top right corner of the screen, my bad, its works fine now thanks for your help I really appreciate it and sorry for wasting you time. Link to comment Share on other sites More sharing options...
sLoPpYdOtBiGhOlE Posted September 20, 2015 Share Posted September 20, 2015 (edited) Glad you got it sorted.. If your wanting to see the message that the empty bottle was added then change PlayerRef.AddItem(Myitem, 1,true)to: PlayerRef.AddItem(Myitem)or PlayerRef.AddItem(Myitem, 1, False) Edited September 20, 2015 by sLoPpYdOtBiGhOlE Link to comment Share on other sites More sharing options...
Ashenfire Posted September 20, 2015 Share Posted September 20, 2015 "You can compare PlayerRef if it's defined as an Actor," I'm with you on that. Link to comment Share on other sites More sharing options...
Ashenfire Posted September 20, 2015 Share Posted September 20, 2015 And give sloppy a cookie. Thanks. I am attempting to get my website up to full power so I can do heavy modding again. Link to comment Share on other sites More sharing options...
Vega1942 Posted September 20, 2015 Author Share Posted September 20, 2015 "playerRef.additem(Myitem)" worked like a charm thanks :laugh:. Link to comment Share on other sites More sharing options...
Recommended Posts