@DATABASE GRAC V2 TUTORIAL @$VER 1.0 (9/6/97) © 1997 Andy Gibson @node main "FLAGS" Flags are a little bit confusing to follow in GRAC and I'll try and explain them the best I can for you here. Basically you should think of a flag as an on/off switch if you like. You can easily make objects vanish from the screen by switching their flag off. Flags are associated to everything in GRAC that you want to use. Flags can be used to stop a character walking on a zone and all sorts of weird puzzles etc. The best way to get to grips with flags is to follow my tutorial on creating a GRAC game. @{" " link "GRAC_Tutorial.Guide/main"} TUTORIAL Via the tutorial I'll be showing you how to use flags in your game for a few things. But please note that flags can be used in many different ways, not just for the examples I give. In GRAC there are a total of 1000 flags for you to use and abuse! Flag 0 cannot be altered by you though. It is a preset set to TRUE (or ON if you prefer) so that all walk zones etc are ON by default. You should never alter flag zero and to be honest, you never will! As for flags 1-999, well they are all yours to do with as you wish. Flags can hold any value you like such as 1,2,3,4 etc etc etc. Even negative numbers too. It doesn't matter what you set the value of a flag to either when working inside a script. However, flags associated with objects or zones do require to have either a value of 0 for false or a negative number to make them true (On). eg If you are using Flag 1 for an object such as a coin, it's original value would be 0, but you should make the value as -1. This way, when a player picks up the object, the object will be able to disappear from the screen. The same applies to all all objects which you want to be inventory items. (Objects which can be picked up). Let's say that in your room you have three items you wish the character to pick up. A Rock, A Match and a Torch. Simply apply the following values to each of them like so... Rock -1 Match -2 Torch -3 This must be done via the @{b}ROOMS@{ub} - @{b}FOREGROUND OBJECTS@{ub} screen. @{" " link "GRAC_Obj_Foreground.Guide/main"} FOREGROUND OBJECTS It's best to have a bit of paper beside you while creating a GRAC game and keep note of all flags used. This way you will be able to return to your game in a few weeks and know exactly which flag is used for which object etc. For further details on flags, you can check out page 32-33 of your GRAC manual also. @endnode