Jump to content
0 votes
Guests cannot vote

Add Combat Hook API for Skill Usage and Damage Events

  • Views: 4
  • Submitted:

Dear IGCN Team,

I would like to suggest adding a Lua combat hook that is triggered when a player deals damage to a monster.

I understand that modifying individual skill formulas is the correct and necessary way to tightly control damage, and I am already doing that. However, there is a long-standing issue related to high-level maps.

Current Problem

Monsters in higher-level maps have significantly higher defense values. Because of this:

  • Magic-based classes are still able to deal consistent damage
  • Melee classes struggle to penetrate monster defense
  • The damage gap becomes larger as monster DEF increases
  • Class balance in PvM becomes heavily skewed toward magic classes

Even with careful tuning of individual skills, it is difficult to address this problem globally without introducing inconsistencies between skills.

Why a Combat Hook Would Help

A combat hook would allow applying small conditional adjustments specifically when attacking monsters, for example:

  • Slight bonus damage for melee classes against high-DEF monsters
  • Conditional scaling based on monster defense
  • Map-specific PvM balancing
  • Additional damage modifiers only in PvM (not PvP)

Suggested APIs

It would be very helpful to have one of the following callbacks:

function onPlayerUseSkill(oPlayer, skillId, targetIndex)
end

or

function onPlayerDealDamage(oPlayer, oTarget, skillId, damage)
-- allow modifying damage
return damage
end

This callback could allow controlled adjustments only when needed, for example:

  • only vs monsters
  • only for melee classes
  • only when monster defense is high
  • only in specific maps

Benefit

This would help:

  • Improve PvM balance between melee and magic classes
  • Reduce reliance on heavy per-skill adjustments
  • Allow cleaner and more maintainable scripts
  • Provide better control for high-defense map design

Thank you for considering this suggestion.

×
×
  • Create New...

Important Information


We use technologies, such as cookies, to customize content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy.