Events/RA: Difference between revisions
en>DCoder Restyled again |
en>DCoder m More borders |
||
| Line 7: | Line 7: | ||
! style="width: 5em;" rowspan=2 | Code {{Fnl|1}} | ! style="width: 5em;" rowspan=2 | Code {{Fnl|1}} | ||
! rowspan=2 | Event | ! rowspan=2 | Event | ||
! style="text-align: center;" colspan=2 | Parameter types | ! style="text-align: center;" style="border-bottom: 1px solid #000;" colspan=2 | Parameter types | ||
|- style="background: #ddd; border: 1px solid #000; border-width: 1px 0;" | |- style="background: #ddd; border: 1px solid #000; border-width: 1px 0;" | ||
! style="width: 6em; text-align: center;" | #1 (P1) | ! style="width: 6em; text-align: center;" | #1 (P1) | ||
| Line 16: | Line 16: | ||
| style="text-align: center;" | -1 | | style="text-align: center;" | -1 | ||
|- | |- | ||
| colspan=4 | No Event - cannot be activated | | style="border-bottom: 1px solid #000;" colspan=4 | No Event - cannot be activated | ||
|- | |- | ||
| {{Tt|1}} || {{Tt|Entered by}} | | {{Tt|1}} || {{Tt|Entered by}} | ||
| Line 22: | Line 22: | ||
| style="text-align: center;" | House# | | style="text-align: center;" | House# | ||
|- | |- | ||
| colspan=4 | House P2 enters attached building/celltag | | style="border-bottom: 1px solid #000;" colspan=4 | House P2 enters attached building/celltag | ||
|- | |- | ||
| {{Tt|2}} || {{Tt|Spied by}} | | {{Tt|2}} || {{Tt|Spied by}} | ||
| Line 28: | Line 28: | ||
| style="text-align: center;" | House# | | style="text-align: center;" | House# | ||
|- | |- | ||
| colspan=4 | House P2 sends a spy into attached building | | style="border-bottom: 1px solid #000;" colspan=4 | House P2 sends a spy into attached building | ||
|- | |- | ||
| {{Tt|3}} || {{Tt|Thieved by}} | | {{Tt|3}} || {{Tt|Thieved by}} | ||
| Line 34: | Line 34: | ||
| style="text-align: center;" | -1 | | style="text-align: center;" | -1 | ||
|- | |- | ||
| colspan=4 | Doesn't work | | style="border-bottom: 1px solid #000;" colspan=4 | Doesn't work | ||
|- | |- | ||
| {{Tt|4}} || {{Tt|Discovered by player}} | | {{Tt|4}} || {{Tt|Discovered by player}} | ||
| Line 40: | Line 40: | ||
| style="text-align: center;" | -1 | | style="text-align: center;" | -1 | ||
|- | |- | ||
| colspan=4 | House owning the attached object is discovered by the player | | style="border-bottom: 1px solid #000;" colspan=4 | House owning the attached object is discovered by the player | ||
|- | |- | ||
| {{Tt|5}} || {{Tt|House Discovered}} | | {{Tt|5}} || {{Tt|House Discovered}} | ||
| Line 46: | Line 46: | ||
| style="text-align: center;" | House# | | style="text-align: center;" | House# | ||
|- | |- | ||
| colspan=4 | House P2 is discovered by the player | | style="border-bottom: 1px solid #000;" colspan=4 | House P2 is discovered by the player | ||
|- | |- | ||
| {{Tt|6}} || {{Tt|Attacked by anybody}} | | {{Tt|6}} || {{Tt|Attacked by anybody}} | ||
| Line 52: | Line 52: | ||
| style="text-align: center;" | -1 | | style="text-align: center;" | -1 | ||
|- | |- | ||
| colspan=4 | Attached object is attacked by anybody | | style="border-bottom: 1px solid #000;" colspan=4 | Attached object is attacked by anybody | ||
|- | |- | ||
| {{Tt|7}} || {{Tt|Destroyed by anybody}} | | {{Tt|7}} || {{Tt|Destroyed by anybody}} | ||
| Line 58: | Line 58: | ||
| style="text-align: center;" | -1 | | style="text-align: center;" | -1 | ||
|- | |- | ||
| colspan=4 | Attached object is destroyed by anybody | | style="border-bottom: 1px solid #000;" colspan=4 | Attached object is destroyed by anybody | ||
|- | |- | ||
| {{Tt|8}} || {{Tt|Any event}} | | {{Tt|8}} || {{Tt|Any event}} | ||
| Line 64: | Line 64: | ||
| style="text-align: center;" | -1 | | style="text-align: center;" | -1 | ||
|- | |- | ||
| colspan=4 | Any event | | style="border-bottom: 1px solid #000;" colspan=4 | Any event | ||
|- | |- | ||
| {{Tt|9}} || {{Tt|Destroyed, Units, All}} | | {{Tt|9}} || {{Tt|Destroyed, Units, All}} | ||
| Line 70: | Line 70: | ||
| style="text-align: center;" | House# | | style="text-align: center;" | House# | ||
|- | |- | ||
| colspan=4 | All units of house P2 are destroyed (''does '''not''''' include civilian objects) | | style="border-bottom: 1px solid #000;" colspan=4 | All units of house P2 are destroyed (''does '''not''''' include civilian objects) | ||
|- | |- | ||
| {{Tt|10}} || {{Tt|Destroyed, Buildings, All}} | | {{Tt|10}} || {{Tt|Destroyed, Buildings, All}} | ||
| Line 76: | Line 76: | ||
| style="text-align: center;" | House# | | style="text-align: center;" | House# | ||
|- | |- | ||
| colspan=4 | All buildings of house P2 are destroyed (''does '''not''''' include civilian objects) | | style="border-bottom: 1px solid #000;" colspan=4 | All buildings of house P2 are destroyed (''does '''not''''' include civilian objects) | ||
|- | |- | ||
| {{Tt|11}} || {{Tt|Destroyed, All}} | | {{Tt|11}} || {{Tt|Destroyed, All}} | ||
| Line 82: | Line 82: | ||
| style="text-align: center;" | House# | | style="text-align: center;" | House# | ||
|- | |- | ||
| colspan=4 | All objects of house P2 are destroyed (''does '''not''''' include civilian objects) | | style="border-bottom: 1px solid #000;" colspan=4 | All objects of house P2 are destroyed (''does '''not''''' include civilian objects) | ||
|- | |- | ||
| {{Tt|12}} || {{Tt|Credits exceed}} | | {{Tt|12}} || {{Tt|Credits exceed}} | ||
| Line 88: | Line 88: | ||
| style="text-align: center;" | credits | | style="text-align: center;" | credits | ||
|- | |- | ||
| colspan=4 | HOUSE{{Fnl|2}} has at least P2 credits | | style="border-bottom: 1px solid #000;" colspan=4 | HOUSE{{Fnl|2}} has at least P2 credits | ||
|- | |- | ||
| {{Tt|13}} || {{Tt|Elapsed time}} | | {{Tt|13}} || {{Tt|Elapsed time}} | ||
| Line 94: | Line 94: | ||
| style="text-align: center;" | time | | style="text-align: center;" | time | ||
|- | |- | ||
| colspan=4 | (P2/10) minutes have passed in this mission | | style="border-bottom: 1px solid #000;" colspan=4 | (P2/10) minutes have passed in this mission | ||
|- | |- | ||
| {{Tt|14}} || {{Tt|Mission timer expired}} | | {{Tt|14}} || {{Tt|Mission timer expired}} | ||
| Line 100: | Line 100: | ||
| style="text-align: center;" | -1 | | style="text-align: center;" | -1 | ||
|- | |- | ||
| colspan=4 | Mission timer expired | | style="border-bottom: 1px solid #000;" colspan=4 | Mission timer expired | ||
|- | |- | ||
| {{Tt|15}} || {{Tt|Destroyed, Buildings, #}} | | {{Tt|15}} || {{Tt|Destroyed, Buildings, #}} | ||
| Line 106: | Line 106: | ||
| style="text-align: center;" | counter | | style="text-align: center;" | counter | ||
|- | |- | ||
| colspan=4 | Exactly P2 buildings owned by HOUSE have been destroyed (''does'' include civilian objects) | | style="border-bottom: 1px solid #000;" colspan=4 | Exactly P2 buildings owned by HOUSE have been destroyed (''does'' include civilian objects) | ||
|- style="background: #ddd; border: 1px solid #000; border-width: 1px 0;" | |- style="background: #ddd; border: 1px solid #000; border-width: 1px 0;" | ||
! style="width: 5em;" rowspan=2 | Code {{Fnl|1}} | ! style="width: 5em;" rowspan=2 | Code {{Fnl|1}} | ||
! rowspan=2 | Event | ! rowspan=2 | Event | ||
! style="text-align: center;" colspan=2 | Parameter types | ! style="text-align: center;" style="border-bottom: 1px solid #000;" colspan=2 | Parameter types | ||
|- style="background: #ddd; border: 1px solid #000; border-width: 1px 0;" | |- style="background: #ddd; border: 1px solid #000; border-width: 1px 0;" | ||
! style="width: 6em; text-align: center;" | #1 (P1) | ! style="width: 6em; text-align: center;" | #1 (P1) | ||
| Line 119: | Line 119: | ||
| style="text-align: center;" | counter | | style="text-align: center;" | counter | ||
|- | |- | ||
| colspan=4 | Exactly P2 units owned by HOUSE have been destroyed (''does'' include civilian objects) | | style="border-bottom: 1px solid #000;" colspan=4 | Exactly P2 units owned by HOUSE have been destroyed (''does'' include civilian objects) | ||
|- | |- | ||
| {{Tt|17}} || {{Tt|No factories left}} | | {{Tt|17}} || {{Tt|No factories left}} | ||
| Line 125: | Line 125: | ||
| style="text-align: center;" | -1 | | style="text-align: center;" | -1 | ||
|- | |- | ||
| colspan=4 | HOUSE has no factories left) | | style="border-bottom: 1px solid #000;" colspan=4 | HOUSE has no factories left) | ||
|- | |- | ||
| {{Tt|18}} || {{Tt|Civilians evacuated}} | | {{Tt|18}} || {{Tt|Civilians evacuated}} | ||
| Line 131: | Line 131: | ||
| style="text-align: center;" | -1 | | style="text-align: center;" | -1 | ||
|- | |- | ||
| colspan=4 | Civilian objects owned by HOUSE have left the map (See {{TTL|CivEvac}} ) | | style="border-bottom: 1px solid #000;" colspan=4 | Civilian objects owned by HOUSE have left the map (See {{TTL|CivEvac}} ) | ||
|- | |- | ||
| {{Tt|19}} || {{Tt|Build building type}} | | {{Tt|19}} || {{Tt|Build building type}} | ||
| Line 137: | Line 137: | ||
| style="text-align: center;" | Building# | | style="text-align: center;" | Building# | ||
|- | |- | ||
| colspan=4 | Building # P2 is placed on the map | | style="border-bottom: 1px solid #000;" colspan=4 | Building # P2 is placed on the map | ||
|- | |- | ||
| {{Tt|20}} || {{Tt|Build unit type}} | | {{Tt|20}} || {{Tt|Build unit type}} | ||
| Line 143: | Line 143: | ||
| style="text-align: center;" | Unit# | | style="text-align: center;" | Unit# | ||
|- | |- | ||
| colspan=4 | Unit whose internal index is P2 is placed on the map | | style="border-bottom: 1px solid #000;" colspan=4 | Unit whose internal index is P2 is placed on the map | ||
|- | |- | ||
| {{Tt|21}} || {{Tt|Build infantry type}} | | {{Tt|21}} || {{Tt|Build infantry type}} | ||
| Line 149: | Line 149: | ||
| style="text-align: center;" | Infantry# | | style="text-align: center;" | Infantry# | ||
|- | |- | ||
| colspan=4 | Infantry whose internal index is P2 is placed on the map | | style="border-bottom: 1px solid #000;" colspan=4 | Infantry whose internal index is P2 is placed on the map | ||
|- | |- | ||
| {{Tt|22}} || {{Tt|Build aircraft type}} | | {{Tt|22}} || {{Tt|Build aircraft type}} | ||
| Line 155: | Line 155: | ||
| style="text-align: center;" | Aircraft# | | style="text-align: center;" | Aircraft# | ||
|- | |- | ||
| colspan=4 | Aircraft whose internal index is P2 is placed on the map | | style="border-bottom: 1px solid #000;" colspan=4 | Aircraft whose internal index is P2 is placed on the map | ||
|- | |- | ||
| {{Tt|23}} || {{Tt|Leaves map (team)}} | | {{Tt|23}} || {{Tt|Leaves map (team)}} | ||
| Line 161: | Line 161: | ||
| style="text-align: center;" | -1 | | style="text-align: center;" | -1 | ||
|- | |- | ||
| colspan=4 | TeamType P1 leaves the map | | style="border-bottom: 1px solid #000;" colspan=4 | TeamType P1 leaves the map | ||
|- | |- | ||
| {{Tt|24}} || {{Tt|Zone entry by}} | | {{Tt|24}} || {{Tt|Zone entry by}} | ||
| Line 167: | Line 167: | ||
| style="text-align: center;" | House# | | style="text-align: center;" | House# | ||
|- | |- | ||
| colspan=4 | Attached celltrigger's zone entered by house P2 | | style="border-bottom: 1px solid #000;" colspan=4 | Attached celltrigger's zone entered by house P2 | ||
|- | |- | ||
| {{Tt|25}} || {{Tt|Crosses horizontal line}} | | {{Tt|25}} || {{Tt|Crosses horizontal line}} | ||
| Line 173: | Line 173: | ||
| style="text-align: center;" | House# | | style="text-align: center;" | House# | ||
|- | |- | ||
| colspan=4 | House P2 crosses the horizontal line of the attached celltag | | style="border-bottom: 1px solid #000;" colspan=4 | House P2 crosses the horizontal line of the attached celltag | ||
|- | |- | ||
| {{Tt|26}} || {{Tt|Crosses vertical line}} | | {{Tt|26}} || {{Tt|Crosses vertical line}} | ||
| Line 179: | Line 179: | ||
| style="text-align: center;" | House# | | style="text-align: center;" | House# | ||
|- | |- | ||
| colspan=4 | House P2 crosses the vertical line of the attached celltag | | style="border-bottom: 1px solid #000;" colspan=4 | House P2 crosses the vertical line of the attached celltag | ||
|- | |- | ||
| {{Tt|27}} || {{Tt|Global is set}} | | {{Tt|27}} || {{Tt|Global is set}} | ||
| Line 185: | Line 185: | ||
| style="text-align: center;" | Global# | | style="text-align: center;" | Global# | ||
|- | |- | ||
| colspan=4 | Global variable with index P2 is set | | style="border-bottom: 1px solid #000;" colspan=4 | Global variable with index P2 is set | ||
|- | |- | ||
| {{Tt|28}} || {{Tt|Global is clear}} | | {{Tt|28}} || {{Tt|Global is clear}} | ||
| Line 191: | Line 191: | ||
| style="text-align: center;" | Global# | | style="text-align: center;" | Global# | ||
|- | |- | ||
| colspan=4 | Global variable with index P2 is cleared | | style="border-bottom: 1px solid #000;" colspan=4 | Global variable with index P2 is cleared | ||
|- | |- | ||
| {{Tt|29}} || {{Tt|Destroyed, Fakes, All}} | | {{Tt|29}} || {{Tt|Destroyed, Fakes, All}} | ||
| Line 197: | Line 197: | ||
| style="text-align: center;" | -1 | | style="text-align: center;" | -1 | ||
|- | |- | ||
| colspan=4 | Doesn't work, fires immediately | | style="border-bottom: 1px solid #000;" colspan=4 | Doesn't work, fires immediately | ||
|- | |- | ||
| {{Tt|30}} || {{Tt|Low power}} | | {{Tt|30}} || {{Tt|Low power}} | ||
| Line 203: | Line 203: | ||
| style="text-align: center;" | House# | | style="text-align: center;" | House# | ||
|- | |- | ||
| colspan=4 | House P2 is in a low power situation | | style="border-bottom: 1px solid #000;" colspan=4 | House P2 is in a low power situation | ||
|- | |- | ||
| {{Tt|31}} || {{Tt|Attached bridge destroyed}} | | {{Tt|31}} || {{Tt|Attached bridge destroyed}} | ||
| Line 209: | Line 209: | ||
| style="text-align: center;" | -1 | | style="text-align: center;" | -1 | ||
|- | |- | ||
| colspan=4 | Attached bridge destroyed | | style="border-bottom: 1px solid #000;" colspan=4 | Attached bridge destroyed | ||
|- | |- | ||
| {{Tt|32}} || {{Tt|Building exists}} | | {{Tt|32}} || {{Tt|Building exists}} | ||
| Line 215: | Line 215: | ||
| style="text-align: center;" | Building# | | style="text-align: center;" | Building# | ||
|- | |- | ||
| colspan=4 | HOUSE owns a building # P2 | | style="border-bottom: 1px solid #000;" colspan=4 | HOUSE owns a building # P2 | ||
|- style="background: #ddd; border: 1px solid #000; border-width: 1px 0;" | |- style="background: #ddd; border: 1px solid #000; border-width: 1px 0;" | ||
! style="width: 5em;" rowspan=2 | Code {{Fnl|1}} | ! style="width: 5em;" rowspan=2 | Code {{Fnl|1}} | ||
! rowspan=2 | Event | ! rowspan=2 | Event | ||
! style="text-align: center;" colspan=2 | Parameter types | ! style="text-align: center;" style="border-bottom: 1px solid #000;" colspan=2 | Parameter types | ||
|- style="background: #ddd; border: 1px solid #000; border-width: 1px 0;" | |- style="background: #ddd; border: 1px solid #000; border-width: 1px 0;" | ||
! style="width: 6em; text-align: center;" | #1 (P1) | ! style="width: 6em; text-align: center;" | #1 (P1) | ||
| Line 234: | Line 234: | ||
{{Fn|2|HOUSE in this document refers to the house owning the Trigger, labeled "HOUSE" in the [[Maps/Triggers#RA.2FCS.2FAM|Triggers]] page.}} | {{Fn|2|HOUSE in this document refers to the house owning the Trigger, labeled "HOUSE" in the [[Maps/Triggers#RA.2FCS.2FAM|Triggers]] page.}} | ||
{{Fn|3|P1 in this document refers to the event's first parameter in the [[Maps/Triggers#RA.2FCS.2FAM|Triggers]] page.}} | |||
{{Fn|4|P2 in this document refers to the event's second parameter in the [[Maps/Triggers#RA.2FCS.2FAM|Triggers]] page.}} | |||
Revision as of 08:11, 14 September 2006
In RA, Events were still part of the [Triggers] section, but now Triggers could have up to two Events with up to two parameters each.
The following Events were available:
| Code 1 | Event | Parameter types | |
|---|---|---|---|
| #1 (P1) | #2 (P2) | ||
| 0 | None | -1 | -1 |
| No Event - cannot be activated | |||
| 1 | Entered by | -1 | House# |
| House P2 enters attached building/celltag | |||
| 2 | Spied by | -1 | House# |
| House P2 sends a spy into attached building | |||
| 3 | Thieved by | -1 | -1 |
| Doesn't work | |||
| 4 | Discovered by player | -1 | -1 |
| House owning the attached object is discovered by the player | |||
| 5 | House Discovered | -1 | House# |
| House P2 is discovered by the player | |||
| 6 | Attacked by anybody | -1 | -1 |
| Attached object is attacked by anybody | |||
| 7 | Destroyed by anybody | -1 | -1 |
| Attached object is destroyed by anybody | |||
| 8 | Any event | -1 | -1 |
| Any event | |||
| 9 | Destroyed, Units, All | -1 | House# |
| All units of house P2 are destroyed (does not include civilian objects) | |||
| 10 | Destroyed, Buildings, All | -1 | House# |
| All buildings of house P2 are destroyed (does not include civilian objects) | |||
| 11 | Destroyed, All | -1 | House# |
| All objects of house P2 are destroyed (does not include civilian objects) | |||
| 12 | Credits exceed | -1 | credits |
| HOUSE2 has at least P2 credits | |||
| 13 | Elapsed time | -1 | time |
| (P2/10) minutes have passed in this mission | |||
| 14 | Mission timer expired | -1 | -1 |
| Mission timer expired | |||
| 15 | Destroyed, Buildings, # | -1 | counter |
| Exactly P2 buildings owned by HOUSE have been destroyed (does include civilian objects) | |||
| Code 1 | Event | Parameter types | |
| #1 (P1) | #2 (P2) | ||
| 16 | Destroyed, Units, # | -1 | counter |
| Exactly P2 units owned by HOUSE have been destroyed (does include civilian objects) | |||
| 17 | No factories left | -1 | -1 |
| HOUSE has no factories left) | |||
| 18 | Civilians evacuated | -1 | -1 |
| Civilian objects owned by HOUSE have left the map (See Template:TTL ) | |||
| 19 | Build building type | -1 | Building# |
| Building # P2 is placed on the map | |||
| 20 | Build unit type | -1 | Unit# |
| Unit whose internal index is P2 is placed on the map | |||
| 21 | Build infantry type | -1 | Infantry# |
| Infantry whose internal index is P2 is placed on the map | |||
| 22 | Build aircraft type | -1 | Aircraft# |
| Aircraft whose internal index is P2 is placed on the map | |||
| 23 | Leaves map (team) | TeamType# | -1 |
| TeamType P1 leaves the map | |||
| 24 | Zone entry by | -1 | House# |
| Attached celltrigger's zone entered by house P2 | |||
| 25 | Crosses horizontal line | -1 | House# |
| House P2 crosses the horizontal line of the attached celltag | |||
| 26 | Crosses vertical line | -1 | House# |
| House P2 crosses the vertical line of the attached celltag | |||
| 27 | Global is set | -1 | Global# |
| Global variable with index P2 is set | |||
| 28 | Global is clear | -1 | Global# |
| Global variable with index P2 is cleared | |||
| 29 | Destroyed, Fakes, All | -1 | -1 |
| Doesn't work, fires immediately | |||
| 30 | Low power | -1 | House# |
| House P2 is in a low power situation | |||
| 31 | Attached bridge destroyed | -1 | -1 |
| Attached bridge destroyed | |||
| 32 | Building exists | -1 | Building# |
| HOUSE owns a building # P2 | |||
| Code 1 | Event | Parameter types | |
| #1 (P1) | #2 (P2) | ||
Events took two parameters which, when unused, had to be set to -1.
Notes
All parameters are unsigned integers, meaning all objects like structures, houses, etc. are referenced by their internal indexes. Those internal indexes are listed here.
1 ↑ This column specifies the code to be written in the Trigger's E1 or E2 slot.
2 ↑ HOUSE in this document refers to the house owning the Trigger, labeled "HOUSE" in the Triggers page.
3 ↑ P1 in this document refers to the event's first parameter in the Triggers page.
4 ↑ P2 in this document refers to the event's second parameter in the Triggers page.