Show Damage Deal to Unit

MicroSheep

New Member
Reaction score
3
you'll need to make a damage detection system.

Trigger:
  • Setting Units
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
    • Actions
      • Trigger - Add to Damage Taken <gen> the event (Unit - (Triggering unit) Takes damage)


Trigger:
  • Damage Taken
    • Events
    • Conditions
    • Actions
      • Set damage = (Integer((Damage taken)))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • damage Greater than 0
        • Then - Actions
          • Floating Text - Create floating text that reads (String(damage)) above (Triggering unit) with Z offset 0.00, using font size 10.00, color (100.00%, 20.00%, 20.00%), and 0.00% transparency
          • Floating Text - Set the velocity of (Last created floating text) to 120.00 towards 90.00 degrees
          • Floating Text - Change (Last created floating text): Disable permanence
          • 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 0.40 seconds
        • Else - Actions
          • Do nothing
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Won't there be 100 events if there are 100 units..? o.o

Also remove the Do nothing, it does nothing.
 

KoJi

Member
Reaction score
1
Set damage = (Integer((Damage taken))) the damage is wad variable type?
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Unit - A unit enters region. Then change the region to playable map area. If you see, it starts with "unit -" so you just have the ones with that.

Edit: It's an integer. It's converting real to integer, so it's an integer variable.
 

KoJi

Member
Reaction score
1
Set damage = (Integer((Damage taken))) I cant find Damage taken
So, the variable type i put integer or real?
damage Greater than 0 its under integer or real?
 

KoJi

Member
Reaction score
1
damage Greater than 0 its under integer or real
i put under integer n the picture is different mine is "?" urs is gear
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
It is okay if it's different. I strongly advise you play around with the world editor first, get to know more actions and familiarise with the types of actions. That way you don't have to wait for help for simple things and thus be much more efficient.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
PLEASE, don't triple post. Avoid double/triple(or more) posting. Meaning posting twice or more times in the same therad within 24 hours.
 

Ayanami

칼리
Reaction score
288
PLEASE, don't triple post. Avoid double/triple(or more) posting. Meaning posting twice or more times in the same therad within 24 hours.

Actually, he did a quadruple post. Anyways, adding on to his post, please use the "Edit" button instead of doing double/triple/quadruple post.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
In case he doesn't know how to... To edit your posts you click this button
edit.gif
at the bottom right of your post. After which you edit whatever you want in your post, and then you click the save button.
 
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