Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ghostlady on Wed 27/04/2005 21:32:51

Title: Global Variables called by a room script
Post by: Ghostlady on Wed 27/04/2005 21:32:51
I am trying to use one or more global variables in a room script.  I am a little confused about if I need to use the import/export or do I use some kind of global function.  These global variables will be set to zero in the room script and need to go back as zero to where I am after the "run script" function.
Title: Re: Global Variables called by a room script
Post by: MrColossal on Wed 27/04/2005 23:29:07
Check out GetGlobalInt() and SetGlobalInt() in the manual I'm pretty sure that's all you need.

Eric
Title: Re: Global Variables called by a room script
Post by: TerranRich on Sat 30/04/2005 03:59:30
It's in the BFAQ: http://bfaq.xylot.com/#coding09

I used my browser's "Find" command and searched for "global". Simple as that.