Get hold from location

Post » Mon Nov 19, 2012 5:19 am

Hi.

How can I get the hold from my current location?
User avatar
Mark
 
Posts: 3341
Joined: Wed May 23, 2007 11:59 am

Post » Mon Nov 19, 2012 5:31 pm

You will need to learn about Locations and Location-Parents and so on ... start here: http://www.creationkit.com/Location


A hold is merely a set of cells, so I'm not sure you are going to be able to do what you want ... But (in the CK) look at the Parents of any Locations that look interesting ... maybe there is a way ...



If there is, then you'll need some script(s) ... ;)
User avatar
Daniel Brown
 
Posts: 3463
Joined: Fri May 04, 2007 11:21 am

Post » Mon Nov 19, 2012 4:19 pm

Take a look at the CRHoldExpansion quest in the Companions/Radiant section, it does exactly this through a set of aliases--if I remember correctly it basically gets the location with keyword LocTypeHold that has the centermarker nearest to the player.
User avatar
Lily
 
Posts: 3357
Joined: Mon Aug 28, 2006 10:32 am

Post » Mon Nov 19, 2012 5:02 am

What I need to know is when the player
Take a look at the CRHoldExpansion quest in the Companions/Radiant section, it does exactly this through a set of aliases--if I remember correctly it basically gets the location with keyword LocTypeHold that has the centermarker nearest to the player.

Thanks. That will help.
My intention is to know when the player traverses from Hold A to B, then refill quest aliases.
User avatar
Andy durkan
 
Posts: 3459
Joined: Fri Aug 03, 2007 3:05 pm

Post » Mon Nov 19, 2012 9:16 am

Take a look at the CRHoldExpansion quest in the Companions/Radiant section, it does exactly this through a set of aliases--if I remember correctly it basically gets the location with keyword LocTypeHold that has the centermarker nearest to the player.

Is that seriously how that works? That seems a little flimsy. None of the holds are equal in size or shape.

I do it by using a spell effect on the player that is conditionalized for IsInRegion, and I point the region at the region that spell is designed to represent. One spell for each Hold. Those spells have active effects which fire OnMagicEffectStart events that change a global to a set of known values (1 through 8 I think; 1 = Falkreath, 2 = Whiterun, etc). Then I just look at the global to determine where I am.
User avatar
Siidney
 
Posts: 3378
Joined: Fri Mar 23, 2007 11:54 pm

Post » Mon Nov 19, 2012 7:40 am

I didn't (and don't) have the CK open so can't report exactly how it works, but no, I didn't state it quite right--it doesn't use geographic proximity to a hold's center marker, rather it uses the hierarchy of locations. It isn't going to be wrong just because you're closer to the center of another hold than the hold you're actually in.
User avatar
carla
 
Posts: 3345
Joined: Wed Aug 23, 2006 8:36 am


Return to V - Skyrim