Events/RA2YR: Difference between revisions
Event 4 Discovered by Player has bugs; I think Event 5 House Discovered might too |
Vananabanana (talk | contribs) m Correct the entered info for multiplayer |
||
(3 intermediate revisions by 2 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 326: | 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 337: | 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 433: | 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 444: | 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 694: | 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 737: | 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.