• 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.

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
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
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.
Top