0 of 0

File information

Last updated

Original upload

Created by

fenix31415

Uploaded by

fenix31415

Virus scan

Safe to use

About this mod

An API for mods managing magic deflection.

Requirements
Permissions and credits
Donations
I saw magic deflection in Inpa Sekiro Combat.

Well…we need something better… =w= … ._. …

This plugin provides an API with which you can manage magic deflection in your plugins. No more papyrus dirty implementations.

I have a discord server now, where you could find useful info about my mods, suggest your ideas for released or new mods and give me a feedback. Also I am planning to record some tutorials about SKSE modding soon, you could find it in the according channel.



Using the api
  • Copy “MagicDeflectionAPI.h” to your project.
  • Inherit from “MagicDeflectionAPI” class.
  • Override “can_deflect” function — it calls before every magic hit.
    It should return true if your mod allows deflection. E.g. Actor has specific item/spell or currently attacking. It shouldn’t change anything in game, just check some things.
  • Override “on_deflect” function — it calls when deflection happens.
    You should initialize DeflectionData struct — starting point and direction. See my two examples for reference.
  • Functions “can_deflect_ward” and “on_deflect_ward” do same but when magic hits ward.
  • Register your resurrection plugin in the API.
    By calling “MagicDeflectionAPI_AddSubscriber” in “MagicDeflectionAPI.dll” (see example for reference).

Demos of simple plugins which are using the API!





How it works

Callbacks fire every magic hit, you can disable hit and launch new projectile from the point and with direction you want. All vanilla things happens like you casted the spell.

FAQ
  • I have troubles with using the API!
    Feel free to write in my discord (find it in my nexus profile) and in comments.
  • Could you implement <my idea of magic deflection mod>?
    No. I did the most difficult part. Implement it yourself. Moreover, it is the easiest skse plugin you can do, so magic deflection mod with my API is a good spot to start SKSE modding.

Compatibility
  • In general, it is compatible with everything. Feel free to install/update/uninstall it at any spot in the playthrough.
  • As any SKSE plugin with hooks, it may conflict with another SKSE plugin with same hooks locations. But do not worry, it is very unlikely.
  • There is a rule ‘If two mods do same thing different ways, it may cause problems!’.

Incompatibility

Nothing interesting for now.

Known issues (also see “bugs” section)

Feel free to report bugs in comments, I’ll do my best to fix that.

Future plans
  • AE — see sticky post on my stamina mod page.

Installation/uninstallation: install/uninstall it like any SKSE plugin.

Credits

Source: available on my github.

Наше пати