Global Variables called by a room script

Started by Ghostlady, Wed 27/04/2005 21:32:51

Previous topic - Next topic

Ghostlady

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.
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven
Haunting at Cliffhouse

MrColossal

Check out GetGlobalInt() and SetGlobalInt() in the manual I'm pretty sure that's all you need.

Eric
"This must be a good time to live in, since Eric bothers to stay here at all"-CJ also: ACHTUNG FRANZ!

TerranRich

It's in the BFAQ: http://bfaq.xylot.com/#coding09

I used my browser's "Find" command and searched for "global". Simple as that.
Status: Trying to come up with some ideas...

SMF spam blocked by CleanTalk