Events/RA2YR: Difference between revisions
No edit summary |
Vananabanana (talk | contribs) m Correct the entered info for multiplayer |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 2: | Line 2: | ||
{| style="width: 100%;" align="center" class="table_descrow" | {| style="width: 100%;" align="center" class="wikitable table_descrow" | ||
|+ '''List of available Map Events''' | |+ '''List of available Map Events''' | ||
|- style="border-bottom-style: hidden;" | |- style="border-bottom-style: hidden;" | ||
Line 30: | Line 30: | ||
| style="text-align: center;" | - | | style="text-align: center;" | - | ||
|- | |- | ||
| style="border-top-style: hidden; padding-left: 3em;" | House P2 enters attached building/celltag | | style="border-top-style: hidden; padding-left: 3em;" | House P2 enters attached building/celltag. | ||
'''Caution: on multiplayer, if house P2 is a country (America, Yuri etc) it only detects the first player that is the given house. Additionally, color seems to play a role in this (confirmation needed). Therefore, you may want to use -1 (anyone) as house.'''{{Fnl|4}} | |||
| style="border-top-style: hidden;" | | | style="border-top-style: hidden;" | | ||
| style="border-top-style: hidden;" | | | style="border-top-style: hidden;" | | ||
Line 63: | Line 64: | ||
| style="text-align: center;" | - | | style="text-align: center;" | - | ||
|- | |- | ||
| style="border-top-style: hidden; padding-left: 3em;" | House owning the attached object is discovered by the player | | style="border-top-style: hidden; padding-left: 3em;" | House owning the attached object is discovered by the player. | ||
'''Editor's note:''' this event is irreversibly bugged for the remainder of the mission if the attached objects are discovered by non-convential means like Player building a {{f|SpySat|yes|link}} or the objects getting revealed due to their weapon having {{f|RevealOnFire|yes|link}}; only a mission restart fixes it. It hasn't been researched if reveal via crates or map triggers has the same effect; exercise caution using this event and try using events 1 (TS/RA2/YR) or 59 (YR) instead. | |||
| style="border-top-style: hidden;" | | | style="border-top-style: hidden;" | | ||
| style="border-top-style: hidden;" | | | style="border-top-style: hidden;" | | ||
Line 75: | Line 77: | ||
|- | |- | ||
| style="border-top-style: hidden; padding-left: 3em;" | House P2 is discovered by the player | | style="border-top-style: hidden; padding-left: 3em;" | House P2 is discovered by the player | ||
'''Editor's note:''' this event might be bugged too, see above. | |||
| style="border-top-style: hidden;" | | | style="border-top-style: hidden;" | | ||
| style="border-top-style: hidden;" | | | style="border-top-style: hidden;" | | ||
Line 324: | Line 327: | ||
| style="text-align: center;" | - | | style="text-align: center;" | - | ||
|- | |- | ||
| style="border-top-style: hidden; padding-left: 3em;" | Global variable with index P2 is set | | style="border-top-style: hidden; padding-left: 3em;" | Global variable with index P2 is set. Takes priority over other events{{fnl|3}} | ||
| style="border-top-style: hidden;" | | | style="border-top-style: hidden;" | | ||
| style="border-top-style: hidden;" | | | style="border-top-style: hidden;" | | ||
Line 335: | Line 338: | ||
| style="text-align: center;" | - | | style="text-align: center;" | - | ||
|- | |- | ||
| style="border-top-style: hidden; padding-left: 3em;" | Global variable with index P2 is cleared | | style="border-top-style: hidden; padding-left: 3em;" | Global variable with index P2 is cleared. Takes priority over other events{{fnl|3}} | ||
| style="border-top-style: hidden;" | | | style="border-top-style: hidden;" | | ||
| style="border-top-style: hidden;" | | | style="border-top-style: hidden;" | | ||
Line 341: | Line 344: | ||
|- | |- | ||
| rowspan="2" style="border-right: 1px solid #aaaaaa; text-align: center; vertical-align: top;" | {{Tt|29}} | | rowspan="2" style="border-right: 1px solid #aaaaaa; text-align: center; vertical-align: top;" | {{Tt|29}} | ||
| style="padding-left: 3px;" | {{Tt|Destroyed | | style="padding-left: 3px;" | {{Tt|Destroyed by anything (not infiltrate)}} | ||
| style="text-align: center;" | 0 | | style="text-align: center;" | 0 | ||
| style="text-align: center;" | 0 | | style="text-align: center;" | 0 | ||
| style="text-align: center;" | - | | style="text-align: center;" | - | ||
|- | |- | ||
| style="border-top-style: hidden; padding-left: 3em;" | | | style="border-top-style: hidden; padding-left: 3em;" | Attached unit is destroyed, but not when infiltrating | ||
| style="border-top-style: hidden;" | | | style="border-top-style: hidden;" | | ||
| style="border-top-style: hidden;" | | | style="border-top-style: hidden;" | | ||
Line 431: | Line 434: | ||
| style="text-align: center;" | - | | style="text-align: center;" | - | ||
|- | |- | ||
| style="border-top-style: hidden; padding-left: 3em;" | Local variable with index P2 is set | | style="border-top-style: hidden; padding-left: 3em;" | Local variable with index P2 is set. Takes priority over other events{{fnl|3}} | ||
| style="border-top-style: hidden;" | | | style="border-top-style: hidden;" | | ||
| style="border-top-style: hidden;" | | | style="border-top-style: hidden;" | | ||
Line 442: | Line 445: | ||
| style="text-align: center;" | - | | style="text-align: center;" | - | ||
|- | |- | ||
| style="border-top-style: hidden; padding-left: 3em;" | Local variable with index P2 is cleared | | style="border-top-style: hidden; padding-left: 3em;" | Local variable with index P2 is cleared. Takes priority over other events{{fnl|3}} | ||
| style="border-top-style: hidden;" | | | style="border-top-style: hidden;" | | ||
| style="border-top-style: hidden;" | | | style="border-top-style: hidden;" | | ||
Line 692: | Line 695: | ||
| style="text-align: center;" | - | | style="text-align: center;" | - | ||
|- | |- | ||
| style="border-top-style: hidden; padding-left: 3em;" | Objects owned by house P2 move over the attached cell | | style="border-top-style: hidden; padding-left: 3em;" | Objects owned by house P2 move over the attached cell. | ||
'''Caution: on multiplayer, if house P2 is a country (America, Yuri etc) it only detects the first player that is the given house. Additionally, color seems to play a role in this (confirmation needed). Therefore, you may want to use -1 (anyone) as house.'''{{Fnl|4}} | |||
| style="border-top-style: hidden;" | | | style="border-top-style: hidden;" | | ||
| style="border-top-style: hidden;" | | | style="border-top-style: hidden;" | | ||
Line 735: | Line 739: | ||
{{Fn|2|HOUSE in this document refers to the house owning the Trigger, labeled "HOUSE" in the [[Maps/Triggers#RA2.2FYR|Triggers]] page.}} | {{Fn|2|HOUSE in this document refers to the house owning the Trigger, labeled "HOUSE" in the [[Maps/Triggers#RA2.2FYR|Triggers]] page.}} | ||
{{Fn|3|By default, events are checked in the order they are listed. However, when using local or global variable checks together with other events, the variable check will reset any preceding events. In other words, the variable check is of higher priority than other events. Only after the variable is set/cleared do other events count towards the execution of the trigger.}} | |||
{{Fn|4|Read: https://forums.cncnet.org/topic/9841-trigger-entered-by-any-house-how-to-make-solved/}} | |||
{{:Maps/Referencing}} | {{:Maps/Referencing}} | ||
[[Category:Map_Information]] | [[Category:Map_Information]] |
Latest revision as of 14:34, 7 December 2022
Events are a separate section like in TS, so Triggers can have multiple Events with up to two/three parameters. The game assumes the Trigger, Event and Action all share the same ID. So a Trigger which has ID 12451245 uses the Event list with ID 12451245.
Events take two parameters (third parameter - string - is needed for events #60 and #61), which default to 0.
Notes
1 ↑ This column specifies the code to be written in the Event's "condition" slot, e.g. E1 in the Events page.
2 ↑ HOUSE in this document refers to the house owning the Trigger, labeled "HOUSE" in the Triggers page.
3 ↑ By default, events are checked in the order they are listed. However, when using local or global variable checks together with other events, the variable check will reset any preceding events. In other words, the variable check is of higher priority than other events. Only after the variable is set/cleared do other events count towards the execution of the trigger.
4 ↑ Read: https://forums.cncnet.org/topic/9841-trigger-entered-by-any-house-how-to-make-solved/
- Referencing items
- As you probably noticed, some of the Parameter descriptions in this table end with "#". The reason for that is:
- Some parameters take their values to be indexes of objects, others assume they are the identifiers of those objects.
- For convenience, if the parameter's description in the table ends with a "#" symbol, you should use the object's index in its appropriate list, otherwise you should use its ID.
- Also note: All entries in column P7 are expected to be literal, so you have to convert all the numbers into letters like this:
- 0 is "A", 1 is "B", 25 is "Z", 26 is "AA", just like the columnm numbering in your favourite spreadsheet program.