Floating attack and spell damage

LmmcDarkY

New Member
Reaction score
1
Could someone give me a prototype of system how to make floating text with melee damage dealt and spell damage recived, also i would like to do it with healing aswell.
 

jarekpl12

TH.net Regular
Reaction score
6
thats my idea but it need fading

Damage done with spells:

Trigger:
  • Ice Lance
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Ice Lance
    • Actions
      • Set IceLancePG = (Player group((Owner of (Triggering unit))))
      • Text - Create floating text that reads (String((Integer((1.50 x -(Real((Inteligencja of (Triggering unit) (Include bonuses))))))))) above (Target unit of ability being cast) with Z offset 0.00, using font size 12.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Text - Hide (Last created floating text) for (All players)
      • Text - Show (Last created floating text) for IceLancePG
      • Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
      • Text - Change (Last created floating text): Disable permanence
      • Text - Change the lifespan of (Last created floating text) to 2.00 seconds
      • Custom script: call DestroyForce (udg_IceLancePG)




Damage taken:

Trigger:
  • dmage 1
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
    • Actions
      • Trigger - Add to dmage 2 <gen> the event (Unit - (Triggering unit) Takes damage)


Trigger:
  • dmage 2
    • Events
    • Conditions
    • Actions
      • Set damage = (Damage taken)
      • Set DamagePlayerGroup = (Player group((Owner of (Triggering unit))))
      • Text - Create floating text that reads (- + (String((Integer(damage))))) above (Attacked unit) with Z offset 0.00, using font size 9.50, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
      • Text - Hide (Last created floating text) for (All players)
      • Text - Show (Last created floating text) for DamagePlayerGroup
      • Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
      • Text - Change (Last created floating text): Disable permanence
      • Text - Change the lifespan of (Last created floating text) to 1.00 seconds
      • Custom script: call DestroyForce (udg_DamagePlayerGroup)




Healing done with spells:

Trigger:
  • Holy Light heal
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • ((Ability being cast) Equal to Holy Light )
    • Actions
      • Set HolyLightPlayerGroup = (Player group((Owner of (Triggering unit))))
      • Text - Create floating text that reads (+ + (String((Integer((4.00 x (Real((Inteligencja of (Triggering unit) (Include bonuses)))))))))) above (Target unit of ability being cast) with Z offset 0.00, using font size 12.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
      • Text - Hide (Last created floating text) for (All players)
      • Text - Show (Last created floating text) for HolyLightPlayerGroup
      • Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
      • Text - Change (Last created floating text): Disable permanence
      • Text - Change the lifespan of (Last created floating text) to 2.50 seconds
      • Custom script: call DestroyForce (udg_HolyLightPlayerGroup)






-Setting variable of PlayerGroup, Hiding, Showing and Destroying Force Variable of PlayerGroup is for make your floating text show only for you.
-Velocity is to make your text move in the site where u want
- lifespan is to make duration of your text
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top