I'm trying some things out with custom target, damage and hit formulea, but having a hard time figuring out how anything works.
For instance, if I want a skill to be able to target all enemies with or without a certain status, how do I go about it?
In my instance, I want to have skills that attack and guard certain parts of bodies, so a skill is not supposed to be able to target an enemy that guards a certain bodypart. These are statuses 2 and 3 in the Data manger. I tried target formulea along the lines of `!t.status.includes(2)` etcetera but it doesn't seem like there is a property called status.
Either the documentation is very meagre or the engine doesn't expose a lot of hero/monster properties.
Is there a place with full API documentation on what properties and methods heroes and monsters have?
Or is there a way I could log objects and values similar to `console.log(someVar)`?
There is no proper documentation for this, unfortunately. You can check the Player types here: https://github.com/RPG-Paper-Maker/Game-Scripts/blob/develop/src/Core/Player.ts
I didn't test, but !t.status.some(status => status.id === 2) should do the work?
That works!
I hadn't digged through the source code so thanks for linking it, as well!