Maclimes
Cowpoke
I'm building a custom NPC, and if they're married to the player, I'd like them to walk up to a spot a few blocks away from the player's barn (assuming it exists) at a particular time. The problem is, I don't know the X,Y coordinates for the barn, since it can be wherever the player chooses. Plus, you may have more than one barn!
I realize that there must be something like that in there already. A married NPC finds their way to the bed somehow, even if it's moved or if there's more than one (although I am realizing now I've never seen them actually walking to the bed). And the barn's explicit location must be callable, because if the witch event occurs, the camera knows to center on a coop. So I figure this stuff is in there, I just need to somehow combine them in a schedule event.
So, how would I identify a barn's location, and how would I input that into a schedule line for an NPC? And assuming I can do that, how do I off-set those values (so they're not clipping inside the building)? For the moment, I'm not too worried about clipping inside of whatever object is in that location. That's probably a whole new level of headache. (Alternatively, if anyone knows of an existing NPC mod that does something like this, let me know so I can reverse-engineer how it was done.)
I realize that there must be something like that in there already. A married NPC finds their way to the bed somehow, even if it's moved or if there's more than one (although I am realizing now I've never seen them actually walking to the bed). And the barn's explicit location must be callable, because if the witch event occurs, the camera knows to center on a coop. So I figure this stuff is in there, I just need to somehow combine them in a schedule event.
So, how would I identify a barn's location, and how would I input that into a schedule line for an NPC? And assuming I can do that, how do I off-set those values (so they're not clipping inside the building)? For the moment, I'm not too worried about clipping inside of whatever object is in that location. That's probably a whole new level of headache. (Alternatively, if anyone knows of an existing NPC mod that does something like this, let me know so I can reverse-engineer how it was done.)