Hi everyone,
I'm working on a unique mechanic in my game and need help with the visual side. I hope someone can point me in the right direction.
Core mechanic:
Instead of traditional weapons/armor, I use YEP_EquipCore to let a single actor (the "party") equip warriors (berserker, archer, giant, etc.) into 8 equipment slots. All warriors are created as armor with the same equipment type ID (e.g., ID 2). This works fine: stats sum up, and I can equip/unequip them.
What I need:
I want the player to see their party visually:
Thanks in advance!
I'm working on a unique mechanic in my game and need help with the visual side. I hope someone can point me in the right direction.
Core mechanic:
Instead of traditional weapons/armor, I use YEP_EquipCore to let a single actor (the "party") equip warriors (berserker, archer, giant, etc.) into 8 equipment slots. All warriors are created as armor with the same equipment type ID (e.g., ID 2). This works fine: stats sum up, and I can equip/unequip them.
What I need:
I want the player to see their party visually:
- Portrait in menus and battle: Replace the actor's standard face with a single composite portrait dynamically generated from small icons representing the warriors currently equipped in the 8 slots.
- Positioning: Icons should be arranged in a grid (e.g., 2 rows × 4 columns). Empty slots show nothing.
- Updating: The portrait should update whenever the party composition changes (e.g., after closing the equip menu).
- I tried using the "Control Variables → Game Data" event command, but I couldn't find an option that returns the ID of an equipped item (only inventory counts).
- I attempted scripts like $gameActors.actor(1).equips()[0].object.id to store IDs in variables. It works on the map, but in battle events or common events called from the menu, the variables remain 0 even though items are equipped . I suspect I'm missing something about execution context.
- The main roadblock: I can't reliably get the IDs of equipped warriors into variables (1–8) to then use conditional branches to show different pictures.
- What is the proper, stable way to retrieve the item IDs from all 8 equipment slots into variables (e.g., variables 1–8)? I need an event or script that runs when closing the equip menu and before battle starts.
- Is there a plugin or approach you'd recommend for dynamically composing a single portrait from these variables? I've heard about layered graphics plugins (like SAN_ActorGraphicsReactor), but I'm not sure they can combine 8 independent pieces.
- Alternatively, would it be simpler to just show the warrior icons as separate pictures on the battle screen via "Show Picture" commands and update them through a common event? If so, what's the best way to ensure these pictures update correctly when switching actors in battle?
Thanks in advance!