Manee
New Member
- Reaction score
- 20
Code:
Shared Bounty
Events
Unit - A unit Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Killing unit)) Equal to Player 1 (Red)
(Owner of (Killing unit)) Equal to Player 2 (Blue)
(Owner of (Killing unit)) Equal to Player 3 (Teal)
(Owner of (Killing unit)) Equal to Player 4 (Purple)
Then - Actions
Set TempPoint = (Position of (Triggering unit))
Set sharedgold = ((Point-value of (Triggering unit)) / (Number of players in Force1))
Set FloatingText = (Last created floating text)
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
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of FloatingText to 1.00 seconds
Special Effect - Destroy (Last created special effect)
Player Group - Pick every player in Force1 and do (Actions)
Loop - Actions
Player - Add sharedgold to (Picked player) Current gold
Custom script: call RemoveLocation (udg_TempPoint)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Killing unit)) Equal to Player 5 (Yellow)
(Owner of (Killing unit)) Equal to Player 6 (Orange)
(Owner of (Killing unit)) Equal to Player 7 (Green)
(Owner of (Killing unit)) Equal to Player 8 (Pink)
Then - Actions
Set TempPoint = (Position of (Triggering unit))
Set sharedgold = ((Point-value of (Triggering unit)) / (Number of players in Force2))
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
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 1.00 seconds
Special Effect - Destroy (Last created special effect)
Player Group - Pick every player in Force2 and do (Actions)
Loop - Actions
Player - Add sharedgold to (Picked player) Current gold
Custom script: call RemoveLocation (udg_TempPoint)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Killing unit)) Equal to Player 9 (Gray)
(Owner of (Killing unit)) Equal to Player 10 (Light Blue)
(Owner of (Killing unit)) Equal to Player 11 (Dark Green)
(Owner of (Killing unit)) Equal to Player 12 (Brown)
Then - Actions
Set TempPoint = (Position of (Triggering unit))
Set sharedgold = ((Point-value of (Triggering unit)) / (Number of players in Force3))
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
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 1.00 seconds
Special Effect - Destroy (Last created special effect)
Player Group - Pick every player in Force3 and do (Actions)
Loop - Actions
Player - Add sharedgold to (Picked player) Current gold
Custom script: call RemoveLocation (udg_TempPoint)
Else - Actions
sometimes, the floating text doesn't disappear at once...
why is this so?
what must I change?