ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Thu Oct 01, 2020 11:54 am

All times are UTC

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Editing a Shop
PostPosted: Sun Apr 21, 2019 10:36 pm 

Joined: Sun Apr 21, 2019 10:28 pm
Posts: 1
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!

 Post subject: Re: Editing a Shop
PostPosted: Tue Apr 23, 2019 12:39 pm 
Perspiring Physicist

Joined: Sun Sep 09, 2012 7:43 am
Posts: 6119
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.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 0 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group