Jump to content

[LE] Order of quests at same priority (both at priority 100, which comes first?)


Recommended Posts

Hello,

 

Let's say two quests are both at max priority, and both try to place the same NPC into an alias, adding a package to it's AI stack. How is it determined which is loaded higher?

 

Is it random, or does it depend on something that can be manipulated? Maybe it's in alphabetic order of quest ID then?

 

 

The CK wiki doesn't seem to say anything about this, does someone perhaps know?

 

Thanks

Link to comment
Share on other sites

I would assume both would, leaving the NPC with both and the last to effect it overwriting any same thing from the former.

There may be some clashing depending on what the quest scripts are doing. But, I wouldn't think so. I'm sure that happens anyways.

 

Sounds like something that would be pretty easy to test with a few mock quests.

I'm sure you could edit one or both of the quests to react with each other for manipulation.

Link to comment
Share on other sites

My only concern is alias AI packages, which (as far as I'm aware) only stack up but don't "interact or clash". No scripts here this time. The one the top of the stack is applied, question is of course but which gets on top in this case of equal probability quests.

 

Timelike order of being applied also makes sense :smile: Didn't think of that but yeah, it's also a reasonable assumption.

Yeah, it would be cool if someone knew this for sure, otherwise yeah I'm afraid I'll have to cook up a small testmod to find out.

 

 

EDIT: Also, what I meant about manipulation is not about editing the quests, for a bit more context:

 

 

I need to make sure that my AI is applied to an NPC above everything else.

So -> make alias with a quest at 100 priority.

 

However, I know there are also other mods out there that (and needlessly at that!) occupy the 100 priority slot already for their aliases.

So I'd like to know what happens, who's AI gets applied in this case, and how can I make mine tower over everything.

 

Keep in mind that this is not an arms race - my AI only needs to be there for 3 seconds as a consequence of player actions, then it clears itself up immediately. So it's not incompatible with other mods that also need their AI as high priority, running constantly.

But for those 3 seconds, my mod must take all priority (otherwise the mod simply doesn't function).

 

 

Yes, I could make a patch that explicitly lowers the priority of said other quests from 100 to 99, but it would be best if it could work in general.

Like, if it's alphabetical, then I could name my quest 00__quest_name or something to force it above everything (or ZZ__quest_name if reversed alphabetical).

If it's applied in order of initiation, then it's already good by definition actually. (Other quest running fine, mine comes in -> it was applied later, so comes out on top, does what it needs to do, then disappears -> other quest is once again on top and runs fine).

 

If it's random - then tough luck for me, I'll have to make the patches.

 

 

Link to comment
Share on other sites

Yes testing is a huge part of programming. The better you get at programming the better you get at testing. I really don't know this outcome, just pointing out how easy it would be to test any theory's here.

I do know there is no such a thing as a tie on a computer. One will hit before the other even it it comes down to 0.001th of a second. Something as simple as a wait 1 second command in one of the quest scripts would define actual effect order in a "tie". I understand what you are saying as far as how do you know who is first. Honestly would depend on how the Skyrim pulls that. Could be a number of ways. You'll have to test it to be sure no matter what anyone says. Also it would take more than a few tests to be sure. Setting it up a number of ways. Could be by who was active first, alphabetical, the order in the journal or some other default method devised by the program. In any event we do know that a package will overwrite a package. The only question would be how much. Will it completely reset all of it or will it just fill in only the stats it deals with leaving some as they were. In the second scenario the former changes would persist if not over written by the latter. We could speculate all day. Just going to have to roll up your sleeves and do some pointed tests to be sure.

Edited by NexusComa2
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...