QUOTE(PePiTo2 @ Mar 1 2005, 09:37 PM)
I need these help with setting up these three triggers:
1. science vessels patrol, and if a zergling gets in its way, the zergling dies.
2. a maze where if the zerglings touch marines, the zerglings will die.
3. If a zergling dies, it will respawn at beinging of the obsticle.
4. a life countdown from 50
5. units walk from one location to another then disapear, and if zerglings touch them, the zerglings die.
So just put down what actions & conditions i need to add for each trigger please!
[right][snapback]156778[/snapback][/right]
1 2 and 5:
You need to center a location on your players zergling, then if the computers unit goes in that location you kill the zergling. It would look something like this.
| Trigger |
| Players: |
| ¤ Force 1 (human players) |
| Conditions: |
| ¤ Always |
| Actions: |
¤ Center locaiton 'zergling 1x1' on zergling owned by current player at anywhere.
|
| ¤ Preserve Trigger |
Then do this
| Trigger |
| Players: |
| ¤ Force 1 |
| Conditions: |
| ¤ Player 8 (comp who owns the units), brings at least one men to 'zergling 1x1' |
| Actions: |
¤ Kill all zerglings owned by current player.
|
| ¤ Preserve Trigger |
That should do it for those.
To make a unit patrol or walk to a spot use the 'ORDER' action.
For 5, Use Create and Remove at the start and end.
*Between Classes* i'll include the rest later*
Ok Back
3. The best way to do this is the hardest to understand but the easyest to trigger. One way to make the respawn triggers is to make a differant respawn trigger for each level. But were not going to do that. This is what you need to do.
Create a 'respawn' location at the start of each level where you want the players to respawn (many times this may be the same location as the 'end level' location, thats alright as long as there is a location there)
First you have your respawn trigger that will look like this
| Trigger |
| Players: |
| ¤ Force 1 |
| Conditions: |
¤ Current player commands exactly 0 zerglings
|
| ¤ Current player Custom score is at least 1 |
| Actions: |
¤ Create one zergling at 'respawn [M]' for current player. (I use [M] to respresent a location that is centered lol)
|
¤ Set custom score for current player' to subtract 1
|
| ¤ Preserve Trigger |
Then all you have to do is modify your actions of your level up trigger to center the 'respawn [M] locaiton' on the new spot.
| Trigger |
| Players: |
| ¤ Force 1 |
| Conditions: |
| ¤ Force 1 brings at least one men to 'end level 1' |
| Actions: |
¤ Set deaths of 'Level Counter' to 2 for 'player'
|
| ¤ NEW, Center location 'respawn [M]' on 'non existant unit' owned by 'some player' at 'Level 2 Respawn' |
The action to center a location is labeled "MOVE LOCATION"
What these triggers do is moves the 'respawn [M]' location to the start of each level. When ever you beat one. This allows you to use one respawn trigger instead of making a new one for each respawn trigger.
Advanced Note: If you center a location on a unit that isn't there, the location will automaticly move to the center of the zone that it was centered on. Anotherwords your centering one location on another one.
Well i'm out of time again, Got to play MTG
Back Again lets see if i can finish it all this time.4. To do the life countdown you should use Custom score. You can display the custom score on the leaderboard too. At the start of the game set each players custom score to 50. Then in your death trigger (shown above) subtract custom score every time they die. Dont' forget to require them to have at least one to respawn them though.