Events/RA2YR: Difference between revisions
Event 4 Discovered by Player has bugs; I think Event 5 House Discovered might too |
No edit summary |
||
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 326: | Line 326: | ||
| 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 337: | ||
| 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 433: | ||
| 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 444: | ||
| 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 737: | Line 737: | ||
{{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.}} | |||
{{:Maps/Referencing}} | {{:Maps/Referencing}} | ||
[[Category:Map_Information]] | [[Category:Map_Information]] |
Revision as of 11:34, 11 September 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.
- 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.