ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
Events/RA2YR: Difference between revisions
< Events
No edit summary |
Event 4 Discovered by Player has bugs; I think Event 5 House Discovered might too |
||
Line 63: | Line 63: | ||
| 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 76: | ||
|- | |- | ||
| 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;" | |
Revision as of 19:53, 9 July 2021
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.
- 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.