• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Having trouble with skill

Status
Not open for further replies.
Level 2
Joined
Feb 21, 2014
Messages
18
  • Hammer Toss
    • Wydarzenia
      • Jednostka - A unit Rozpoczyna dziaĹ‚anie zdolnoĹ›ci
    • Warunki
      • (Ability being cast) RĂłwna siÄ™ Hammer Toss
    • Akcje
      • -------- ------------------------------------------------------------------------------------------------- --------
      • -------- Getting the Spell constants --------
      • -------- ------------------------------------------------------------------------------------------------- --------
      • Set HT_Caster = (Triggering unit)
      • Set HT_Target = (Target unit of ability being cast)
      • Set HT_Location = (Position of HT_Target)
      • Set HT_Owner = (Owner of HT_Caster)
      • Set HT_ability_level = (Level of (Ability being cast) for HT_Caster)
      • -------- ------------------------------------------------------------------------------------------------- --------
      • -------- Setting the Spell values --------
      • -------- ------------------------------------------------------------------------------------------------- --------
      • Set HT_STR = (SiĹ‚a of HT_Caster (NanieĹ› bonuses))
      • Set Power_Slam_Damage_Multiplier = (2.00 x (Real((Level of Hammer Toss for HT_Caster))))
      • Set HT_DMG = ((Real(HT_STR)) x HT_DMG_MP)
      • Set HT_Dummy = Hammer Toss(dummy)
      • -------- ------------------------------------------------------------------------------------------------- --------
      • -------- Damaging the Target --------
      • -------- ------------------------------------------------------------------------------------------------- --------
      • Jednostka - Cause HT_Caster to damage HT_Target, dealing HT_DMG damage of attack type ZaklÄ™cia and damage type Nieznany
      • -------- ------------------------------------------------------------------------------------------------- --------
      • -------- Setting the Dummy, ordering it to cast a spell --------
      • -------- ------------------------------------------------------------------------------------------------- --------
      • Jednostka - Create 1 Dummy for HT_Owner at HT_Location facing DomyĹ›lna orientacja budynku degrees
      • Jednostka - Add a 1.50 second OgĂłlny expiration timer to (Last created unit)
      • Jednostka - Add HT_Dummy to (Last created unit)
      • Jednostka - Set level of HT_Dummy for (Last created unit) to HT_ability_level
      • Jednostka - Order (Last created unit) to CzĹ‚owiek - KrĂłl GĂłry: Pocisk Burzy HT_Target
      • -------- Creating and setting floating text --------
      • -------- ------------------------------------------------------------------------------------------------- --------
      • Tekst - Create floating text that reads ((String((Integer(HT_DMG)))) + !) above HT_Target with Z offset 0.00, using font size 10.00, color (0.00%, 40.00%, 100.00%), and 0.00% transparency
      • Tekst - Change (Last created floating text): WyĹ‚Ä…cz permanence
      • Tekst - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
      • Tekst - Change the fading age of (Last created floating text) to 3.00 seconds
      • Tekst - Change the lifespan of (Last created floating text) to 5.00 seconds
      • -------- ------------------------------------------------------------------------------------------------- --------
      • -------- Clearing Leaks --------
      • -------- ------------------------------------------------------------------------------------------------- --------
      • Custom script: call RemoveLocation(udg_HT_Location)
Im having tough problems with this ability. It does not deal damage and when I hit a unit with it then float text appears twice and shows "0"
 
Level 2
Joined
Feb 21, 2014
Messages
18
okey damage is working but I've got now to dmg messages the first one is "0" and the 2nd one appears to be the good one
 
Status
Not open for further replies.
Top