I want to achieve a function similar to this, but I'm not sure if Ork can do it.
Here's how:

For example, when I click the HUD button, I want to initiate a turn-based battle with a random enemy directly through blueprints or other methods.
  • edited September 30
    I think I've solved this issue. I had help from a friend on Discord who guided me to directly use Battle Components, and the button triggers a call to its underlying mouse-down event.

    ===========


    I currently have an issue where I have 10 buttons, and each time the page refreshes, enemies are randomly generated. The text of the enemy buttons = the enemy's name, and clicking the button triggers a battle with that enemy.
    Post edited by ranwang520 on
  • How can I map the names to the text of the buttons?
  • Depends on the setup - if you e.g. use combatants (e.g. via Add Combatant component) instead of Battle components, you can use HUD elements to display the name. Using battles can't use that, though - the combatants will only be created when the battle starts ...
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.