• 🏆 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 problems with custom abilities

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 HT_DMG_MP = (2.00 x (Real((Level of Reincarnation 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
      • -------- ------------------------------------------------------------------------------------------------- --------
      • -------- 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)
I'm making a new thread for a bunch of my abilities since some people does not like posting each ability in a new thread. About problem - somehow this skill does not work but it worked the day before I've started making items :p. I will post my map with custom skill called "Hammer Toss". There is a footman for tests http://www.filedropper.com/testingmap-hammertoss
 
Level 13
Joined
Dec 21, 2010
Messages
541
In the part where -------- Setting the Dummy, ordering it to cast a spell --------

I didn't see you ordering the last created unit to cast a spell..

you only did was add the expiration timer, add the Ability Dummy and setting it to the level of the ability being cast...
 
Status
Not open for further replies.
Top