MarkusBordihn / BOs-Easy-NPC

Create easily NPC for your world or for your mod.
Other
20 stars 8 forks source link

[Developer Report] How can I use this code in my mod? #311

Open Dixter-TES opened 2 months ago

Dixter-TES commented 2 months ago

Summary: šŸ“ I'm sorry to write it in this issue category. I am a beginner mod developer and would like to use your mod from my mod, but I don't know how to connect it. In some other mods I have seen repositories and dependencies blocks to connect their mod to mine. How can I do this with your mod?

MarkusBordihn commented 2 months ago

Thanks for reaching out! No problem at all about the issue category.

Could you provide a bit more detail on what you're trying to achieve? Are you looking to create your own NPCs based on the ones that already exist in my mod, or do you have something different in mind?

Once I understand your specific use case, Iā€™d be happy to put together a short guide to help you get started.

In the longer term, Iā€™m planning to offer simple .json config files that will allow you to define NPCs without needing to write any code. However, this feature is still a few months away.

Looking forward to hearing more about your project!

Dixter-TES commented 2 months ago

I am creating a mod that allows to run scripts for NPCs in sequence. For example, I need an NPC to go from one place to another. At the moment I want to call pathfinder from my mod to make the NPC go to the specified coordinates.

Dixter-TES commented 2 months ago

Hello, decided to describe the problem again, but more specifically.

I am creating a mod that allows to set NPC routes and scenarios for walking. I need to somehow contact your NPCs and make them walk to the desired points. I'm also thinking about how to trigger certain animations for them upon arriving at a point.