Heyhey,
I'm trying to implement cosmetic variations of individual Combatants. For Portraits and Prefab, I'm using conditionals driven by variables. But I couldn't find anything comparable for the Icon Sprite.
In other words: Is there a way to have conditional Icons on Combatants?
Then in your HUD, you can create a portrait object for each portrait type (so for example, assume you want to show "Happy" portrait but have 3 skins so you'd have "HappyNinja" "HappyPirate" "HappyTaxAccountant"). Then on each of these portrait parents, put a HUD Condition component using the same conditions as you do the conditional prefabs and it'll automatically turn them on/off for you based on those conditions.
(You can heavily abuse HUD Conditions for other things outside of this too, it'll turn off all child objects, I use this to show different backgrounds, etc. based on a single set of conditions)
The Icons themselves are not used in HUDs, but in the image object of buttons for the Battle Menu et al. (bottom right):
For these I'm using the Combatant's Prefab as an Icon Sprite. I'm guessing ORK pulls the image from the prefab thumbnail?
For buttons, they can also use HUD content to show additional stuff like a portrait. E.g. your battle menu's Content Layout settings can add that via the HUD Type setting. Though, for buttons representing combatants (e.g. in targeting menu), this is handled by the Combatant Choice Layout :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Which brings me to my other question:
I have an HUD that displays minimal information about the self target. The HUD itself can be toggled using Input Keys bound to Rewired actions to show extended information including status effects from passive abilities:
Additional information is displayed through a Tooltip HUD, but only for players using the mouse. I'd like for this to also work on controller. As an example, BG3 has a separate "inspect" screen with selectables and corresponding tooltips:
If I wanted to replicate something like this, would this need to be a menu screen with HUD elements (like with the portraits) or is there a way to have for example a list of status effects have selectable elements so they can be navigated through and thus display a tooltip, too?
The different menu screen parts can be used show all kind of information, either specialized on abilities, inventory, etc. or a combined one via the Multi Content menu part.
An alternative could be using a schematic and displaying them via a Selected Data Choice node (dialogue). You'll first have to store all the content you want to display into selected data, e.g. via Select Ability or Select Equipment nodes.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Speaking of those, I've been trying to implement an option menu with submenus both for the field menu and start menu. For the field parts, it works as it should:
But for the Start Menu, I couldn't find a dedicated "Menu Screen" Option Type, so I triggered it through a schematic instead:
Here the Options Overview Menu opens without a problem, too. But once I try to navigate to an option-related submenu, I get the following error:
Could this be because the menu screen is opened via a schematic?
Oh and, bonus questions:
I'd like to call menu screens via keys while in the battle menu and during conversations. But from what I've read here, menu screens can only be called if the player control isn't blocked. Is there a way to get around this?
You can call menu screens via schematics used by global machines (Base/Control > Global Machines), which can be started via input keys as well :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
At the moment, I have audio volumes right next to gameplay and debug options (last two entries):
As for calling menu screens: That's great! I'll give Global Machines a shot then and get back if I run into any trouble.
Thank you very much for your help, as always.
There are plans for better option handling, but no idea when that'll come :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Last question: I'm using the 2D "Z-Rotation to Animator Parameter" thing to drive combatant animations in a lot of different places. I absolutely love the implementation you did!
Though there's a couple of hiccups with 3rd party stuff here and there, so I wanted to take a deeper look at it. As far as I understand, it's driven by the Simple Move Component and the Combatant Component, right? Is there anything else at play – apart from the Animator Component?
E.g. for the player, the player controls moving and rotating the game object, or movement components doing the same thing for other combatants. Also, schematics using movement/rotation nodes, other scripts changing rotation, physics, etc.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!