ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Events/RA

From ModEnc
Revision as of 11:07, 13 September 2006 by DCoder (talk | contribs) (wooooops)
Jump to navigation Jump to search

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 Meaning
0 None No Event - cannot be activated
1 Entered by House ExP24 enters attached building/celltag
2 Spied by House ExP2 sends a spy into attached building
3 Thieved by Doesn't work
4 Discovered by player House owning the attached object is discovered by the player
5 House Discovered House ExP2 is discovered by the player
6 Attacked by anybody Attached object is attacked by anybody
7 Destroyed by anybody Attached object is destroyed by anybody
8 Any event Any event
9 Destroyed, Units, All All units of house ExP2 are destroyed (does not include civilian objects owned by ExP2)
10 Destroyed, Buildings, All All buildings of house ExP2 are destroyed (does not include civilian objects owned by ExP2)
11 Destroyed, All All objects of house ExP2 are destroyed (does not include civilian objects owned by ExP2)
12 Credits exceed HOUSE2 has at least ExP2 credits
13 Elapsed time (1/10th min) ExP2 / 10 minutes have passed in this mission
14 Mission timer expired Mission timer expired
15 Destroyed, Buildings, # Exactly ExP2 buildings owned by HOUSE have been destroyed (does include civilian objects owned by ExP2)
16 Destroyed, Units, # Exactly ExP2 units owned by HOUSE have been destroyed (does include civilian objects owned by ExP2)
17 No factories left HOUSE has no factories left ("factories" include only FACT, AFLD, BARR, TENT, WEAP)
18 Civilians evacuated Civilian objects owned by HOUSE have left the map (See Template:TTL )
19 Build building type Building whose internal index5 is ExP2 is placed on the map
20 Build unit type Unit whose internal index is ExP2 is placed on the map
21 Build infantry type Infantry whose internal index is ExP2 is placed on the map
22 Build aircraft type Aircraft whose internal index is ExP2 is placed on the map
23 Leaves map (team) TeamType with index ExP13 leaves the map
24 Zone entry by Attached celltrigger's zone entered by house ExP2
25 Crosses horizontal line House ExP2 crosses the horizontal line of the attached celltag
26 Crosses vertical line House ExP2 crosses the vertical line of the attached celltag
27 Global is set Global variable with index ExP2 is set
28 Global is clear Global variable with index ExP2 is cleared
29 Destroyed, Fakes, All Doesn't work, fires immediately
30 Low power House ExP2 is in a low power situation
31 All bridges destroyed All destructable bridges destroyed
32 Building exists HOUSE owns a building with internal number ExP2

Events took two parameters which defaulted to -1.

Notes

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 ExP1 in this document refers to the trigger's first parameter in the Triggers page.

4 ExP2 in this document refers to the trigger's second parameter in the Triggers page.

5 Internal indexes of RA objects are listed here.