Jump to content

Question

Posted

Hi guys I wanna create multiskill npc where people can buy skills fore something does anyone can give me a hint how to do it I tried to add skills to shop but they wouldn't show up , I know for some of you this question will be funny but I'm struggling to get idea how to make this working .

 

 

Thanks for any help straight away !!

4 answers to this question

Recommended Posts

  • 0
Posted
8 hours ago, bershake said:

Hi guys I wanna create multiskill npc where people can buy skills fore something does anyone can give me a hint how to do it I tried to add skills to shop but they wouldn't show up , I know for some of you this question will be funny but I'm struggling to get idea how to make this working .

 

 

Thanks for any help straight away !!

just sell books.

By double tap on book - it will give u skill, which u can use.

You need use item handler for that. Which one - maybe it already exists, maybe it needs to be create, in any case - use books.

  • 0
Posted
On 4/1/2024 at 8:34 AM, MrIndex said:

just sell books.

By double tap on book - it will give u skill, which u can use.

You need use item handler for that. Which one - maybe it already exists, maybe it needs to be create, in any case - use books.

Yeah, but I need all available skills. I don't think books alone cover them, to be honest. If you can give me a rough idea of how to proceed, I'm willing to try.

  • 0
Posted (edited)
5 hours ago, bershake said:

Yeah, but I need all available skills. I don't think books alone cover them, to be honest. If you can give me a rough idea of how to proceed, I'm willing to try.


In short, what you need is this:
- special script (be it handler or AI or however your source handles it) that will be activated when you speak to the said NPC.
- hook the script to an NPC of your choice - your multi-skills manager if you will.
- a few static HTMLs and/or at least one Container HTML that will be used for the dynamic display of stuff.

Now the lengthier version:

You should create a special script/handler/AI (any will do initially) and assign it to an NPC of your choice (just has to be one that has no other special handler/script/ai assigned to it).

Once you have that in place, you need to develop/write the actual script/handler/ai of the npc, which in actuality will handle all of the skill learning.

To better illustrate it, think of the NPC as simply an empty box, in which you can put almost anything. In your case, you want to put a script/code that handles skill learning.

The script itself is not very complicated. You just need to set conditions/backstops that would prevent exploits (which will be the majority of the coding/programming), and then a couple of methods that will handle the actual DYNAMIC display of skills within the container HTML that you would create.
The dynamic display of skills means that you will be generating skills info and availability and populating the said Container HTML with the different data depending on who is using it and other conditions, such as learned skills/levels.

 

Edited by Salty Mike

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Luniage - a custom Interlude client on Unity, with its own server Hi everyone. I've been quietly working on this for a long time and I think it's finally at the point where it's worth showing. Short version: it's Interlude, but the client and the server are both mine. The client is a custom one, built in Unity — not a patched or reskinned original. The server is written from scratch in C#. The only thing that comes from the old game is the content: the world, the models, the animations, the sounds, the icons, the interface art. The game looks and feels like the game you know. Everything underneath it is new. Why do this at all   Because the old client is a 2004 executable and anyone who has ever tried to add something to it knows exactly how that conversation ends. You can't add a window. You can't change how a skill looks. You can't fix a bug that's staring you in the face. Every server that wanted a feature of its own had to fake it through HTML dialogs and system messages, because the client simply won't bend. At some point it stops being worth fighting. I'd rather keep the game and rebuild everything around it. Where it is right now   You can sit down and play it. Not a tech demo, not a walk-around-and-look-at-the-trees build - an actual character. Most of the game is in: movement, combat, the skill system with its real formulas and timings, items and equipment, enchanting, shops and player trade, quests, parties, clans, and the whole interface that ties it together. Progression works from level 1 all the way through A grade - you can level, gear up, join a clan and run content today. What's missing isn't the foundation. It's the top end - and that's exactly where the work is pointed next.   Videos     What I'm working on now   Castle sieges and the Olympiad. The two biggest systems the game has, the ones that turn a working world into a server people actually stay on. And visual effects. They already run, but "runs" and "looks the way you remember it" are two very different things, and closing that gap turned out to be a much longer road than I expected. I'm going through them one by one. Does it run outside Windows   Yes. It's a Unity project, so Windows, Mac and Linux are just build targets. I actually develop on a Mac, which has kept the whole thing honest about staying portable. Will it work with my existing server   No, and it never will. The client talks to my server and nothing else - that's the trade I made, and it's the reason everything above is possible in the first place. If you're looking for a drop-in replacement client for a setup you already have, this isn't it. What's the goal   First and foremost, to launch my own project on it. That's what the client and the server are being built for, and that's what sets the priorities. Longer term, I'd like to open-source it. This community has spent twenty years working around a client nobody can touch, and I think the honest ending to this story is handing over something people can actually build on. I'm not putting a date on that - first it has to be good enough to be worth someone else's time. Can I try it   Not yet. When there's a build worth handing out, it gets posted here first. In the meantime I'll be posting progress regularly, and I read every reply. If you've run a server, built a client, or just spent a decade staring at this game and know exactly which detail everyone gets wrong — please say so. A good share of what's right in this project is right because somebody pointed at a screenshot and said "that's not how it looked." Thanks for reading.  
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..