I’ve been toying with script calls but I can’t get this idea to work right. (This uses Yanfly’s Action Sequence plugin, incidentally)
I’m trying to add a skill called Synthesis, where the party member duplicates the effect of the last item which was used, for free. I know more or less how I want it to work:
-Each item has a common event that sets a variable to that item’s ID. I currently have it set the variable to
this.item().id
-The skill Synthesis uses the Action Sequence plugin to copy the effect of that item. I currently have it set to
<action copy: item:v[13]>
When I test it, it crashes when I use the item, and I’d like to know how to properly pull this off.
EDIT: I decided to instead give each item a script call that directly changes the variable, but now the Synthesis action does nothing. I did have the idea of a workaround, where I add 1 of that item to inventory and then Force Action to use said item, but Yanfly’s battle system gets screwy when Force Action is involved.
I’m trying to add a skill called Synthesis, where the party member duplicates the effect of the last item which was used, for free. I know more or less how I want it to work:
-Each item has a common event that sets a variable to that item’s ID. I currently have it set the variable to
this.item().id
-The skill Synthesis uses the Action Sequence plugin to copy the effect of that item. I currently have it set to
<action copy: item:v[13]>
When I test it, it crashes when I use the item, and I’d like to know how to properly pull this off.
EDIT: I decided to instead give each item a script call that directly changes the variable, but now the Synthesis action does nothing. I did have the idea of a workaround, where I add 1 of that item to inventory and then Force Action to use said item, but Yanfly’s battle system gets screwy when Force Action is involved.