Search found 13 matches

by olikante
Mon Feb 22, 2021 12:08 pm
Forum: Dialogue System for Unity
Topic: Variable increments when I press any button, not the ones I want to.
Replies: 22
Views: 427

Re: Variable increments when I press any button, not the ones I want to.

Ok, I will check it out.

I'm truly impressed by the support.

:)

Have a nice day!
by olikante
Mon Feb 22, 2021 1:59 am
Forum: Dialogue System for Unity
Topic: Variable increments when I press any button, not the ones I want to.
Replies: 22
Views: 427

Re: Variable increments when I press any button, not the ones I want to.

Yeah... I know why it is happening. It increments on disable. Other buttons lead to different scenes, so they are disabling my flower and incrementing my variable. It is a shame that it can't be on click or something else. I need to figure out some other way to use it in my setup...
by olikante
Sun Feb 21, 2021 3:37 pm
Forum: Dialogue System for Unity
Topic: Variable increments when I press any button, not the ones I want to.
Replies: 22
Views: 427

Re: Variable increments when I press any button, not the ones I want to.

Thank you for creating the scene. Yes, it works in your example. My buttons are set up exactly like yours, but it is not working. Probably the problem is somewhere else... Maybe I changed some setups or... I have no clue. https://ibb.co/7K4xDXc I will try to rebuild the scene tomorrow. If it will he...
by olikante
Sun Feb 21, 2021 1:59 pm
Forum: Dialogue System for Unity
Topic: Variable increments when I press any button, not the ones I want to.
Replies: 22
Views: 427

Re: Variable increments when I press any button, not the ones I want to.

Yes, I have exactly that setup. My objects are appearing and disappearing exactly as I want. I have no problem with it. Increment On Destroy is also on the object I want to use to influence my variable. But as I said, each UI button in the scene is influencing Increment On Destroy script. That is my...
by olikante
Sun Feb 21, 2021 1:46 pm
Forum: Dialogue System for Unity
Topic: Variable increments when I press any button, not the ones I want to.
Replies: 22
Views: 427

Re: Variable increments when I press any button, not the ones I want to.

I did all of it and the effect was the same. BUT! I found out that if I will set on the component "Increment On Destroy" Increment On "destroy" the thing is reacting on the button that takes us to another scene because it is destroyed. If Increment On is disabled, it interacts wi...
by olikante
Sun Feb 21, 2021 10:44 am
Forum: Dialogue System for Unity
Topic: Variable increments when I press any button, not the ones I want to.
Replies: 22
Views: 427

Re: Variable increments when I press any button, not the ones I want to.

Rather UI button.

I hope it is obvious that the flower in the green area is also a button.
by olikante
Sun Feb 21, 2021 10:30 am
Forum: Dialogue System for Unity
Topic: Variable increments when I press any button, not the ones I want to.
Replies: 22
Views: 427

Re: Variable increments when I press any button, not the ones I want to.

1. I created a quest about collecting (clicking on specific UI buttons in the scene) objects. https://ibb.co/v3mqG2X 2. I defined a variable to track the quest's progress. https://ibb.co/LCgY5dq 3. The user is entering a dialogue that starts a quest. It works. 4. The user needs to go to another scen...
by olikante
Sun Feb 21, 2021 9:42 am
Forum: Dialogue System for Unity
Topic: Variable increments when I press any button, not the ones I want to.
Replies: 22
Views: 427

Re: Variable increments when I press any button, not the ones I want to.

1. I created a quest about collecting (clicking on specific UI buttons in the scene) objects. https://ibb.co/v3mqG2X 2. I defined a variable to track the quest's progress. https://ibb.co/LCgY5dq 3. The user is entering a dialogue that starts a quest. It works. 4. The user needs to go to another scen...
by olikante
Sun Feb 21, 2021 9:26 am
Forum: Dialogue System for Unity
Topic: Variable increments when I press any button, not the ones I want to.
Replies: 22
Views: 427

Re: Variable increments when I press any button, not the ones I want to.

It just makes it easier to communicate that click event to other scripts as well.

However, do you know what is the exact problem with the situation here?
Why is the variable reacts on each UI button even if they don't have any components connected to the dialogue system?
by olikante
Sun Feb 21, 2021 9:15 am
Forum: Dialogue System for Unity
Topic: Variable increments when I press any button, not the ones I want to.
Replies: 22
Views: 427

Re: Variable increments when I press any button, not the ones I want to.

It is set to 5 for testing reasons, but my problem is that I would like that variable to change only when I click on the button in the green frame, but it increments when I click on buttons in the pink frames.

Image