In the quest script have the variable as “public static bool okay = false;” without the quotes.
Inside of your dialog script put “if(Gui.Button…) questSystem.okay = true;” also without the quotes.
It is this way for both UnityScript and C#, the only difference is in C# one must explicitly state PUBLIC as variables are private by default, whereas in UnityScript they are public by default.