Page 1 of 1

Editing a Shop

Posted: Sun Apr 21, 2019 10:36 pm
by zuzubaku
Hi, I have a question about how to make sure a hook loads town data at the correct time?

I'm trying to make a small mod to add more talent trainers into the world by simply adding talent training options to existing npcs (literally copying the staff trainer and changing which skills are referenced, then changing the town shops list to look for this dialogue.) I've looked all over and I can't seem to find the hooks that would call for npc dialogue over shops. The only mod I was able to find that was doing something similar just superloaded everything and that seems kind of dangerous, so I'd really like to avoid that if I could.

Thanks in advance!

Re: Editing a Shop

Posted: Tue Apr 23, 2019 12:39 pm
by HousePet
Hrm, looks like you need to intercept each "trap" as it is created and override the resolvers.chatfeature field.
This looks like a job for the Entity:loadList hook.
That allows you to basically alter anything in an entity creation list before anything else attempts to Resolve it.

Exact instructions would take longer than I have time for here. You can open my Arcanum mod to see some of the things you can do with Entity:loadList.