Updated:
I'm new to plugin development. I am writing some feature as plugin commands. The commands are expected to be used as Skill's effect. And it will modify the attributes of the actors involved (either the subject or the targets).
I've registered the commands and set the skill effects. However, when the command was run, I have problem accessing either the subject or the targets of the skill in the command callback function. Following the suggestion of ATT_Turan, I tried accessing
Please advise what I could do. Thanks.
Old Question:
I'm new to plugin development. My questions are:
Thanks.
I'm new to plugin development. I am writing some feature as plugin commands. The commands are expected to be used as Skill's effect. And it will modify the attributes of the actors involved (either the subject or the targets).
I've registered the commands and set the skill effects. However, when the command was run, I have problem accessing either the subject or the targets of the skill in the command callback function. Following the suggestion of ATT_Turan, I tried accessing
BattleManager._subject and BattleManager._targets in the callback, but _subject was null and _targets was [].Please advise what I could do. Thanks.
Old Question:
How to use variables in plugins?How to have a skill setting the skill user's actor ID to a variable?