Tasheni Posted February 7, 2019 Share Posted February 7, 2019 Another tricky thing I can't get to work. I want to send my follower away. He should travel to the nearest inn that could be found in a world space and sandbox inside. I tried to do it like this: How to fill a location alias with a child locationSometimes you need to get a sub location, usually to find a location ref type in it, rather than in the parent location. You might already have a town alias, or a fort alias, and need to find an inn location, or prison location, so you can find a homeowner, or prisoner.To find a "sublocation" do the following.First you need to fill a reference alias with something you know is in the parent location. Easy way to do that is to fill it using ref type of "LocationCenterMarker".Then the tricky hard to remember part: Create a Location Alias, Find Matching Location with the following condition:Subject HasSameEditorLocAsRefAlias Alias:(an alias you already have that you know is in the parent location), Keyword: (Something that corresponds to the parent location's "level" [ie 'LocTypeHabitation' to find a sub location of town or city])Additionally you can add other conditions to further narrow your search. For example:LocationHasRefType Location Ref Type: (Boss) -- this will make sure the location has a boss in itLocationHasKeyword Keyword: (LocTypeInn) -- this will make sure the location is an Inn. I have created these two aliases, I understood that HasSameEditorLocAsRefAlias is my LocationCenterMarker alias. I have not set any additional conditions.I created a simple travel package with location set to LocationAlias and chose my Location.What happens is, my follower jumps on her horse and then nothing happens anymore. Tried without horse, then she just stands around, not knowing where to go, it seems. Basically I want to let my follower travel to the nearest inn possible, no matter if we are in Tamriel or new lands. Has someone experience with the setting above, or knows a better way to achieve this? Thanks for your suggestions. Link to comment Share on other sites More sharing options...
Skybroom Posted February 7, 2019 Share Posted February 7, 2019 Tasheni, I am not that good at sandboxes and CK in general, but I know FLP has a similar feature. Wandering followers can be scheduled to visit an inn nearby while being wandering. And just to let you know. I admire the very direction of your studies. What you want to do with your followers, the possibilities you wish to give them (and already gave them) is exactly what I am dreaming of. Link to comment Share on other sites More sharing options...
Tasheni Posted February 7, 2019 Author Share Posted February 7, 2019 Thanks for pointing me in that direction, uhm, what is FLP? I'm not too familiar with all that abbreviations :laugh:I I am not that good at sandboxes and CK in generalwish I would be :happy: Thanks for your kind words. Seems that it's not working that good for others than me. Or they don't like it. Would be glad to get more critics. Link to comment Share on other sites More sharing options...
masternoxx Posted February 8, 2019 Share Posted February 8, 2019 In the quest DA14 there is a script to send Sam (sanguine) to the nearest inn when the player hits lvl 14.You could take a look at how that was done, Link to comment Share on other sites More sharing options...
Tasheni Posted February 8, 2019 Author Share Posted February 8, 2019 Ah, nice, I will take a look at it. Thank you. Link to comment Share on other sites More sharing options...
ReDragon2013 Posted February 10, 2019 Share Posted February 10, 2019 (edited) Cannot give you a proper solution,but you could make a formlist or array of objectReference which has the doors of TaverInns (Eingänge). (1) make a check of worldspace, current should be Tamriel. If not move npc to any holdLocation in Tamriel, take another list for that npc.MoveTo( b[i] ) ; ( fmList2.GetAt(i) ) (2) Now find out is the NPC in Interieur or Exterieur if in Interieur, no idea what to do (3) if in exterieur, find out the nearest TaverInn by using next method, make conditions to hold the nearest objectRef objectReference oRef float fMin = -1.0 int iMax = a.Length ; fmList.GetSize() int i = 0 WHILE (i < iMax) float f = npc.GetDistance( a[i] ) IF (f > 0) && ((fMin < 0.0) || (f < fMin) fMin = f oRef = a[i] ENDIF i = i + 1 ENDWHILEyou could try this: https://www.creationkit.com/index.php?title=MoveToInteractionLocation_-_ObjectReference npc.MoveToInteractionLocation( a[i] ) ; ( fmList.GetAt(i) ) or this: https://www.creationkit.com/index.php?title=PathToReference_-_Actor npc.PathToReference(a[i], 0.5) ; travelling not moving to the door if npc has reached the door let him go in, change the package for TaverInn, there are some vanilla mercenaries in Whiterun you should have a look Edited February 10, 2019 by ReDragon2013 Link to comment Share on other sites More sharing options...
Tasheni Posted February 12, 2019 Author Share Posted February 12, 2019 Thank you for your suggestions. That works nice, if I have only Tamriel locations. But I want to include taverns of new worldspaces without knowing, what's installed - to be found through that keyword LocTypeInn, like the ck wiki above shows. Unfortunately it's not possible to use a travel package with a keyword alias or ref alias as destination, I tried that but this doesn't work. Link to comment Share on other sites More sharing options...
Recommended Posts