Search found 25 matches

by Trashrat
Wed Oct 02, 2024 1:03 pm
Forum: Dialogue System for Unity
Topic: Choice enables gameobject in next scene
Replies: 3
Views: 76

Re: Choice enables gameobject in next scene

Perfect thank you, that seems to be working great!
by Trashrat
Wed Oct 02, 2024 4:47 am
Forum: Dialogue System for Unity
Topic: Choice enables gameobject in next scene
Replies: 3
Views: 76

Choice enables gameobject in next scene

Hi there, I'm trying to impliment a system where a choice made in the dialogue will enable/disable a gameobject in the next scene, or even three/four plus scenes in advance. So far I have a boolean variable for what choice was made but now am trying to think what would be the best way to have the de...
by Trashrat
Thu Aug 01, 2024 5:37 am
Forum: Dialogue System for Unity
Topic: Enabling script on seperate object on variable check
Replies: 15
Views: 1059

Re: Enabling script on seperate object on variable check

Hi Tony,

Thank you so very much, that works perfetly using Scene Events and is very easy to set up. Thank you again for your time and your help, it's greatly appreciated.
by Trashrat
Wed Jul 31, 2024 12:25 pm
Forum: Dialogue System for Unity
Topic: Enabling script on seperate object on variable check
Replies: 15
Views: 1059

Re: Enabling script on seperate object on variable check

Hi Tony, brilliant thank you, I almost have it perfect now by registering a function. So now I can enable and disable the outline on a dialogue node, but unfortuantely can only get that working on the item the dialogue is taking place on. So say I wanted to have a dialogue option trigger if it can b...
by Trashrat
Wed Jul 31, 2024 3:14 am
Forum: Dialogue System for Unity
Topic: Enabling script on seperate object on variable check
Replies: 15
Views: 1059

Re: Enabling script on seperate object on variable check

On dialogue nodes, so using the script feature to set a variable to true or false etc on certain nodes.
by Trashrat
Tue Jul 30, 2024 3:22 pm
Forum: Dialogue System for Unity
Topic: Enabling script on seperate object on variable check
Replies: 15
Views: 1059

Re: Enabling script on seperate object on variable check

Hi Tony, Unfortunately it all seems to be working fine when adding the variables and when removing them on destroy; it's just that OnVariableChanged isn't getting called. i'm assuming this would happen when there is a change in the variable? I have included my code below, as well as the relevant sec...
by Trashrat
Tue Jul 30, 2024 2:17 pm
Forum: Dialogue System for Unity
Topic: Enabling script on seperate object on variable check
Replies: 15
Views: 1059

Re: Enabling script on seperate object on variable check

You're right, that was absolutely the probelm there. Now all updated and that seems to be ok. Unfortunately OnVariableChanged doesn't seem to be getting called at any point and I can't currently understand why. It may have something to do with how my outline script is being used, as it currenlty sit...
by Trashrat
Tue Jul 30, 2024 1:04 pm
Forum: Dialogue System for Unity
Topic: Enabling script on seperate object on variable check
Replies: 15
Views: 1059

Re: Enabling script on seperate object on variable check

Hi Tony, that's fantastic, and thank you so much for your help. Unfortunately I am getting a "Assignment does not contain a definiation for" error on both Monitored Variables and Variable Changes. The Assignment class in my folder only seems to have a methodnamed Execute and SetKeyValue. T...
by Trashrat
Tue Jul 30, 2024 11:22 am
Forum: Dialogue System for Unity
Topic: Enabling script on seperate object on variable check
Replies: 15
Views: 1059

Re: Enabling script on seperate object on variable check

Thank Tony, I seem to have something working now. I only worry if the way I have this is unoptimal. I public class EnableOutline : MonoBehaviour { Outline outline; [SerializeField] private bool canShowOutline = true; [SerializeField] private string variableName = ""; [SerializeField] bool ...
by Trashrat
Tue Jul 30, 2024 8:20 am
Forum: Dialogue System for Unity
Topic: Enabling script on seperate object on variable check
Replies: 15
Views: 1059

Enabling script on seperate object on variable check

Hi there, I have an outline script that runs on gameobjects that I want to show as interactable, and sometimes items are only interactable after certain conditions have been met. How would I enable a script, say "Enable Outline" on an object, based on the condition of a dialogue manager va...