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

Events: Difference between revisions

From ModEnc
Jump to navigation Jump to search
m See also shouldve been a list
Crimsonum (talk | contribs)
m Fixed actions link
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{WrongTitle|[Events]}}
{{WrongTitle|[Events]}}


{{SideBar|Map-specific INI sections|Template:Mapping}}
{{MappingBar}}


Events are, obviously, conditions that, once met, fire their corresponding [[Maps/Triggers|Trigger]]. Different games have different available Events and code for them.
Events are, obviously, conditions that, once met, fire their corresponding [[Maps/Triggers|Trigger]]. Different games have different available Events and code for them.
Line 7: Line 7:
== Section ==
== Section ==


=== [[TD]]/[[CO]] ===
=== <span id="td"></span>{{td}} ===
[[Maps/Events/TD|List Of Available Events]]
[[Events/TD|List Of Available Events]]


Section didn't exist, events were specified inline in the [{{Tt|[[Maps/Triggers#TD.2FCO|Triggers]]}}] section with only one condition per trigger.
Section didn't exist, events were specified inline in the [{{Tt|[[Triggers#td|Triggers]]}}] section with only one condition per trigger.


=== [[RA]]/[[CS]]/[[AM]] ===
=== <span id="ra"></span>{{ra}}, {{cs}}, {{am}} ===
[[Maps/Events/RA|List of Available Events]]
[[Events/RA|List of Available Events]]


Section didn't exist, events were specified inline in the [{{Tt|[[Maps/Triggers#RA.2FCS.2FAM|Triggers]]}}] section with up to two conditions per trigger.
Section didn't exist, events were specified inline in the [{{Tt|[[Triggers#ra|Triggers]]}}] section with up to two conditions per trigger.


=== [[TS]]/[[FS]] ===
=== <span id="ts"></span>{{ts}}, {{fs}} ===
[[Maps/Events/TSFS|List of Available Events]]
[[Events/TSFS|List of Available Events]]


The typical [Events] section looks like this:
The typical [Events] section looks like this:
Line 43: Line 43:
Additional conditions are listed in the same manner.
Additional conditions are listed in the same manner.


=== [[RA2]]/[[YR]] ===
=== <span id="ra2"></span><span id="yr"></span>{{ra2}}, {{yr}} ===
[[Maps/Events/RA2YR|List of Available Events]]
[[Events/RA2YR|List of Available Events]]


The typical section looks exactly like in TS, except certain conditions take on a third parameter - a string:
The typical section looks exactly like in TS, except certain conditions take on a third parameter - a string:
Line 71: Line 71:


== See Also ==
== See Also ==
*[[Maps/Triggers|Triggers]]
*[[Triggers]]
*[[Maps/Actions|Actions]]
*[[Actions_(maps)|Actions]]
 
[[Category: Maps Sections]]

Latest revision as of 07:23, 2 May 2021

This page should correctly be named "[Events]"; it is wrong due to technical restrictions.



Events are, obviously, conditions that, once met, fire their corresponding Trigger. Different games have different available Events and code for them.

Section

Tiberian Dawn

List Of Available Events

Section didn't exist, events were specified inline in the [Triggers] section with only one condition per trigger.

Red Alert, Counterstrike, Aftermath

List of Available Events

Section didn't exist, events were specified inline in the [Triggers] section with up to two conditions per trigger.

Tiberian Sun, Firestorm

List of Available Events

The typical [Events] section looks like this:

[Events]
ID=NUM,E1,E1P1,E1P2
ID1=NUM2,E1,E1P1,E1P2,E2,E2P1,E2P2

The meanings are as follows:

String Meaning
ID The Event's ID. Has to be the same as the Trigger's ID.
NUM Amount of conditions in this Event.
E1 The first condition (its index in the Available Events list)
E1P1 The first parameter for E1, defaults to 0
E1P2 The second parameter for E1, defaults to 0

Additional conditions are listed in the same manner.

Red Alert 2, Yuri's Revenge

List of Available Events

The typical section looks exactly like in TS, except certain conditions take on a third parameter - a string:

[Events]
ID=NUM,E1,E1P1,E1P2
ID1=NUM2,E1,E1P1,E1P2,E1P3,E2,E2P1,E2P2
String Meaning
ID The Event's ID. Has to be the same as the Trigger's ID.
NUM Amount of conditions in this Event.
E1 The first condition (its index in the Available Events list)
E1P1 The first parameter for E1, defaults to 0
E1P2 The second parameter for E1, defaults to 0
E1P3 The third (optional) parameter for E1

Again, additional conditions are specified in the same manner.

See Also