Damage Trigger

tonton302

Member
Reaction score
0
This trigger made me very confused:banghead: but is very helpful to the map.

The trigger would be like this:
A unit attacks another unit and it shows the damage floating up over the unit for about 1 sec and it dissaperes. This trigger is in The Cursed Hero's ORPG and it works in there so if u can help plz.
 

DragonBlade

Member
Reaction score
0
event:
unit - a unit is attacked

conditon:
none

actions:
Floating Text - Create floating text that reads (String(((Integer((Max life of (Attacked unit)))) - (Integer((Life of (Attacked unit))))))) at (Position of (Attacked unit)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
event:
unit - a unit is attacked

conditon:
none

actions:
Floating Text - Create floating text that reads (String(((Integer((Max life of (Attacked unit)))) - (Integer((Life of (Attacked unit))))))) at (Position of (Attacked unit)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
that wont work as he wants it to do.


@tonton302: this is a little bit tricky with the world editor, what you need is a damage detection system (DDS) because the "unit is attacked" event occurs before the attacked unit takes any damage, therefor you 1). cannot get the amount of damage dealt with that event 2). the floating text would appear too early for ranged attacks.

I would say, use Weeps gui-friendly-damage-detection-system (GDD).
this way you can track whether a unit actually takes damage, this will fire for any kind of damage any time for every unit.
 
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