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