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

RKR Trigger

Status
Not open for further replies.
Level 17
Joined
Jun 17, 2010
Messages
2,275
  • Collision
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • Trigger - Add to Collision Copy <gen> the event (Unit - A unit comes within 256.00 of (Picked unit))
  • Collision Copy
    • Events
    • Conditions
    • Actions
      • Unit - Kill (Picked unit)
For the first trigger you pick the unit group that has the units (kittens) and set the range as the collision of the unit you want it to die from. And there you go... If the unit revives you have to put them back into that unit group.
 
Level 8
Joined
Jun 16, 2008
Messages
333
That's not what I meant but thanks anyways. I am looking for when a Unit comes in collision it dies but a circle of power replaces his spot but it can't move. Now if another unit touches the circle of power then the unit revives.
 
Level 17
Joined
Jun 17, 2010
Messages
2,275
All u asked for was the collision trigger...
  • Collision
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • Trigger - Add to Collision Copy <gen> the event (Unit - A unit comes within 256.00 of (Picked unit))
  • Collision Copy
    • Events
    • Conditions
    • Actions
      • Set Point[0] = Point of (Picked unit)
      • Unit - Kill (Picked unit)
      • Unit - Create 1 circle of power at (Point)......
      • Set Dead[0] = Last created unit
      • Trigger - Add to Revive <gen> the event (Unit - Unit comes within 100 range of Dead[0]
  • Revive
    • Events
    • Conditions
      • Unit - Unit-type of (triggering unit) = kitten
    • Actions
      • Unit - Replace Dead[0] with kitten
      • Selection - Select last created unit for (owner of (Last created unit)
something like that?
btw i did this from my memory of triggers, and it has alot of leaks xD
 
Last edited:
Status
Not open for further replies.
Top