Skip to content

Commit 22f9d99

Browse files
committed
Map action and events, and Team script editor support
1 parent 2873398 commit 22f9d99

File tree

5 files changed

+90
-0
lines changed

5 files changed

+90
-0
lines changed

extras/FADataCode.txt

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
; FinalAlert 2 support for Ares 3.0 functionality
2+
; Courtesy of Starkku
3+
4+
[ParamTypes]
5+
49=Waypoint,17,2
6+
50=Superweapon,39 ; Used for event #77, requires FA2Ext.dll
7+
51=EVA Voice Index,0
8+
52=Group Number,0
9+
10+
[EventsRA2]
11+
62=Under EMP,0,0,0,0,Triggers when attached object is disabled by EMP.,0,1,62,1
12+
63=Under EMP by House ...,0,2,0,0,Triggers when attached object is disabled by EMP by specified house.,0,1,63,1
13+
64=EMP removed,0,0,0,0,Triggers when attached object's EMP is removed by negative duration EMP effect.,0,1,64,1
14+
65=EMP removed by House ...,0,2,0,0,Triggers when attached object's EMP is removed by negative duration EMP effect by specified house.,0,1,65,1
15+
66=Enemy in Spotlight currently,0,0,0,0,Triggers when an enemy unit is currently in the spotlight cast by the attached building.,0,1,66,1
16+
67=Driver killed,0,0,0,0,Triggers when the driver of the attached object has been killed.,0,1,67,1
17+
68=Driver killed by House ...,0,2,0,0,Triggers when the driver of the attached object has been killed by specified house.,0,1,68,1
18+
69=Vehicle taken,0,0,0,0,Triggers when a driver or vehicle thief enters the attached object.,0,1,69,1
19+
70=Vehicle taken by House ...,0,2,0,0,Triggers when a driver or vehicle thief of specified house enters the attached object.,0,1,70,1
20+
71=Abducted,0,0,0,0,Triggers when the attached object is abducted.,0,1,71,1
21+
72=Abducted by House ...,0,2,0,0,Triggers when specified house abducts the attached object.,0,1,72,1
22+
73=Abducts something,0,0,0,0,Triggers when the attached object abducts something.,0,1,73,1
23+
74=Abducts something of House ...,0,2,0,0,Triggers when the attached object abducts something of a specified house.,0,1,74,1
24+
75=Superweapon activated ...,0,20,0,0,Triggers when the owning house fires the specified super weapon.,0,1,75,1
25+
76=Superweapon deactivated ...,0,20,0,0,Triggers when the owning house deactivates the specified super weapon.,0,1,76,1
26+
77=Superweapon activated near waypoint ...,49,50,0,0,Triggers when the specified super weapon is used near the waypoint.,0,1,77,1
27+
78=TechType reverse-engineered ...,-2,46,0,0,Triggers while the owning house has access to reverse-engineered tech type.,0,1,78,1
28+
79=Reverse-engineers anything,0,0,0,0,Triggers when the attached building successfully reverse-engineers any tech type.,0,1,79,1
29+
80=Reverse-engineers TechType ...,-2,46,0,0,Triggers when the attached building successfully reverse-engineers specific tech type.,0,1,80,1
30+
81=House owns TechType ...,48,46,0,0,Triggers while the owning house has at least this many of the specified tech type.,0,1,81,1
31+
82=House doesn't own TechType ...,48,46,0,0,Triggers while the owning house has no more than this many of the specified tech type.,0,1,82,1
32+
83=Attacked or destroyed by anything,0,0,0,0,Triggers when the attached object is attacked or destroyed by anything what-so-ever.,0,1,83,1
33+
84=Attacked or destroyed by House ...,0,2,0,0,Triggers when the attached object is attacked or destroyed by specified house.,0,1,84,1
34+
85=Destroyed by House ...,0,2,0,0,Triggers when attached object is destroyed by specified house.,0,1,85,1
35+
86=TechType does not exist (no more than) ...,48,46,0,0,Triggers while there are no more than this many of the specified tech type on the map.,0,1,86,1
36+
87=All KeepAlive objects destroyed ...,0,2,0,0,Triggers when the specified house has no more KeepAlive=yes objects.,0,1,87,1
37+
88=All KeepAlive buildings destroyed ...,0,2,0,0,Triggers when the specified house has no more buildings with KeepAlive=yes.,0,1,88,1
38+
39+
[ActionsRA2]
40+
146=Add auxiliary power for a House,-11,2,0,0,0,0,1,0,0,Adds an amount of auxiliary power for specified house. Amount can be negative.,0,1,146,1
41+
147=Kill drivers of attached units,0,0,0,0,0,0,0,0,0,Kills the driver of all units that this trigger is attached to.,0,1,147,1
42+
148=Set EVA voice index ...,0,51,0,0,0,0,0,0,0,Sets the EVA voice played based on EVA voice index. Use -1 to disable EVA voice.,0,1,148,1
43+
149=Set Group ...,0,52,0,0,0,0,0,0,0,Sets group for the object that triggered this action (not same as attached objects).,0,1,149,1
44+
45+
; Requires FA2Ext.dll
46+
[ScriptsRA2]
47+
53=Gather at Enemy,6,0,0,Uses AISafeDistance + Number to find a spot close to enemy's base to gather close.
48+
54=Gather at Base,6,0,0,Gathers outside own base perimeter at AISafeDistance (Ares: AIFriendlyDistance) + Number.
49+
55=Iron Curtain,6,0,0,Calls (and waits if nearly ready) for House to deliver Iron Curtain of the specified group to Team.
50+
65=Auxiliary Power,6,0,1,Permanently changes the power output of the house owning the team by the specified amount. Can be negative.
51+
66=Kill Drivers,0,0,1,Kills all unprotected drivers of the units in this team and assigns them to the country called Special.
52+
67=Take Vehicles,0,0,1,If possible, infantry in this team will be assigned the closest vehicle they can drive or hijack.
53+
68=Convert Type,0,0,1,Changes all members of this team into their respective script conversion types.
54+
69=Sonar Reveal,27,0,1,Disables the ability of all team members to cloak themselves for a number of frames. Use 0 to end the effect.
55+
70=Disable Weapons,27,0,1,Disables the ability of all team members to fire for a number of frames. Use 0 to end the effect.

