michaelcoolis Posted May 11, 2020 Share Posted May 11, 2020 Hi there! So, I have created a mod which disables an actor and spawns a sweetroll at their location (think, wabbajack). I also tried to make it so that the sweetroll is renamed to the actor's name. The issue with using setname(), however, is that it renames all sweetrolls, not just the specific sweetroll in question. After looking around on some similar problems, it appears that the solution might be to use quest aliases. The issue is, I don't really understand how to use a quest alias to accomplish this task. Can anyone help me out, or point me in the right direction? I would really appreciate it! Link to comment Share on other sites More sharing options...
dylbill Posted May 11, 2020 Share Posted May 11, 2020 What you want instead is SetDisplayName: https://www.creationkit.com/index.php?title=SetDisplayName_-_ObjectReference I think you can also change an object reference's name with a quest alias. Link to comment Share on other sites More sharing options...
michaelcoolis Posted May 11, 2020 Author Share Posted May 11, 2020 Thank you for the advice! The problem is, I cannot do SetDisplayName on the sweetroll as it can only be done on an objectreference and not on a potion property like the sweetroll. Link to comment Share on other sites More sharing options...
dylbill Posted May 11, 2020 Share Posted May 11, 2020 Can you post your script? It should look something like this: Potion Property FoodSweetroll Auto ObjectReference SweetRoll Event OnEffectStart(Actor akTarget, Actor akCaster) SweetRoll = akTarget.PlaceAtMe(FoodSweetroll, 1) akTarget.Disable() SweetRoll.SetDisplayName(akTarget.GetDisplayName()) EndEvent Link to comment Share on other sites More sharing options...
michaelcoolis Posted May 11, 2020 Author Share Posted May 11, 2020 Aha! Thank you! I was not sure how to make it so that there was an objectreference with the sweetroll in it, but your line: SweetRoll = akTarget.PlaceAtMe(FoodSweetroll, 1) Worked! Thank you so much, I really appreciate it! Link to comment Share on other sites More sharing options...
dylbill Posted May 11, 2020 Share Posted May 11, 2020 No problem, glad it's working. Happy modding! Link to comment Share on other sites More sharing options...
Recommended Posts