Lua skill failed events

Closes #9096

Description

Created an almost verbatim implementation of the OnSkillUse event for skill failure, which is exposed for use via Lua scripts. Addresses a hole in the current engine implementation and is useful for modding purposes.

Checklist

  • I have read the CONTRIBUTING guidelines
  • My code builds and runs locally
  • My code passes CI on my fork
  • I have included steps to replicate/confirm the changes below
  • I have attached necessary supporting files or assets

Steps to Test/Replicate

  1. I've created a mod which can be found here
  2. Download this mod and make sure it's enabled
  3. In game go to options -> scripts -> Failure XP Bonus, configure mod to your preference
  4. Enable the debug messages option
  5. Fail a skill use and see the message/check your skill stat.
Edited by Salah Magoosh

Merge request reports

Loading