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

I Need Help Making A Complex Trigger !

Status
Not open for further replies.
Level 1
Joined
Apr 4, 2010
Messages
4
I want to make a trigger based off the move shock wave but instead of just damaging enemy's in front of me in a line it damages enemy's in front of me in a line and heals allies in front of me in a line can anyone create that trigger and post it here, that would be really helpful thanks
 
For the "damage enemy's front line", you will need 1 channel-based ability with Target type set to Unit and a dummy unit that has the Shockwave ability.
When you cast the channel-based ability, do this:
  • Trigger
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Shockwave (fake) //The channel-based ability
    • ((Target unit of ability being cast) belongs to an enemy of (Owner of (Triggering unit))) Equal to True //Boolean comparison
  • Actions
    • Set Points[1] = (Position of (Target unit of ability being cast))
    • Set Points[2] = (Points[1] offset by 50.00 towards (Facing of (Target unit of ability being cast))
    • Unit - Create 1 dummy for (Owner of (Triggering unit)) at Points[1] facing default building degrees
    • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave Points[2]
    • Unit - Add a 2.00 seconds generic expiration timer to (Last created unit)
    • Custom script: call RemoveLocation (udg_Points[1])
    • Custom script: call RemoveLocation (udg_Points[2])
For the healing part, you need a missile-based movement system; you will actually create a dummy unit with the model of the Shockwave ability, you will add it in a Unit Group and every 0.03 seconds you will pick every unit that belongs to an ally of the dummy's owner (Boolean comparison) and you will set the life of (Picked unit) to ((Life of (Picked unit)) + X).

Example of this type of misile movement: http://www.hiveworkshop.com/forums/spells-569/burning-arrow-153890/
 
You can also delete that set the life of (Picked unit) to ((Life of (Picked unit)) + X) and add healing ability to unit (Life regeneration aura can do: fountain of life) it will heal while dummy unit is alive!
Also with this you can create lot of stuff, you can create some kind of auras for dummy unit, spells, anything. You will see that your trigger create not one but 1000 more custom spells, everything else is just like Pharaoh said!
 
Status
Not open for further replies.
Top