• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Heal-show-up-system

Status
Not open for further replies.
Level 4
Joined
Dec 15, 2007
Messages
108
hi
i saw i many maps when a nit gets healed that in green fload text it is showing how much the unit is healed. so i get this for dmg system that the dmg which is dealing to an unit will show p but how to do for heal coz at this trigger only is action - a unit dealt dmg and u cant choosing heal or something like that do could u help me? plz

here is the dmg system maybe helps :X

first part:

FloatText Creation Kopieren 2
Ereignisse
Bedingungen
Aktionen
Schwebender Text - Create floating text that reads (String((Integer((Damage taken))))) above (Triggering unit) with Z offset 5.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Schwebender Text - Set the velocity of (Last created floating text) to 100.00 towards 85.00 degrees
-------- - --------
Schwebender Text - Change (Last created floating text): Deaktivieren permanence
Schwebender Text - Change the lifespan of (Last created floating text) to 1.40 seconds
Schwebender Text - Change the fading age of (Last created floating text) to 0.65 seconds
-------- - --------
second part:

Unit Detection Kopieren 2
Ereignisse
Einheit - A unit enters (Playable map area)
Bedingungen
((Entering unit) is Ein Held) Gleich True
Aktionen
Auslöser - Add to FloatText Creation <gen> the event (Einheit - (Triggering unit) Nimmt Schaden)

third part:

Unit Check Kopieren 2
Ereignisse
Map initialization
Bedingungen
Aktionen
Set TextDamage = (Units in (Playable map area))
-------- - --------
Einheitengruppe - Pick every unit in TextDamage and do (Actions)
Schleifen - Aktionen
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
((Picked unit) is Ein Held) Gleich True
'THEN'-Aktionen
Auslöser - Add to FloatText Creation <gen> the event (Einheit - (Picked unit) Nimmt Schaden)
'ELSE'-Aktionen
Do nothing
-------- - --------
Custom script: call DestroyGroup(udg_TextDamage)



REALLY THX FOR HELP!!!!!!!!!!!!:thumbs_up::thumbs_up::thumbs_up::thumbs_up::thumbs_up::thumbs_up:
 
Status
Not open for further replies.
Top