Hey Cromcrom,
I was able to get a script flag working. I created it as follows:
![[Linked Image]](https://i.imgur.com/QEGPp9H.jpg)
The only part not shown is a dialog variable called Check50Gold_amount, which is pretty straightforward to create and I just set an integer at 50. One dialog node checks that the flag is set and the other checks that it is not set. Also, create the variable before you create the script or it will throw an error.