Area Trigger: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
JYWLuca8269 (talk | contribs) m (Updated look.) |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:<span style="position: absolute; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);">{{FULLPAGENAME}}</span>}} | |||
{{HeaderTemplate | |||
|welcome=Area Trigger | |||
}} | |||
An Area trigger fires when the human player moves a unit into the area. | An Area trigger fires when the human player moves a unit into the area. | ||
== Arguments = | {{SectionTemplate | ||
|h=h3 | |||
|title=Arguments | |||
|content=}} | |||
*'''Center''' - Map coordinates of the center of the area. Required. | *'''Center''' - Map coordinates of the center of the area. Required. | ||
*'''Size''' - Size of the area. | *'''Size''' - Size of the area. | ||
*'''Template''' - Template name of the unit that can trigger this. If you want it to fire if any unit enters the area, do not specify a Template argument. | *'''Template''' - Template name of the unit that can trigger this. If you want it to fire if any unit enters the area, do not specify a Template argument. | ||
{{SectionTemplate | |||
|h=h3 | |||
|title=Common Usage | |||
|content=}} | |||
Area triggers are useful for: | Area triggers are useful for: | ||
Line 17: | Line 27: | ||
#Setting up 'escort' type missions that have some effect when the player gets a unit somewhere | #Setting up 'escort' type missions that have some effect when the player gets a unit somewhere | ||
{{SectionTemplate | |||
|h=h3 | |||
|title=Examples | |||
|content=}} | |||
<Trigger Name="tHarvest_00" Type="Area" Center="0,-1408" Size="300" Template="SS_A_Harvester" > | <Trigger Name="tHarvest_00" Type="Area" Center="0,-1408" Size="300" Template="SS_A_Harvester" > | ||
<AreaIndicator Name="iHarvest_00" Position="64,-1344" Size="225" Color="Blue" Duration="0" /> | <AreaIndicator Name="iHarvest_00" Position="64,-1344" Size="225" Color="Blue" Duration="0" /> | ||
<Var Name="vRegionsHarvested" Operation="+" Value="1" /> | <Var Name="vRegionsHarvested" Operation="+" Value="1" /> | ||
</Trigger> | </Trigger> | ||
Line 40: | Line 53: | ||
From Decanus in Imminent Crisis, this kicks off a whole new phase of the mission when the player successfully drops an Engineer to the western staging point. | From Decanus in Imminent Crisis, this kicks off a whole new phase of the mission when the player successfully drops an Engineer to the western staging point. | ||
[[Category:Triggers]] |
Latest revision as of 15:47, 24 November 2020
Arguments
Common UsageArea triggers are useful for:
Examples<Trigger Name="tHarvest_00" Type="Area" Center="0,-1408" Size="300" Template="SS_A_Harvester" > <AreaIndicator Name="iHarvest_00" Position="64,-1344" Size="225" Color="Blue" Duration="0" /> <Var Name="vRegionsHarvested" Operation="+" Value="1" /> </Trigger> This is from the Betelgeuse mission in Escalation, and both fades an AreaIndicator and increments the variable for "regions harvested" when the player brings a Harvester to the targeted area. <Trigger Name="DropEngineer" Type="Area" Template="PHC_2_Engineer" Center="5200,0,0" Size="500"> <AreaIndicator Name="EngineerDropSite" Duration="0"/> <Objective Name="LandEngineer" SetCheck="1"/> <Objective Name="Setupbase" String="Mission5_Objective4B"/> <Restrict Type="Orbital" ID="CallEngineer" Enable="1"/> <Dialog> <Entry Icon="Mac" Text="Mission5_T4a_3" Audio="audio/campaign/Mission5_Decanus/Mission5_T4a_3.wav"/> </Dialog> <ActivateTrigger Target="EnableEnemyAIDelay" /> <ActivateTrigger Target="ScoutAdvice" /> <ActivateTrigger Target="NoSneaky" /> </Trigger> From Decanus in Imminent Crisis, this kicks off a whole new phase of the mission when the player successfully drops an Engineer to the western staging point. |