I have two skills at play, where one skill "forecasts" the target of the second. The skills are:
For example, I tried setting a variable 'judgementTarget' when the state is added, then setting the target to that variable, but I ultimately got an error that 'judgmentTarget' was undefined (see console screenshot).
I also thought I could:
I should think there would be an even simpler method, but I can't work it out. Is there a good best practice for doing this?
I'm open to not doing the two-skill setup as well. I just want to telegraph this 'execution' style attack so the player can guard with and/or cast a heal on the victim.
- Deliberation - Add "Judged" state to random opponent
- Judgment - Attack "Judged" enemy
For example, I tried setting a variable 'judgementTarget' when the state is added, then setting the target to that variable, but I ultimately got an error that 'judgmentTarget' was undefined (see console screenshot).
I also thought I could:
- Set 'Judgment' to attack all targets
- Using a custom action sequence to only apply the action effects to targets with the state
I should think there would be an even simpler method, but I can't work it out. Is there a good best practice for doing this?
I'm open to not doing the two-skill setup as well. I just want to telegraph this 'execution' style attack so the player can guard with and/or cast a heal on the victim.