If you are confused on the Structure, here is some Example Trees. (Copy is a new Function.) When Copying or Deleting, you need to have the Condition/Effect selected in the list for it to work properly. The Second Set of Buttons allows you to Add, Copy, or Delete Conditions/Effects.(Copy is a new Function.) When Deleting, Copying, or Viewing, you need to have a Trigger selected in the list for it to work properly. The First Set of Buttons allows you to Create, Delete, Copy, or View Triggers.Blue Areas: (Fourth Sections/Inside First/Second Sections).
Clicking on any Trigger will show all available Options/Settings for it in this Area as well. Clicking on any Conditions/Effects will show all available Options/Settings for it in this Area. This is the Editing Area for Triggers/Conditions/Effects.Clicking on a Trigger in the First Section will show all Conditions/Effects within that Trigger. This is the List of Conditions/Effects for that specific Trigger.Yellow Area: (Second Section/Middle-Left).All of the Scenarios created Triggers are here. Orange Area: (First Section/Top Middle-Left).(I have highlighted sections in color to explain the different sections.) Now let's take a look at the Triggers Menu. Although, I will say that there is a ton more you can edit than before. There is so many more Effects and a few new Conditions.
#Aoe 2 tutorial code
Let's you code your own functions for scenario triggers.Let's you define your own variables that you can use/edit as needed.
Just don't divide by 0 or the game will crash. Examples: Set, Add, Subtract, Multiply, and Divide.