If you access a part of an array that you have not stored anything in yet, then Warcraft may crash or people may disconnect. The advantage is that you can use functions, like Unit would be Unit. For example without an array you could have separate variables named Unit1 Unit2 and Unit3, or you could have one array, and access it through Unit, Unit, and Unit. Reals are numbers with decimals (-12.0, -3.2, 0.0, 5.2.)Ī string is a group of characters ("dog", "cat", "dfsf dsfsdf sd46t4")Īn array is a way to store more than one value in a single variable. Integers are numbers without decimals (.-2, -1, 0, 1, 2.) What are integers, reals, booleans, and strings?
Some triggers have no events, and are instead called from other triggers. If you have many events the trigger will run each time any of the events happen.
You can do things like create units, run computer AIs, or give units orders.Įvents decide when the trigger will run. Then in your web browser scroll down the menu until you get to the section named "The Trigger Editor". In the World Editor go to "Help->Warcraft III World Editor Help.". Your text will be much easier to read if you add to the start and to the end. Select your trigger and go to "Edit->Copy As Text". How do I copy and paste my triggers into a forum post?