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.
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!
===========
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.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!