I'm not quite sure what you are trying to do.
A global variable is usually a variable that is valid in all savegames. For example, if you add an overall statistic to cover all your battles in all savegames. Or if you want to do a New Game+ and take some stats from a previous Savegame with you.
There are plugins for that. Quick search found this, maybe there are free ones aswell.
Needs global scope data? Here you are :D
nebula-games.itch.io
Your explanation sounds more like variables that are used during your game (e.g. if your Charisma gets higher, you can use more dialogue options). That is already the purpose of variables.
im trying to make a function in the game that makes certain dialogue options highen or lower a variable such as happiness for the main character
the lower the happiness - different dialogue options will show
I guess global variable is wrong wording, I more of meant to just say that the variable is there for the entirety of the gameplay
As for a Choice only showing up based on a condition, you'd likely need a plugin for that to work.
so, there is no possibility for making something like
happiness - variable
if happiness = <50 then
blah blah dialogue options
if happiness >50 then
blah blah dialogue options
or
if example choice selected
then
happiness +5
sorry if this sounds really hazy, it's almost 3 am for me
if its not possible, what plugin would you recommend? or is it completely not possible
Have you done tutorials? Such as the ones included with MZ?
quite a long time since; i guess i should refresh them again