so, all is in the title
i habitually declare variables in top of global script like:
int hour;
or
int hour=1;
but it's only works with code in the global script, i can't use them in rooms
so for each new variable i need in room (like, if the player have done a certain action, the "action" variable, will increase of one etc.)
i had to create it with the interaction editor/new action, select "variable is set to a certain value" and "edit variables" in the "change" button and finally create a new variable in that window
aw
so if you see what i mean, it's a very complicated method to do that, is there any easiest way in ags to do that? (i made some searches in the forum and in the notice but i found nothing interresting)
like create it in script with a simple line?
thanks!
i habitually declare variables in top of global script like:
int hour;
or
int hour=1;
but it's only works with code in the global script, i can't use them in rooms
so for each new variable i need in room (like, if the player have done a certain action, the "action" variable, will increase of one etc.)
i had to create it with the interaction editor/new action, select "variable is set to a certain value" and "edit variables" in the "change" button and finally create a new variable in that window
aw
so if you see what i mean, it's a very complicated method to do that, is there any easiest way in ags to do that? (i made some searches in the forum and in the notice but i found nothing interresting)
like create it in script with a simple line?
thanks!