Star map editing-trigger Introduction

Source: Internet
Author: User

Triggers must be used to edit a single-user map. Otherwise, you will find that all computer players are dead, and nothing will be done, just standing on the screen. in addition, the use of triggers is also essential for computers to carry out "smart intelligence" actions. next I will give you a brief introduction to the trigger, the core tool of the StarCraft campaign editor.
Open the trigger to see the upper and lower windows. the window above lists all players used by the game. Click the player to view the trigger settings for the player in the window below. the close and help buttons are on the right side of the window above, and the new button is on the right side of the window below. modify. copy. delete button and read trigger and save trigger. trigger consists of three parts: the player that triggers the execution. the trigger condition. trigger. if you create a new trigger, first select the player that executes the trigger (players), which is divided into players 1-8. all players and Teams 1-4. then there is the condition that triggers the trigger, and finally the triggered action (actions ). the combination of conditions and actions can achieve a variety of effects you think. this article will give you a brief introduction to the conditions and actions.
Condition)

Accumulate player accumulates quantity resources.
Always. Always
Bring player brings quantity units to location. When the number of units carried by the player to a specific area
Command player commands quantity units. Number of units controlled by the player
Command the least current player commands the least units. Minimum number of units controlled by the current player
Command the least at current player commands the least units at location. When the current player controls at least how many units in a specific area
Command the most current player commands the most units. The maximum number of units controlled by the current player
Command the most at current player commands the most units at location. The maximum number of units that the current player can control in a specific area
Countdown timer countdown timer is duration game seconds. number of seconds for countdown of game time
Deaths player has suffered quantity deaths of unit.
Elapsed time elapsed scenario time is duration game seconds. number of seconds after the game time (game time)
Highest score current player has highest score points. The highest score for the current player
Kill player kills quantity units. When the player kills a certain number of units
Least kills current player has least kills of Unit
Least Resources Current player has least resources. Currently, there are only a few accumulated resources for players.
Lowest score current player has lowest score points. Current player lowest score
Most kills current player has most kills of Unit. When the current player kills the largest unit
Most Resources Current player has most resources. When the current player accumulates the most resources
Never. Never
Opponents player has quantity opponents remaining in the game.
Score player score type score is quantity. When the player scores
Switch switch is set. When the switch is set or cleared

Action)

Center View Center view for current player at location. Move the screen to a specific area
Comment comment: Comment. Describe the trigger to facilitate reading.
Create units create Quantity Unit at location for player creates a certain number of units for players in a specific region
Create units
Properties create Quantity Unit at location for player. Apply properties creates a certain number of units with certain attributes (such as stealth and drilling ground) for players in a specific region.
Defeat end scenario in defeat for current player. The current player task fails.
Display text message display for current Player: Text. displays some explanatory text for the current player
Draw end the scenario in a draw for all players.
Give units to player give quantity units owned by player at location to player. assign a certain number of troops from one player (the former) in a specific region to another player (the latter)
Kill unit kill all units for player. Kill all units of the player
Kill units at location kill quantity units for player at location. Kill a certain number of units of players in a specific area.
Leader board (control atlocation) show leader board for most control of units at location. Display label: Label displays the organization control status in a specific area.
Leader board (Control) show leader board for most control of Unit. Display label: Label displays current unit control information
Leader board (greed) show greed leader board for player closest to accumulation of number ore and gas. displays the current total resource collection
Leader board (kills) show leader board for most kills of Unit. Display label: Label displays the current killing Unit
Leader board (points) show leader board for most points. Display label: Label displays the current score
Leader board (resources) show leader board for accumulation of most resource. Display label: Label displays the current resource collection status
Leader board goal (control at location) show leader board for player closest to control of number of units at location. Display label: Label shows how many units can be reached in a specific region
Leader board goal (Control) show leader board for player closest to control of number of unit. Display label: Label displays the number of units that need to be controlled to reach the target.
Leader board goal (kills) show leader board for player closest to number kills of Unit. Display label: Label shows the number of units to be killed to reach the target.
Leader board goal (points) show leader board for player closest to number points. Display label: Label shows the distance from the target score
Leader board goal (resources) show leader board for player closest to accumulation of number resource. Display label: Label display also collects resources to reach the target
Leader board computer players Set use of computer players in leaderboard calculations. displays when the computer is disabled or turned on
Minimap ping Show minimap ping for current player at location. The alarm box is displayed on the current player's map.
Modify unit energy Set energy points for quantity units owned by player at location to percent %. Modify the energy of a certain number of player control units in a specific region
Modify unit hangar count add at most quantity to hangar for quantity units at location owned by player. Modify the ammunition of a certain number of player control units in a specific area (such as aircraft carriers and golden beetle)
Modify unit hit points set hit points for quantity units owned by player at location to percent %. Modify the lifecycle of a certain number of player control units in a specific region
Modify unit resource amount set resource amount for quantity resource sources owned by player at location to quantity. Modify the energy of a certain number of player control units in a specific region
Modify unit shield points set shield points for quantity units owned by player at location to percent %. Modify the shield of a certain number of player control units in a specific region
Move location Center location labeled location on units owned by player at location. Move a specific area to another specific area
Move units Move quantity units for player at location to destination. Move a certain number of players from a specific area to another specific area
Mute unit speech mute all non-trigger unit sounds for current player. Disable the sound of all non-trigger units of the current player.
Order issue order to all units owned by player at location: Order to destination. The unit of the command player moves from a specific area. Attack. Patrol to another specific area
Pause game pause the game. Pause the game
Pause timer pause the countdown timer. Pause the countdown
Play wav file play a piece of sound
Preserve trigger preserve trigger. The current trigger of loop execution
Remove unit remove all units for player. Remove all players
Remove units at location remove quantity units for player at location. Remove a certain number of units of players in a specific area.
Run AI script execute AI script. Run an AI
Run AI script at location execute AI Script script at location. Run an AI in a specific area
Set Alliance status set player to ally status. Set the current player to be in league with another player or to be hostile.
Set countdown timer modify countdown timer: set duration seconds. Set the countdown time
Set deaths modify death counts for player: set quantity for unit. Set the unit of death count for players.
Set doodad state set doodad state for units for player at location. Set small objects in a specific area
Set invincibility set invincibility for units owned by player at location to set invincible player units in a specific region
Set mission objectives set mission objectives to: Text. Set this task
Set next scenario load scenario after completion of current game. Set the map to be read after the current task ends.
Set resources modify resources for player: set quantity resource. Set a certain number of resources for players.
Set score modify score for player: set quantity points. Set the player score
Set switch. Switch Settings
Talking portrait show unit talking to current player for duration milliseconds. Shows the portrait of the current player for a period of time.
Transmission Send transmission to current player from unit at location. play wav file. Modify transmission Duration: set number milliseconds. display the following text: text sets a dialog. Displays the location of a unit on a small map, accompanied by sound and text.
Unmute unit speech unmute all non-trigger unit sounds for current player. Disable all non-trigger units of the current player.
Unpause game unpause the game. unpause the game
Unpause timer unpause the countdown timer. Pause the countdown.
Victoffend scenario in victofffor current player. Current player task victory
Wait For duration milliseconds. Wait for a while (1‰ seconds)

because the introduction is not very specific, it may not be useful for map editing experts at all, but it is useful for players who have just started to access map editing, in the future, we will further introduce the details. if you encounter any ambiguity during map editing, you are welcome to discuss it together.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.