• 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.

[Spell] Check my spell whether got bug or leak

Status
Not open for further replies.
Level 1
Joined
Jan 6, 2012
Messages
2
Ok guys, I created a bit special spell using some triggers. Now i will give the details about the spell. "When killed, the Tauren Chieftain will come back to life with only 50% of its max hp and 50% of its max mana. Reincarnation has a 60 second cooldown." The triggers:
  • Reincar effect
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Orc Tauren Chieftain - Reincarnation
    • Actions
      • Set ReinUnit = (Learning Hero)
      • Set ReinCD = 0
      • Trigger - Add to Life Drops <gen> the event (Unit - ReinUnit's life becomes Less than or equal to 0.40)
  • Life Drops
    • Events
    • Conditions
      • ReinCD Equal to 0
    • Actions
      • Set ReinCD = 60
      • Wait 1.00 seconds
      • Set ReinUnitPosition = (Position of ReinUnit)
      • Special Effect - Create a special effect at ReinUnitPosition using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
      • Unit - Set life of ReinUnit to 50.00%
      • Unit - Set mana of ReinUnit to 50.00%
      • Custom script: call RemoveLocation(udg_ReinUnitPosition)
  • ReinCDloop
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
      • ReinCD Not equal to 0
    • Actions
      • Set ReinCD = (ReinCD - 1)
After you have checked these triggers and confirmed that these triggers have no problems, then I will ask my true question: "Is it possible to use these triggers to make an AOE slow effect around the Hero upon Reincarnation juz like the Skeleton King in DotA?"
 
Level 25
Joined
Jul 10, 2006
Messages
3,315
Your ability isn't MUI, which means only one unit can use it.

Use this system: http://www.hiveworkshop.com/forums/spells-569/unit-event-v2-0-0-0-a-201641/

It has an event for when a unit is reincarnated. Make a trigger that fires when that happens, and then you can create your AoE slow effect. For this effect, I suggest you create a dummy unit to cast an altered version of the Mountain King's Thunder Clap.
 
Status
Not open for further replies.
Top