• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

capture points

Status
Not open for further replies.
Level 1
Joined
May 1, 2017
Messages
2
so im making custom map where there is 2 team and there is points (obelisk) on map witch have a guardian(for neutral) so idea is that players go kill guardian than capture the the point (obelisk) the obelisk transfers from neutral to their team and summons a guardian for their team. (example from neutral to player dark green) how i can make that to work with trigger? i tried using rescue command but once new guard is made it no longer goes to trigger cuz it new unit and not selected from them map? do i need a variable at least so basic example would help thx
 
if your only condition for changing the capture point is the succesful kill of a guardian you could use variable arrays

Guardian[x]
Obelisk[x]

x being the number of your capture points

Then make x Triggers, one for each capture point

  • Events
    • Unit - a Unit dies
  • Conditions
    • Triggering Unit = Guardian [x]
  • Actions
    • Unit - Change ownership of Obelisk [x] to owner of Killing Unit
    • Unit - Create 1 Guardian at position of Obelisk[x]
    • set Guardian[x] = last created unit

only the general idea, you can probably optimize it to fit in 1 Trigger
 
Status
Not open for further replies.
Back
Top