Condition Icon in Response Button
Posted: Sat Nov 07, 2020 9:27 am
Hello!
The scenarios in my game have multiple choices the player can activate in response to the situation.
In some scenarios, the choices' consequences depend on the player's stats (Strength, Wisdom, Charm), and therefore can have different outcomes.
I'd like to indicate this by having an image inside the response button with the icon of the stat taken into consideration with that choice.
So I put an image in the Response button template with the Strength icon in it, that I would like to activate only when that specific istantiated response button is a choice that evaluates Strength for the outcome.
I thought I might indicate in the "Description" field of the entry, which is now unused, what stat I want to show the icon of when the button is shown to the player.. for example by writing STR in it.
_
__________
_
I tried starting a custom script in the Response Button template (my UI system is still basically the same as the StandardDialogueUI that came with the Dialogue System plugin), where I try to access the dialogue entry pointed by the response button, to read for example the "Description" field where I might indicate which stat do I want to show the icon of, but I cannot seem to find the way the button knows which entry to point to
Is this even an idea that makes sense?
Is there any other way to do this without coding?
I don't mind adding things like scripts or sequencer commands to every single entry in my game that needs an icon, to show it, as long as it does what I need...
The scenarios in my game have multiple choices the player can activate in response to the situation.
In some scenarios, the choices' consequences depend on the player's stats (Strength, Wisdom, Charm), and therefore can have different outcomes.
I'd like to indicate this by having an image inside the response button with the icon of the stat taken into consideration with that choice.
So I put an image in the Response button template with the Strength icon in it, that I would like to activate only when that specific istantiated response button is a choice that evaluates Strength for the outcome.
I thought I might indicate in the "Description" field of the entry, which is now unused, what stat I want to show the icon of when the button is shown to the player.. for example by writing STR in it.
_
__________
_
I tried starting a custom script in the Response Button template (my UI system is still basically the same as the StandardDialogueUI that came with the Dialogue System plugin), where I try to access the dialogue entry pointed by the response button, to read for example the "Description" field where I might indicate which stat do I want to show the icon of, but I cannot seem to find the way the button knows which entry to point to
Is this even an idea that makes sense?
Is there any other way to do this without coding?
I don't mind adding things like scripts or sequencer commands to every single entry in my game that needs an icon, to show it, as long as it does what I need...