1
Serverside Modding / Re: Levelling an NPC to match your level
« on: July 04, 2016, 04:04:26 pm »
Of course it is possible but you need to resolve some design problem and thats bigger problem then code it. When you level NPC and what level you achieve? for example.. if you have 1vs1 then its pretty simple, but what if you (lvl10) fight with npc and then "wild player appears" with higher level then your and attack to this npc? will this npc change level to "current higher level" or will stay on level 10? If you want it, then when it happens? You can have level 1 attacking and level 80 healing, that NPC will never know about this healer and you will need to check players in radius. And what if you (lvl80) attack to NPC and then run away and some level 10 will attack this npc? will this npc stay on that high level or move to level 10? if you have solution to this problem, then its great and you can start to code. For example (i havent trinity near me so i will just say some low design how i will do it), if i will attack npc with level 20, then npc will immediately (before dealing damage) push yourself to that level. I think you can level NPC ingame, but if not, there is still calculation in code somewhere so you can make "ghost level" and just push that level to calculation and not "original" level of npc. I dont know (if you cant level ingame) if you will achieve that every player will see your level and not original (what im saying is that core can store level per template and not per npc. So if you will have ghost level for NPC then player will still see original level from template and not your ghost level). uff.. so.. its possible, i dont know how much time you will need + how great will looks like but its 100% possible with some time
