Format of the code examples
From EU2Wiki
In an attempt to be easy to read and understand, the code examples in the "Modding" chapters have the following style conventions:
- Important keywords are bold:
event = {
id = 94001 # Paradox 1001
trigger = {
NOT = { countrysize = 30 }
}
random = yes
name = "EVENTNAME1"
desc = "EVENTHIST1"
action_a = {
name = "OK"
command = { type = revolt which = -1 }
}
}
- Keywords that are mentioned in the accompanying text have yellow background:
event = {
id = 94001 # Paradox 1001
trigger = {
NOT = { countrysize = 30 }
}
random = yes
name = "EVENTNAME1"
desc = "EVENTHIST1"
action_a = {
name = "OK"
command = { type = revolt which = -1 }
}
}
"Random = yes" means that the event is a random type event. This means that it happens at unpredictible times. And also unlimited number of times (the non random events happens only one time and then never more).
- When a part of the code example is replaced with a symbolic name (e g it is a block of code) that is explained later in the page, it's in italic and have blue background:
event = {
id = 94001 # Paradox 1001
< trigger-codeblock >
random = yes
name = "EVENTNAME1"
desc = "EVENTHIST1"
action_a = {
name = "OK"
command = { type = revolt which = -1 }
}
}
- Values that are supplied by the user (coder) are sometimes marked with a green background to be distinguished from the keywords (this is not done for keywords with a very restricted set of values, e g "random" that have only "yes" and "no" as values):
event = {
id = 94001 # Paradox 1001
trigger = {
NOT = { countrysize = 30 }
}
random = yes
name = "EVENTNAME1"
desc = "EVENTHIST1"
action_a = {
name = "OK"
command = { type = revolt which = -1 }
}
}

