This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: Levelling an NPC to match your level  (Read 828 times)

TheMetalCarrots

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 113
    • View Profile
Levelling an NPC to match your level
« on: July 02, 2016, 05:30:31 pm »
So, as level scaling is a thing in (most) MMOs nowadays, I was wondering if it could be implemented within 3.3.5, with an NPC that is below your level being upgraded to match you in terms of health and damage (when attacked). I've seen someone achieve something similar, but with the power of the NPC being scaled based on the number of players.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

athert

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 9
    • View Profile
Re: Levelling an NPC to match your level
« Reply #1 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 :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »