Events: Difference between revisions
Appearance
en>DCoder Hmm, this makes more sense than before |
en>DCoder m Added mapping sidebar |
||
| Line 1: | Line 1: | ||
{{WrongTitle|[Events]}} | {{WrongTitle|[Events]}} | ||
{{SideBar|Map-specific INI sections|Template:Mapping}} | |||
Events are, obviously, conditions that, once met, fire their corresponding [[Maps/Triggers|Trigger]]. Different games have different available Events and code for them. | Events are, obviously, conditions that, once met, fire their corresponding [[Maps/Triggers|Trigger]]. Different games have different available Events and code for them. | ||
Revision as of 15:38, 13 September 2006
Events are, obviously, conditions that, once met, fire their corresponding Trigger. Different games have different available Events and code for them.
Section
TD/CO
Section didn't exist, events were specified inline in the [Triggers] section with only one condition per trigger.
RA/CS/AM
Section didn't exist, events were specified inline in the [Triggers] section with up to two conditions per trigger.
TS/FS
The typical [Events] section looks like this:
[Events] ID=NUM,E1,E1P1,E1P2 ID1=NUM2,E1,E1P1,E1P2,E2,E2P1,E2P2
The meanings are as follows:
| String | Meaning |
|---|---|
| ID | The Event's ID. Has to be the same as the Trigger's ID. |
| NUM | Amount of conditions in this Event. |
| E1 | The first condition (its index in the Available Events list) |
| E1P1 | The first parameter for E1, defaults to 0 |
| E1P2 | The second parameter for E1, defaults to 0 |
Additional conditions are listed in the same manner.
RA2/YR
The typical section looks exactly like in TS, except certain conditions take on a third parameter - a string:
[Events]
ID=NUM,E1,E1P1,E1P2
ID1=NUM2,E1,E1P1,E1P2,E1P3,E2,E2P1,E2P2
| String | Meaning |
|---|---|
| ID | The Event's ID. Has to be the same as the Trigger's ID. |
| NUM | Amount of conditions in this Event. |
| E1 | The first condition (its index in the Available Events list) |
| E1P1 | The first parameter for E1, defaults to 0 |
| E1P2 | The second parameter for E1, defaults to 0 |
| E1P3 | The third (optional) parameter for E1 |
Again, additional conditions are specified in the same manner.