Hi all! As you know, going from Script Commands to Actor > Change Equipment forces you to select a specific actor, like so:
However, due to a mechanic in my game I need the ability to use a variable to determine the actor instead. I checked the Script Call Collection for VXAce stickied at the top of this subforum and found this for changing equipment:
I was wondering if there would be a way to replace the Actor ID to reference a variable, let's say 70. So if say Variable 70 is set to 1, it would change Actor 1's armor to that, or if it was set to 4, it would set Actor 4's armor to that.
On that note, for some reason no matter what I do even just the script call that uses a specified actor doesn't actually equip anything... and seems to remove the equipment from the inventory as well. Any idea why that may be?
However, due to a mechanic in my game I need the ability to use a variable to determine the actor instead. I checked the Script Call Collection for VXAce stickied at the top of this subforum and found this for changing equipment:
$game_actors[id].change_equip_by_id(slot, equip) if $game_actors[id]# id is actor id# slot is the slot number (0=weapon, 1=shield, 2=head, 3=body, 4=accessory)# equip is the weapon or armor idI was wondering if there would be a way to replace the Actor ID to reference a variable, let's say 70. So if say Variable 70 is set to 1, it would change Actor 1's armor to that, or if it was set to 4, it would set Actor 4's armor to that.
On that note, for some reason no matter what I do even just the script call that uses a specified actor doesn't actually equip anything... and seems to remove the equipment from the inventory as well. Any idea why that may be?