|Values:||ERROR – No value types set! Please Flag template!this page and fix the|
This entry was copied from DeeZire's Red Alert 2 and Yuris Revenge INI Editing Guide for the sake of completeness. As it is not our intention to rip off DeeZire's work, this article is subject to a re-write and update with the latest community knowledge.
For further information, please read Inclusion of The Guide.
This section defines all of the local variables - variables which are used to test for specific conditions only on this map. This is opposed to global variables which are defined in the RULES file and which can 'hold' their value and thus be used throughout many maps (for example in a campaign). TIP: bear this in mind with global variables - they will carry their last values from any previous maps which used them into the current map and could cause chaos if you do not remember this.
Whether global (throughout the campaign) or local (specific to this map only), such variables use the games boolean logic and thus can only exist on one of two states at any time - SET (1) or CLEAR (0).
All global and local variables are clear (have a value of '0') until set. They may be set (set to '1') or cleared (set to '0') by an Action or a ScriptType command (see the AI.INI Guide) however they can only be tested (i.e. have their current value queried) by an Event=.
You should use this section to define all local variables which you wish to use on your map. This allows you, through the relevant Event, to test that conditions are being met thus make things happen through an Action when those conditions are met (or not as the case may be). Each local should be listed here, numbered in sequence starting at '0'. A typical entry looks like this;-