How do I make this, so it actually works? Dying unit.

lindenkron

You can change this now in User CP
Reaction score
102
Trigger:
  • UnitDies
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Attacking unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True
    • Actions
      • Set BountyInt = (Point-value of (Triggering unit))
      • Player - Add BountyInt to (Owner of (Attacking unit)) Current gold
      • Floating Text - Create floating text that reads (String(BountyInt)) above (Triggering unit) with Z offset 0.00, using font size 8.00, color (100.00%, 80.00%, 0.00%), and 0.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the fading age of (Last created floating text) to 0.50 seconds
      • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
      • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
      • Set BountyInt = 0


The issue is, a dying unit doesn't seem to have any "Attacking unit" .. since it's dead. Just like the annoying issue with dead units not having buffs.

Any suggestions?

thx,
-Lindenkron
 

Carl-Fredrik

New Member
Reaction score
51
Trigger:
  • UnitDies
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Attacking unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True
    • Actions
      • Set BountyInt = (Point-value of (Triggering unit))
      • Player - Add BountyInt to (Owner of (Attacking unit)) Current gold
      • Floating Text - Create floating text that reads (String(BountyInt)) above (Triggering unit) with Z offset 0.00, using font size 8.00, color (100.00%, 80.00%, 0.00%), and 0.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the fading age of (Last created floating text) to 0.50 seconds
      • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
      • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
      • Set BountyInt = 0


The issue is, a dying unit doesn't seem to have any "Attacking unit" .. since it's dead. Just like the annoying issue with dead units not having buffs.

Any suggestions?

thx,
-Lindenkron


Change Attacking Unit to Killing Unit? :p
 

lindenkron

You can change this now in User CP
Reaction score
102
Changed Attacking -> Killing. Worked :)
(Not quiet what you said, but enough that it helped me find the answer)
+rep :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top