new/editorsupport.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.. index:: Map Editors; Support for new Team Scripts, Trigger Events and Actions
2+
.. index:: Final Alert 2; Support for new Team Scripts, Trigger Events and Actions
3+
4+
Editor Support
5+
~~~~~~~~~~~~~~
6+
7+
Before using the new :doc:`Team Scripts </new/scripts>`, :doc:`Trigger Events
8+
</new/triggerevents>` and :doc:`Actions </new/triggeractions>` :game:'Ares'
9+
added, their names and data formats have to be made known to your map editor.
10+
11+
:captiontag:`FinalAlert2`
12+
-------------------------
13+
14+
Merge the :download:`definitions for FinalAlert2 </extras/FADataCode.txt>`
15+
(courtesy of Starkku) into :file:`FAData.ini` to gain access to the new Trigger
16+
Actions and Trigger Events in the editor, so you can comfortably use them in the
17+
maps and missions you create.
18+
19+
To also get access to the new Team Scripts from the user interface, you will
20+
need to use :file:`FA2Ext.dll`, a third party extension dll which is not bundled
21+
with :game:`Ares`.
22+
23+
If you already added new :type:`ParamTypes` to :file:`FAData.ini`, you may have
24+
to update the definitions accordingly before you can use them.
25+
26+
.. versionadded:: 3.0

new/scripts.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Script Actions
22
~~~~~~~~~~~~~~
33

4+
See :doc:`Editor Support </new/editorsupport>` on how to use the new Script
5+
Actions from map editors.
6+
47
:captiontag:`Gather at Enemy` (53)
58
``````````````````````````````````
69

new/triggeractions.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ Trigger Actions
33

44
:game:`Ares` adds the following Trigger Actions to :game:`Yuri's Revenge`.
55

6+
See :doc:`Editor Support </new/editorsupport>` on how to use the new Trigger
7+
Actions from map editors.
8+
69

710
.. index:: Trigger Actions; Activate Firestorm
811

new/triggerevents.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ It also means that if a trigger contains a chain of events, and it includes one
2828
non-persistent incidental event, it will have to be the last event satisfied to
2929
fire the trigger and execute the actions.
3030

31+
See :doc:`Editor Support </new/editorsupport>` on how to use the new Trigger
32+
Events from map editors.
33+
3134

3235
.. index:: Trigger Events; Electromagnetic Pulse
3336

0 commit comments

Comments
 (0)