Editing a Shop

Moderator: Moderator

Post Reply
Message
Author
zuzubaku
Posts: 1
Joined: Sun Apr 21, 2019 10:28 pm

Editing a Shop

#1 Post 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!

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: Editing a Shop

#2 Post 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.
My feedback meter decays into coding. Give me feedback and I make mods.

Post Reply