• 🏆 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] Making a healing spell

Status
Not open for further replies.
Level 2
Joined
Feb 21, 2014
Messages
18
  • Potion Toss
    • Wydarzenia
      • Jednostka - A unit Rozpoczyna dziaĹ‚anie zdolnoĹ›ci
    • Warunki
      • (Ability being cast) RĂłwna siÄ™ Toss Me the Bottle
    • Akcje
      • -------- ------------------------------------------------------------------------------------------------- --------
      • -------- Getting the Spell constants --------
      • -------- ------------------------------------------------------------------------------------------------- --------
      • Set PT_Caster = (Triggering unit)
      • Set PT_Target = (Target unit of ability being cast)
      • Set PT_Location = (Position of PT_Target)
      • Set PT_Owner = (Owner of PT_Caster)
      • Set PT_ability_level = (Level of (Ability being cast) for PT_Caster)
      • -------- ------------------------------------------------------------------------------------------------- --------
      • -------- Setting the Spell values --------
      • -------- ------------------------------------------------------------------------------------------------- --------
      • Set PT_STR = (SiĹ‚a of PT_Caster (NanieĹ› bonuses))
      • Set PT_DMG_MP = (1.35 x (Real((Level of Toss Me the Bottle for PT_Caster))))
      • Set PT_DMG = ((Real(PT_STR)) x PT_DMG_MP)
      • Set PT_Dummy = Toss Me the Bottle(dummy)
      • -------- ------------------------------------------------------------------------------------------------- --------
      • -------- Damaging the Target --------
      • -------- ------------------------------------------------------------------------------------------------- --------
      • Jednostka - Cause PT_Caster to damage PT_Target, dealing PT_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 PT_Owner at PT_Location facing DomyĹ›lna orientacja budynku degrees
      • Jednostka - Add a 1.50 second OgĂłlny expiration timer to (Last created unit)
      • Jednostka - Add PT_Dummy to (Last created unit)
      • Jednostka - Set level of PT_Dummy for (Last created unit) to PT_ability_level
      • -------- ------------------------------------------------------------------------------------------------- --------
      • -------- Creating and setting floating text --------
      • -------- ------------------------------------------------------------------------------------------------- --------
      • Tekst - Create floating text that reads ((String((Integer(PT_DMG)))) + !) above PT_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_PT_Location)
how can I make target healing spell from this one
 
Level 2
Joined
Feb 21, 2014
Messages
18
Ive changed to this Jednostka - Set life of (Targeted unit) to ((Zycie of (Targeted unit)) + PT_DMG) and it doesn't work. In english should be like Unit - Set life of (Targeted unit) to ((Life of (Targeted unit)) + PT_DMG)
 
Status
Not open for further replies.
Top