Shared Bounty trigger

Manee

New Member
Reaction score
20
Shared Bounty

how do u share the bounty received from an enemy unit among the owner of the killing unit's team ?
 

Manee

New Member
Reaction score
20
why wont some of the floating text get deleted here?

Code:
Kills
    Events
        Unit - A unit Dies
    Conditions
    Actions
        Set TempPoint = (Position of (Triggering unit))
        Set sharedgold = ((Point-value of (Triggering unit)) / (Number of players in (All allies of (Owner of (Killing unit)))))
        Set Allies = (All allies of (Owner of (Killing unit)))
        Floating Text - Create floating text that reads (+ + (String(sharedgold))) at TempPoint with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency
        Special Effect - Create a special effect at TempPoint using UI\Feedback\GoldCredit\GoldCredit.mdl
        Wait 1.00 seconds
        Floating Text - Destroy (Last created floating text)
        Special Effect - Destroy (Last created special effect)
        Player Group - Pick every player in Allies and do (Actions)
            Loop - Actions
                Player - Add sharedgold to (Picked player) Current gold
        Custom script:   call RemoveLocation (udg_TempPoint)
        Custom script:   call DestroyForce(udg_Allies)
 
Reaction score
456
Do not destroy floating texts, instead, give them life time. There's an action for it.
 

Manix

Well-Known Member
Reaction score
29
Instead of making a whole new thread i decided to ask something about the floating text... -rep me if u want - how can i make a floating text above an unit and make that text move as the unit does?
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
@Manix: IT may be laggy, but create the text every .5 seconds and remove the other text while this is happening.
 
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