Hi guys, I'm just having a bit of trouble with script calls and what I am supposed to look for and how to set up.
My objective is basically needing to identify if an enemy (no specific enemy) is using a specific skill ID.
The reasons are complex but I cannot do this by simple commands.
If anyone can help me out I'll highly appreciate it.
There are solutions, but they depend on when and where you need that check.
However one suggestion: Would it be easier to come from the other side?
Basically make that specific skill cause a switch to be ON, and then check if that switch is on wherever you need that check.
That solution is a bit tricky because you'll need to turn off the switch for the next use, but mnight still be easier than to get the check directly.
It's all a pretty complex system of common events that both actor and enemies share to save space than having to duplicate the same skill but one for enemy/actor purposes - sound variance etc.
I have considered the switch option but the issue is like you say I will have to find ways to turn the switch off for next use which might be alot more hard work. However, if a script call can Identify the active skill used via an enemy some how be it directly or just enemy team that might make things work the way it is intended.
Unfortunately it doesn't work that way, and scripts are no miracle workers.
Skills are impulse actions that are over within a single frame - they have no time where they could be detected at all. That is why the options in control variables only give "last used xy" and you basically cannot say "this is used now".
Giving a signal through the skill itself is basically the only realistical way to handle this unless you were in a very strict environment.
If you cannot give that signal through a switch, and the entire structure is too complex to specify a time of checking, then your only possible solution is to request a plugin that creates the signal flag for you and manages it automatically.
And that would also require you to describe at least a good part of your structure to the plugin programmer.
Hmm it seems to me the only way to avoid possible errors, switches requiring several fail saves and having to request a plugin that could in the long run help with situational battle sequencing, it might best for me to just simply make an extra batch of duplicated skills with there unique requirements exclusive to enemies.
I'm always about trying to organize my database and compact as much data into less amount of entries but given the limitations I don't think there is much else I can do.
Thank you for bringing onto the table the options to consider, as much as I didn't quite get the result I wanted I atleast now see what I must do instead.