Help on new map

Status
Not open for further replies.
Level 12
Joined
Dec 17, 2009
Messages
951
hello guyz
I need that trigger working.
Anyone can set it for me


Damage Display System
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Tank_Player[(Integer A)] is alive) Equal to True
Tank_Player[(Integer A)] Not equal to No unit
(Custom value of Tank_Player[(Integer A)]) Greater than (Integer((Life of Tank_Player[(Integer A)])))
Then - Actions
Set DamageDifference = ((Custom value of Tank_Player[(Integer A)]) - (Integer((Life of Tank_Player[(Integer A)]))))
Floating Text - Create floating text that reads (- + (String(DamageDifference))) above Tank_Player[(Integer A)] with Z offset 0.00, using font size 10.00, color (100.00%, 8.00%, 8.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 60.00 towards 270.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
Floating Text - Change the lifespan of (Last created floating text) to 1.20 seconds
Unit - Set the custom value of Tank_Player[(Integer A)] to (Integer((Life of Tank_Player[(Integer A)])))
Set DamageDifference = 0
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Tank_Player[(Integer A)] is alive) Equal to True
Tank_Player[(Integer A)] Not equal to No unit
(Custom value of Tank_Player[(Integer A)]) Less than (Integer((Life of Tank_Player[(Integer A)])))
Then - Actions
Unit - Set the custom value of Tank_Player[(Integer A)] to (Integer((Life of Tank_Player[(Integer A)])))
Else - Actions

Sorry bad english
Tyvm :thumbs_up:
 
Level 7
Joined
Apr 12, 2009
Messages
188
  • Events
  • Time - Every 1.00 seconds of game time
  • Conditions
  • Actions
    • For each (Integer A) from 1 to 12, do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Tank_Player[(Integer A)] is alive) Equal to True
            • Tank_Player[(Integer A)] Not equal to No unit
            • (Custom value of Tank_Player[(Integer A)]) Greater than (Integer((Life of Tank_Player[(Integer A)])))
          • Then - Actions
            • Set DamageDifference = ((Custom value of Tank_Player[(Integer A)]) - (Integer((Life of Tank_Player[(Integer A)]))))
            • Floating Text - Create floating text that reads (- + (String(DamageDifference))) above Tank_Player[(Integer A)] with Z offset 0.00, using font size 10.00, color (100.00%, 8.00%, 8.00%), and 0.00% transparency
            • Floating Text - Set the velocity of (Last created floating text) to 60.00 towards 270.00 degrees
            • Floating Text - Change (Last created floating text): Disable permanence
            • Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
            • Floating Text - Change the lifespan of (Last created floating text) to 1.20 seconds
            • Unit - Set the custom value of Tank_Player[(Integer A)] to (Integer((Life of Tank_Player[(Integer A)])))
            • Set DamageDifference = 0
          • Else - Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • (Tank_Player[(Integer A)] is alive) Equal to True
                • Tank_Player[(Integer A)] Not equal to No unit
                • (Custom value of Tank_Player[(Integer A)]) Less than (Integer((Life of Tank_Player[(Integer A)])))
              • Then - Actions
                • Unit - Set the custom value of Tank_Player[(Integer A)] to (Integer((Life of Tank_Player[(Integer A)])))
              • Else - Actions
First: If you post your trigger text between [.TRIGGER] PASTE HERE [./TRIGGER], without those red periods, it looks like it does above. Or you can paste it, highlight the text, and click the wrap TRIGGER tags around selected text button in advanced edit mode and it puts the formatting in for you.

Second: Are you trying to make a floating damage text system? I'm going to assume you are.

Instead of doing what you are doing (an interesting idea, but not the best way of doing it), click this link and download and install Weep's GUI friendly damage detection system (easy copy paste of 3 triggers into your map).

GUI Friendly Damage Detection

Then you can make a trigger like this:

  • Create Text
    • Events
      • Game - GDD_Event becomes Equal to 0.00
    • Conditions
      • GDD_Damage Greater than 1.00
    • Actions
      • Floating Text - Create floating text that reads (String((Integer(GDD_Damage)))) above GDD_DamagedUnit with Z offset 0.00, using font size 8.00, color (100.00%, 14.00%, 14.00%), and 0.00% transparency
      • Floating Text - Hide (Last created floating text) for (All players matching ((Owner of GDD_DamageSource) Not equal to (Matching player)))
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Set the velocity of (Last created floating text) to (Random real number between 50.00 and 100.00) towards (Random real number between 70.00 and 110.00) degrees
      • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
      • Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
Obviously you can play with conditions and variables to make it work like you want it to. If you need more help with it let me know :D
 
Level 12
Joined
Dec 17, 2009
Messages
951
I a map to download with this trigger working.Cuz i cant make this work
ty
 
Last edited:
Status
Not open for further replies.
Top