Schedule Locations
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
-
- Posts: 1241
- Joined: Thu May 14, 2020 1:34 pm
Schedule Locations
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
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
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Re: Schedule Locations
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...
Re: Schedule Locations
that the z-coordinate cannot be set is a known problem and probably something to change post V1.2
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
-
- Posts: 1241
- Joined: Thu May 14, 2020 1:34 pm
Re: Schedule Locations
Well, looks like half of my project will have to wait until post 1.2 then.
:-/
- Wizardry Dragon
:-/
- Wizardry Dragon
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Re: Schedule Locations
Then how do they do that tower south of fawn in SI then?
They have their sleeping quarters on the 2nd floor.
They have their sleeping quarters on the 2nd floor.
-
- Posts: 1241
- Joined: Thu May 14, 2020 1:34 pm
Re: Schedule Locations
That's what I've been left wondering.
- Wizardry Dragon
- Wizardry Dragon
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Re: Schedule Locations
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.
-
- Posts: 1241
- Joined: Thu May 14, 2020 1:34 pm
Re: Schedule Locations
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
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
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Re: Schedule Locations
I think that's on the list of things we want to add to the new savegame format, since the original U7 has no spot for it.
Another example is the NPC that runs the List Field in SI, who had to be created by an egg.
Another example is the NPC that runs the List Field in SI, who had to be created by an egg.
-
- Posts: 1241
- Joined: Thu May 14, 2020 1:34 pm
Re: Schedule Locations
Well, it would be much appreciated
- Wizardry Dragon
- Wizardry Dragon
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
-
- Site Admin
- Posts: 1310
- Joined: Thu May 14, 2020 1:34 pm
Re: Schedule Locations
IIRC, the guards' usecode says for this particular location you mention:
if(schedule_says_it_is_time_to_go_to_sleep)
find_the_nearest_bed_and_use_it
instead of the most expected version:
if(schedule_says_it_is_time_to_go_to_sleep)
use_item(at_location(X,Y,Z))
Artaxerxes
if(schedule_says_it_is_time_to_go_to_sleep)
find_the_nearest_bed_and_use_it
instead of the most expected version:
if(schedule_says_it_is_time_to_go_to_sleep)
use_item(at_location(X,Y,Z))
Artaxerxes
-
- Posts: 1241
- Joined: Thu May 14, 2020 1:34 pm
Re: Schedule Locations
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
}
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
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca