Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

I just got "Parser error: Unexpected assign" in Godot when trying to write to a global variable in an execute block.

My execute did this:

G.player.relationships.pharmacist.value += 5

Is this supposed to not be possible, or is there a bug?

Ran into the same thing found out you just have to write it like this GlobalNameHere.set("var" , true)

Ah, thanks. I ended up making functions for the things I needed to change but that's easier