Just moseying along with my own little project, and I came to an impasse.
I want to have the sleeping quarters at the top of a tower (you wouldn't sleep on the bottom floor of a fortified position, would you?) but I cannot find a way to get the NPCs to know that it's on the third floor that they go to sleep at night.
I don't know how much of a problem it would be to add something like that in, so that a NPC may have a Z coordinate attached to their schedule, but it would be much appreciated by the U7 modders out there and I
- Wizardry Dragon
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
I know NOTHING about codeing, here, but... Would it be possible to have a set path they follow, (When it is 'bedtime' they go to the nearest of a number of coordinates) which involves going down some stairs or through a teleporter or something? That way, they go down the stairs as waypoints dictate, and then scripts say they sleep in X bed. Just a thought...
Opps, no wait, never mind. I just remembered they don't break routine to go off and sleep as there is always some sleeping, and there is always some guarding outside, they don't "swap" shifts. Doh.
Hmm. I suppose the work-around is to create a nocturnal egg which creates an NPC lookalike with the sleep schedule, but we'd have to get rid of the actual NPC.
That'll do for now, but being able to set the Z attribute would be much more efficient and straight-forward.
- Wizardry Dragon
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
I'm guessing the function isn't "find the nearest bed and use it", so what would that be?
I can get the conditional fine, just not the finding the bed thing. If I could set the bed to be around a specific location, this would be a way of hardcoding the schedule in.
Something like
if (UI_get_item_schedule(item) == c_sked_sleeping)
{
// finding and using code here
}
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca