Quick Questions, Quick Answers Thread #6

Post » Sun Nov 18, 2012 9:58 am

If you need to find indoors, from outdoors, you will have to have a List of some sort.

I'm not sure that's true. I think you could do it the way some of the radiant quests do it, with a two-step process (this is where the fact that aliases are filled in order comes into play):

1) You have a quest, and you first create a location alias that gets filled with the nearest match that has the LocTypeInn keyword and HasRefType LocationCenterMarker; then
2) You create a reference alias after that, using Location Alias Reference as the Fill Type, the location alias you just created as the Location, and choosing LocationCenterMarker as the Ref Type.

Not 100% sure that this would work since I haven't done it myself, but it seems like it should--it's what radiant quests do to fill aliases of ref types like bosses and treasure chests in indoor locations. If it doesn't work, you could likely replace #2 with a reference alias using match conditions like HasKeyword LocationCenterMarker and GetInCurrentLocAlias pointed to the above alias.
User avatar
Dragonz Dancer
 
Posts: 3441
Joined: Sat Jun 24, 2006 11:01 am

Post » Sun Nov 18, 2012 10:51 am

I'm not sure that's true. I think you could do it the way some of the radiant quests do it, with a two-step process (this is where the fact that aliases are filled in order comes into play):

1) You have a quest, and you first create a location alias that gets filled with the nearest match that has the LocTypeInn keyword and HasRefType LocationCenterMarker; then
2) You create a reference alias after that, using Location Alias Reference as the Fill Type, the location alias you just created as the Location, and choosing LocationCenterMarker as the Ref Type.

Not 100% sure that this would work since I haven't done it myself, but it seems like it should--it's what radiant quests do to fill aliases of ref types like bosses and treasure chests in indoor locations. If it doesn't work, you could likely replace #2 with a reference alias using match conditions like HasKeyword LocationCenterMarker and GetInCurrentLocAlias pointed to the above alias.
The problem is two-fold:

The showstopper, Outdoors to Indoors is that standing in a cell right outside the city wall does not mean your "Nearest" Marker (whichever function you use to get it) is the one inside the wall right next to you (because that is an interior cell, and the "Distance" stuff is not logical at the point you are entering an interior cell (because although the door makes it appear as though that interior cell is right next to you, in fact it isn't, it could be half the game-world away or more).

So, adding a keyword to things helps get around that issue, as there will only be a known number of markers that you have added keywords to ... and you can add unique keywords to identify things as suits you.

But, even if you manage to fudge a way around that (like using Keywords) ... then you have the complication that adding Keywords stops other mods from playing nicely with your stuff (or the other way around) ... but I could only really figure out how to do what I wanted using Keywords (and so forcing other modders to add those keywords to their stuff, if they wanted to be compatible with my stuff). <--- This would/does work, but it isn't very nice.
User avatar
Barbequtie
 
Posts: 3410
Joined: Mon Jun 19, 2006 11:34 pm

Post » Sun Nov 18, 2012 1:01 pm

http://www.gamesas.com/topic/1411305-quick-questions-quick-answers-thread-7/

Looks like we've hit the post limit.

Cipscis
User avatar
Lucy
 
Posts: 3362
Joined: Sun Sep 10, 2006 4:55 am

Previous

Return to V - Skyrim