scarycave Posted June 29, 2012 Share Posted June 29, 2012 I'm trying to get an follower to be renamed after a certain event. I used the SetNameEx function to get the players name and stick it in front of the followers name. However it only returns as <No Names>'s *followers name*. The game has to have someway of getting the PC's name, since the save files are named after the player. I just can't seem to get it to work for the follower. Link to comment Share on other sites More sharing options...
gamingaddict1994 Posted June 29, 2012 Share Posted June 29, 2012 I'm trying to get an follower to be renamed after a certain event. I used the SetNameEx function to get the players name and stick it in front of the followers name. However it only returns as <No Names>'s *followers name*. The game has to have someway of getting the PC's name, since the save files are named after the player. I just can't seem to get it to work for the follower. I'm not a modder, but you ARE using obse? If so, look at UOF and see how they built their mod. Another way would be to create a second follower that tags along with your first one in terms of stats, and when you have the event, that one (with the new name) is swapped out with the old one and the inventory is moved to it. Perhaps you can have it so the person becomes non-essential and a kill command is performed on them. Then, a script checks for the events completion and if it returns positive, it will "disable" the body immediately after killing him and moving all of the inventory to the new guy, who is teleported without visual effects to the older ones spot. you may have a flicker of him jerking, becoming naked, jerking again, and then being normal again, but it SHOULD work. With a fast enough computer even that shouldn't happen, actually. anyways, idk, I'm not a modder. Thats just an idea. Hope it helps :P Good luck! Link to comment Share on other sites More sharing options...
QQuix Posted June 29, 2012 Share Posted June 29, 2012 This works: string_var ss . . . let ss := playerref.getname + " x " + StorntheBurlyREF.getname StorntheBurlyREF.SetName $ss Link to comment Share on other sites More sharing options...
scarycave Posted June 30, 2012 Author Share Posted June 30, 2012 That string_var code worked perfectly. Thanks. :dance: Link to comment Share on other sites More sharing options...
Recommended Posts