• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - D&D Global variables error (DnD)

G

G3ronimo

Guest
Hello everyone.

I am really desperate. I keep getting error while using DnD system for global variables. The structure is very simple so I have no idea what am I doing wrong.

I set global variables in object

pic1.jpg

and then I am trying to check them in step event

pic2.jpg

and I always get this error

pic3.jpg

The same happens when I am trying to draw values of global variables via draw event.

Any suggestions?
Thank you.
 

FrostyCat

Member
You need to refer to them from the If Variable actions with the global. prefix (i.e. global.life, global.enemy, global.gold). The same must be done in all actions using these global variables, except for Set Global Variable.
 
Top