Hello makers. This topic was mentioned in the forum, but I couldn't find a good way to implement it, so I need some help.
Visustella can use weapon, armor, or item as skill resource, but it has to be in the inventory, not equipped, so I guess I need to do it in another way.
I found this script:
$gameActors.actor().forceChangeEquip(5, null);
So, I create the 6th armor slot, make the corresponding armor and skill, and bind the skill to the armor, so the skill only shown when I equip the armor. Then, I bind a common event with the script to the skill for deleting the armor after the skill is done. It worked well. My character is healed and the armor(named potion) is gone.
However, I encountere a problem. I don't know how to get the actor ID of the current user of the skill. During test play, I know exactly the character I'm using, so I can directly put the actor ID into the script, but what if I have multiple members in my party. How should I get the corresponding character's ID? I tried something like $subject.battler().ID, but no luck.
Or is there a better way to implement this function?
Visustella can use weapon, armor, or item as skill resource, but it has to be in the inventory, not equipped, so I guess I need to do it in another way.
I found this script:
$gameActors.actor().forceChangeEquip(5, null);
So, I create the 6th armor slot, make the corresponding armor and skill, and bind the skill to the armor, so the skill only shown when I equip the armor. Then, I bind a common event with the script to the skill for deleting the armor after the skill is done. It worked well. My character is healed and the armor(named potion) is gone.
However, I encountere a problem. I don't know how to get the actor ID of the current user of the skill. During test play, I know exactly the character I'm using, so I can directly put the actor ID into the script, but what if I have multiple members in my party. How should I get the corresponding character's ID? I tried something like $subject.battler().ID, but no luck.
Or is there a better way to implement this function?