

Press Add to add a new variableĪfter pressing it a new window should appear, you can select a name for it under Variable name: and select its type under Variable type:, there are 10 of them, but for now I'll only explain how to use string (text), integer (number without a fractional component), real (number with a fractional component) and bool (used for creating true or false statements) 3.

Now you should be able to see a window with multiple tabs that can be pressed, Add for adding new variables, Edit for editing, Del for deleting and Up and Down to move them. Choose on the side toolbar Variables, you can find it under Triggers tab Note: You will need a working singleplayer mission before you start 1. Note: Before reading this make sure that you know basics about creating triggers and other things related to them (events, actions, conditions), if not then check the links above How to create a variable

Variables in mission editor are used to store information like text, numbers or booleans used for creating true or false statements, they can be used to optimize code of your mission and also to create things that are normally impossible without using them. 2.1.4 Creating triggers that give a number to b_area_xx_int variables and keep checking them until the mission ends.2.1.3 Creating triggers that checks all areas at the start of mission.2.1 Creating a set of triggers that checks multiple areas for units.1.2 Ways of storing information in variables.
