ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
Actions (maps)
This page should correctly be named "[Actions]"; it is wrong due to technical restrictions.
Section
Tiberian Dawn
Section didn't exist, actions were specified inline in the [Triggers] section with only one action per trigger.
Red Alert, Counterstrike, Aftermath
Section didn't exist, actions were specified inline in the [Triggers] section with up to two actions per trigger.
Tiberian Sun, Firestorm
The typical [Actions] section looks like this:
[Actions] ID=NUM,A1,A1P1,A1P2,A1P3,A1P4,A1P5,A1P6,A1P7
The meanings are as follows:
String | Meaning |
---|---|
ID | The Action's ID. Has to be the same as the Trigger's ID. |
NUM | Amount of actual actions in this Action. |
A1 | The first action (its index in the Available Actions list) |
A1P1 | The first parameter for A1, defaults to 0 |
A1P2 | The second parameter for A1, defaults to 0 |
A1P3 | The third parameter for A1, defaults to 0 |
A1P4 | The fourth parameter for A1, defaults to 0 |
A1P5 | The fifth parameter for A1, defaults to 0 |
A1P6 | The sixth parameter for A1, defaults to 0 |
A1P7 | The seventh parameter for A1, defaults to 0 |
Additional actions are listed in the same manner. A single Action can contain about 20 actions (the parser stops reading after 512 characters).
Red Alert 2, Yuri's Revenge
The typical section looks exactly like in TS:
[Actions] ID=NUM,A1,A1P1,A1P2,A1P3,A1P4,A1P5,A1P6,A1P7 ID=NUM,A1,A1P1,A1P2,A1P3,A1P4,A1P5,A1P6,A1P7,A2,A2P1,A2P2,A2P3,A2P4,A2P5,A2P6,A2P7
The meanings are as follows:
String | Meaning |
---|---|
ID | The Action's ID. Has to be the same as the Trigger's ID. |
NUM | Amount of actual actions in this Action. |
A1 | The first action (its index in the Available Actions list) |
A1P1 | The first parameter for A1, defaults to 0 |
A1P2 | The second parameter for A1, defaults to 0 |
A1P3 | The third parameter for A1, defaults to 0 |
A1P4 | The fourth parameter for A1, defaults to 0 |
A1P5 | The fifth parameter for A1, defaults to 0 |
A1P6 | The sixth parameter for A1, defaults to 0 |
A1P7 | The seventh parameter for A1, defaults to 0 |