View Full Version : How do you.....?
Right basically I am making a new map. There are certain things i am unsure of how to do so I'll just post them in this topic as I go along rather than making about 5 different topics.
Right the first one off the top of my head is like in the Lord of the Rings vs Last Alliance. How do you make someone drop something at the exact position they die. So say an archon drops a crystal exactly where he dies and then for someone to come along and collect it.
So basiccaly how do you-
Make someone drop something where they die
Make someone pick something up when they come near it?
peace_machine
07-04-2004, 8:38 AM
To make someone drop something where they died you will need to make a location to follow them. so..
Conditions:
-Always
Actions:
-Center location labled 'Whatever' on archon owned by player at location
-Preserve trigger
To drop it when they die Id use a death counter. So...
Conditions:
-Player8 has sufferd atleast 1 deaths of archon
- Create 1 crystal at 'Whatever' for player 8
To make somebody 'pick it up'
Conditions:
-Current player brings atleast 1 men to 'Whatever'
-player8 brings atleast 1 crystal to Whatever
(or player8 has sufferd atleast 1 deaths of archon)
Actions:
-Remove 1 crystal at location whatever for player 8
-Set swich 1
Where swich 1 can be used to represent the crystal in other triggers.
EdvardMunch
07-04-2004, 12:01 PM
Conditions:
-Player8 has sufferd atleast 1 deaths of archon
- Create 1 crystal at 'Whatever' for player 8
Also remember to use the action "Set deaths of Archon owned by player 8 to 0" otherwise, since every second of the game player 8 had suffered the loss of an archon, a crystal will be made.
Is this if there are multiple archons on the map, or just one? (Or multiple archons, but a hero archon is the one who drops the crystal)
Cheers for the help guys. I would never have guessed how to do that. Now for the next one.
1. When they die and someone else picks up the item when they die how do you get them to drop the item?
peace_machine
07-05-2004, 12:36 AM
Also remember to use the action "Set deaths of Archon owned by player 8 to 0" otherwise, since every second of the game player 8 had suffered the loss of an archon, a crystal will be made.
Is this if there are multiple archons on the map, or just one? (Or multiple archons, but a hero archon is the one who drops the crystal)There was no preserve trigger so it would only create 1 crystal. Oh and just incase anybody got confused, "- Create 1 crystal at 'Whatever' for player 8"
was an action.
Now... To make the player who picked up the crystal drop it when they die. We will use p1. First you need to make a location follow player 1:
Conditions:
-Always
Actions:
-Cernter location labled 'P1loc' on unit owned by p1 at location
-Preserve trigger
To make them drop it:
Conditions:
-Swich 1 is set
-Player1 has sufferd atleast 1 deaths of unit
Actions:
-Create 1 crystal at 'P1loc' for player ?
-Clear swich 1
Where swich 1 = p1 has picked up the crystal
If players respawn and can drop the crystal multiple times then you will need to set the death counter back to 0 as EdvardMunch said and add a preserve trigger action.
Hope that wasn't too confusing ^^
No I get you and all but Ill make it a bit clearer. A heroe archon dies and drops a crystal say. Then a heroe dragoon comes along and picks it up so he then has the crystal. But when that heroe dragoon dies I want him to drop the crystal. How do I do that?
Also the other thing i wanted to do is to set off a trigger.
e.g.
"Player 1 brings atleast 1 Zeratul to location 1"
"Player 1 brings atleast 1 Raynor to location 1"
How do I do it sso that they can bring either? So they could just bring 1 zeratul with no raynor and set the trigger off or just 1 raynor. This way at the minute it is an and really not an or. Can this be done without creating seperate triggers?
P.S. I now understand about how to make them drop the crystal and someone pick it up. Dont get stuff after that. Thanks.
bluemicrobyte
07-05-2004, 5:36 AM
Just do both of those triggers you mentioned, it's the easiest solution.
peace_machine
07-05-2004, 10:37 AM
P.S. I now understand about how to make them drop the crystal and someone pick it up. Dont get stuff after that. Thanks.
What exactley dont u get?
Ok I will try to make myself a bit clearer. To make the hero archon drop the crystal at its death point use these triggers:
Conditions:
-Always
Actions:
-Center location labled 'AF' of archon owned by player8 at anywhere
Conditions:
-Player 8 has sufferd atleast 1 deaths of archon
Actions:
-Create 1 crystal at 'AF' for player 8
To make the hero dragon pick up the crystal:
Conditions:
-Player 1 brings atleast 1 dragoon to location ÁF'
-Player 8 brings atleast 1 crystal to 'AF'
Actions:
-Remove 1 crystal at ÁF for player 8
-Set swich 1
To make the dragon drop the crystal at death point:
Conditions:
-Always
Actions:
-Center location labled 'DF' on dragoon owned by player 1 at anywhere
-Preserve trigger
Conditions:
-Player 1 has sufferd atleast 1 deaths of dragoon
Actions:
-Create 1 crystal at location 'DF' for player 8
-Clear swich 1
OO hang on I think I just retyped my previous posts¿ And yes, you will need to seperate raynor and zeratule into seperate triggers.
Yeah I got that pretty much from before. But from that trigger if the Archon is still alive and then heroe dragoon dies when the archon is still alive the dragoon will stick drop the crystal even though he doesnt have it.
I dont get how to make the dragoon drop the crystal when he has it so that when he doesnt have it and he dies he doesnt drop it. And when he does have it he drops it.
the best way to picture it is like a relay. Archon dies passes crystal to dragoon, dragoon picks it up carries on dies and drops crystal. Someone else comes along and picks it up etc. (This is not the idea of my map of a race btw).
Well, if there's only one crystal and all the units that can pick it up are human, then you can give them each a little spot to hold the crystal. Then when they die just set it to move that crystal to their last location as you would if you were placing it. Even if there's multiple crystals that would work. It would go something like this:
-----------------------------------------------------------------------------
Conditions
------------
•Current player commands at most 0 (whatever unit).
------------
Actions
------------
•Move all crystals at location "crystal storage for this player" to "location that would have been following this player's unit".
•Blah blah blah respawn perhaps.
•Preserve Trigger.
For picking up a crystal:
------------
Conditions
------------
•(Crystal player) brings at least 1 crystal to "location following player's unit".
------------
Actions
------------
•Move all crystal for 'crystal player' at "location following player's unit" to "Crystal storage loc for this player".
Preserve Trigger.
peace_machine
07-06-2004, 2:46 AM
Yeah I got that pretty much from before. But from that trigger if the Archon is still alive and then heroe dragoon dies when the archon is still alive the dragoon will stick drop the crystal even though he doesnt have it.
Sorry, there should be another condition:
Conditions:
-Player 1 has sufferd atleast 1 deaths of dragoon
-Switch 1 is set
Actions:
-Create 1 crystal at location 'DF' for player 8
-Clear swich 1
When the dragoon picked up the crystal the switch was set, therefore if the dragon dies without picking up the crystal then switch 1 would not be set and the trigger would not execute.
Haplo's trigger would also work if you don't like switches. Although I would put the respawn into a seperate trigger and my triggers didn't allow for respawns, you would need to modify teh deathcount.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.