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

Difference between revisions of "Actions (maps)"

From ModEnc
Jump to: navigation, search
m (Woops, category sort order)
m (Disambiguated one of the details.)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{WrongTitle|[Actions]}}
 
{{WrongTitle|[Actions]}}
  
{{SideBar|Map-specific INI sections|Template:Mapping}}
+
{{MappingBar}}
  
 
== Section ==
 
== Section ==
  
=== [[TD]]/[[CO]] ===
+
=== <span id="td"></span>{{td}} ===
[[Maps/Actions/TD|List Of Available Actions]]
+
[[Actions (maps)/TD|List Of Available Actions]]
  
Section didn't exist, actions were specified inline in the [{{Tt|[[Maps/Triggers#TD.2FCO|Triggers]]}}] section with only one action per trigger.
+
Section didn't exist, actions were specified inline in the [{{Tt|[[Triggers#td|Triggers]]}}] section with only one action per trigger.
  
=== [[RA]]/[[CS]]/[[AM]] ===
+
=== <span id="ra"></span>{{ra}}, {{cs}}, {{am}} ===
[[Maps/Actions/RA|List of Available Actions]]
+
[[Actions (maps)/RA|List of Available Actions]]
  
Section didn't exist, actions were specified inline in the [{{Tt|[[Maps/Triggers#RA.2FCS.2FAM|Triggers]]}}] section with up to two actions per trigger.
+
Section didn't exist, actions were specified inline in the [{{Tt|[[Triggers#ra|Triggers]]}}] section with up to two actions per trigger.
  
=== [[TS]]/[[FS]] ===
+
=== <span id="ts"></span>{{ts}}, {{fs}} ===
[[Maps/Actions/TSFS|List of Available Actions]]
+
[[Actions (maps)/TSFS|List of Available Actions]]
  
 
The typical [Actions] section looks like this:
 
The typical [Actions] section looks like this:
Line 48: Line 48:
 
|}
 
|}
  
Additional actions are listed in the same manner. A single Action can contain about 20 actions (the parser stops reading after a certain amount of characters).
+
Additional actions are listed in the same manner. A single Action can contain about 20 actions (the parser stops reading after 512 characters).
  
=== [[RA2]]/[[YR]] ===
+
=== <span id="ra2"></span><span id="yr"></span>{{ra2}}, {{yr}} ===
[[Maps/Actions/RA2YR|List of Available Actions]]
+
[[Actions (maps)/RA2YR|List of Available Actions]]
  
 
The typical section looks exactly like in TS:
 
The typical section looks exactly like in TS:
Line 86: Line 86:
  
 
== See Also ==
 
== See Also ==
*[[Maps/Triggers|Triggers]]
+
*{{sl|Triggers}}
*[[Maps/Events|Events]]
+
*{{sl|Events}}
 
 
[[Category: Maps Sections|Actions]]
 

Latest revision as of 20:35, 26 June 2019

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


Section

Tiberian Dawn

List Of Available Actions

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

Red Alert, Counterstrike, Aftermath

List of Available Actions

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

Tiberian Sun, Firestorm

List of Available Actions

The typical [Actions] section looks like this:

[Actions]
ID=NUM,A1,A1P1,A1P2,A1P3,A1P4,A1P5,A1P6,A1P7

The meanings are as follows:

String Meaning
ID The Action's ID. Has to be the same as the Trigger's ID.
NUM Amount of actual actions in this Action.
A1 The first action (its index in the Available Actions list)
A1P1 The first parameter for A1, defaults to 0
A1P2 The second parameter for A1, defaults to 0
A1P3 The third parameter for A1, defaults to 0
A1P4 The fourth parameter for A1, defaults to 0
A1P5 The fifth parameter for A1, defaults to 0
A1P6 The sixth parameter for A1, defaults to 0
A1P7 The seventh parameter for A1, defaults to 0

Additional actions are listed in the same manner. A single Action can contain about 20 actions (the parser stops reading after 512 characters).

Red Alert 2, Yuri's Revenge

List of Available Actions

The typical section looks exactly like in TS:

[Actions]
ID=NUM,A1,A1P1,A1P2,A1P3,A1P4,A1P5,A1P6,A1P7
ID=NUM,A1,A1P1,A1P2,A1P3,A1P4,A1P5,A1P6,A1P7,A2,A2P1,A2P2,A2P3,A2P4,A2P5,A2P6,A2P7

The meanings are as follows:

String Meaning
ID The Action's ID. Has to be the same as the Trigger's ID.
NUM Amount of actual actions in this Action.
A1 The first action (its index in the Available Actions list)
A1P1 The first parameter for A1, defaults to 0
A1P2 The second parameter for A1, defaults to 0
A1P3 The third parameter for A1, defaults to 0
A1P4 The fourth parameter for A1, defaults to 0
A1P5 The fifth parameter for A1, defaults to 0
A1P6 The sixth parameter for A1, defaults to 0
A1P7 The seventh parameter for A1, defaults to 0

See Also