Triggers/Category Environment

From SC2Mapster Wiki
Jump to: navigation, search

Contents

Creep And Power[edit | edit source]

Creep Adjacent[edit | edit source]

  • Function. Returns the number of creep tiles adjacent to a point.

Creep Is Present[edit | edit source]

  • Function. Returns true if creep is present at a specified point.

Modify Creep[edit | edit source]

  • Action. Add or remove creep around a point. This creep can be normal creep that will receed without a nearby generator, or permanent creep which will remain until removed with a trigger.

Set Creep Speed[edit | edit source]

  • Action. Sets the speed of creep. Growth determines how rapidly creep will expand from its origin point. Decay determines how rapidly creep will receed if there are no creep generators nearby. Blend determines how rapidly the creep will visually appear, and is seperate from the functional purposes of creep.

Power Is Provided By[edit | edit source]

  • Function. Returns true if power is provided to a point by a specific unit. Note: The Minimum Power parameter should not be set past 1, unless you have custom units that provide more than a single power level.

Power Level[edit | edit source]

  • Function. Returns the power level provided to a player at the specified point.

Effects[edit | edit source]

Create Explosion At Point[edit | edit source]

  • Action. Creates an explosion at the specified point. This explosion does not cause damage or other gameplay effects.

Triggering Effect Used[edit | edit source]

  • Action.

Triggering Effect Amount (Real)[edit | edit source]

  • Action.

Triggering Effect Amount (Integer)[edit | edit source]

  • Action.

Triggering Effect Point[edit | edit source]

  • Action.

Triggering Effect Unit[edit | edit source]

  • Action.

Triggering Effect Unit Owner[edit | edit source]

  • Action.

Triggering Effect Unit Type[edit | edit source]

  • Action.

Destroy Effects[edit | edit source]

  • Action. Removes up to a specified amount of effects within a specified radius of a point. This includes effects created by the game as well as effects created via "Create Effect" trigger actions.

Player Can Create Effect At Point[edit | edit source]

  • Function. Returns true if the specified player can execute the specified effect at the specified point.

Player Can Create Effect On Unit[edit | edit source]

  • Function. Returns true if the specified player can execute the specified effect on the specified unit.

Create Effect At Point (From Player)[edit | edit source]

  • Action. Runs an effect, targeting the specified point. This effect will not have a caster unit.

Create Effect On Unit (From Player)[edit | edit source]

  • Action. Runs an effect, targeting the specified unit. This effect will not have a caster unit.

Unit Can Create Effect At Point[edit | edit source]

  • Function. Returns true if the specified unit can execute the specified effect at the specified point.

Unit Can Create Effect On Unit[edit | edit source]

  • Function. Returns true if the specified unit can execute the specified effect on the specified target unit.

Create Effect At Point (From Unit)[edit | edit source]

  • Action. Runs an effect, targeting the specified point, as if it was cast by the specified Caster unit.

Create Effect On Unit (From Unit)[edit | edit source]

  • Action. Runs an effect, targeting the specified unit, as if it was cast by the specified Caster unit.

Damage Unit (From Unit)[edit | edit source]

  • Action. Deals damage targeting the specified victim, as if it was dealt by the specified attacker unit.

Validate Player Can Create Effect At Point[edit | edit source]

  • Action.

Validate Player Can Create Effect On Unit[edit | edit source]

  • Action.

Validate Unit Can Create Effect At Point[edit | edit source]

  • Action.

Validate Unit Can Create Effect On Unit[edit | edit source]

  • Action.

Fog And Background[edit | edit source]

Set Fog Color[edit | edit source]

  • Action. Sets the color of environmental fog.

Set Fog Density[edit | edit source]

  • Action. Sets the density of environmental fog. A higher value means thicker fog.

Enable/Disable Fog[edit | edit source]

  • Action. Turns environmental fog on or off.

Set Fog Falloff[edit | edit source]

  • Action. Sets the falloff for environmental fog. Falloff determines how far from the fog start height the environmental fog will extend.

Set Fog Start Height[edit | edit source]

  • Action. Sets the start height for environmental fog. Anything below this height will be completely obscured by environmental fog.

Set Background Model[edit | edit source]

  • Action. Set or change the skybox on a map.

Lighting[edit | edit source]

Set Lighting[edit | edit source]

  • Action. Changes the lighting on the map.

Set Lighting For Player[edit | edit source]

  • Action. Changes the lighting on the map for a specific player only.

Set Time of Day Lighting[edit | edit source]

  • Action. Sets the lighting used by the time of day.

Current Time Of Day[edit | edit source]

  • Action. Returns the current game time of day.

Day Length[edit | edit source]

  • Function. Returns the current day length in game seconds.

Time Of Day Is Paused[edit | edit source]

  • Function. Returns true if the game time of day cycle is paused.

Pause/Unpause Time Of Day[edit | edit source]

  • Action. Pauses or unpauses the time of day cycle.

Set Time Of Day[edit | edit source]

  • Action. Sets the time of day.

Set Day Length[edit | edit source]

  • Action. Sets the amount of game time it will take to cycle through 24 hours of time of day.

Terrain And Water[edit | edit source]

Cliff Level Of Point (Integer)[edit | edit source]

  • Function. Returns what cliff level a point is on.

Line Crosses Cliff[edit | edit source]

  • Action.

Show/Hide Environment[edit | edit source]

  • Action. Shows or hides graphics associated with the game environment. This includes terrain, doodads, and water.

Cliff Level Of Point (Real)[edit | edit source]

  • Function. Returns what cliff level a point is on.

Show/Hide Terrain[edit | edit source]

  • Action. Show or hide a region of terrain. Useful for areas of terrain that are entirely covered by a doodad.

Set Water State[edit | edit source]

  • Action. Changes the water state on a map. This causes a water template to shift between its different pre-determined settings.

Height At Point[edit | edit source]

  • Function. Returns the height at a point.