godot-dialogtreetools icon indicating copy to clipboard operation
godot-dialogtreetools copied to clipboard

Add functionality to each choice

Open ghost opened this issue 5 years ago • 1 comments

Hi StraTon Is there a way I can set variables or ececute functions whenever a choice is made? For instance, let's assume we have 3 choices, A B and C If A is chosen, the player loses points; when B is chosen, the player gains points; when C is chosen, the make_friend() function is called.

ghost avatar Dec 14 '19 16:12 ghost

Hi @ChaqSilent. This tool is kind of... left behind, I'm afraid. The functionality you're asking for was expected to have, but to be honest I can't maintain it anymore. Thus, I redirect you to a very similar tool that is also under MIT Licence : https://github.com/LittleMouseGames/whiskers It should be able to do what you want with a few modifications.

StraToN avatar Dec 16 '19 16:12 StraToN