Controlling variable from event call

Say I have this in the scripts database:

module figtree figbar = false...and I want to change figbar to true via the event command.

I tried;

qS3m0CD.png


MzJZQKP.png


Both to no avail
The code for FigTree will need to be something like this :

Code:
# Module/Class names must be a constant; at least the first letter must be capitalizedmodule FigTree    class << self    # Make the variable 'figbar' accessible and writable from outside the module    attr_accessor :figbar  end    # Set the variable 'figbar'  @figbar = false  end
Code:
# Change the variableFigTree.figbar = true
Ohh. I see thanks again man.

Original thread: https://forums.rpgmakerweb.com/threads/controlling-variable-from-event-call.40702/