If unit attacks ally, unit dies HELP!!

JuiceBox

New Member
Reaction score
13
[SOLVED]
I can't seem to figure out how to do this simple trigger. Help please... :( [I will give +1 rep for a successful answer]
 

jackall

You can change this now in User CP.
Reaction score
37
Trigger:
  • kill allies that kill allies <- kinda ironic i guess...
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set DyingUnit = (Triggering unit)
      • Set KillingUnit = (Killing unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (KillingUnit belongs to an ally of (Owner of DyingUnit)) Equal to True
        • Then - Actions
          • Unit - Kill KillingUnit
        • Else - Actions
 

JuiceBox

New Member
Reaction score
13
Trigger:
  • kill allies that kill allies <- kinda ironic i guess...
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set DyingUnit = (Triggering unit)
      • Set KillingUnit = (Killing unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (KillingUnit belongs to an ally of (Owner of DyingUnit)) Equal to True
        • Then - Actions
          • Unit - Kill KillingUnit
        • Else - Actions

I know right? LOL Thanks! +1 rep for you. :)
 

NullCurrent

( ゚ε ゚)
Reaction score
110
Dang, he got there before me... but here is how i did mine, no need to rep me, his is cleaner, but i still want to post mine =p

Trigger:
  • NoAllyAttack
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • Player Group - Pick every player in (All allies of (Owner of (Attacking unit))) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Owner of (Attacked unit)) Equal to (Picked player)
            • Then - Actions
              • Unit - Kill (Attacking unit)
            • Else - Actions
 

Manix

Well-Known Member
Reaction score
29
Omg.. It's as simple as

Trigger:
  • Kill allies that kill allies
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Triggering unit) belongs to an ally of (Owner of (Attacking unit))) Equal to True
    • Actions
      • Unit - Kill (Attacking unit)
 

xPass

All aboard the xPass Express!
Reaction score
26
LOL??? It's so simple yet i see many ppl making it LOOOONG and CONFUSING.... lol

--EDIT--
sry i'm newb lol... ps
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top