• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[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