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

Slam to create a 6-2ay Impale

Status
Not open for further replies.
Level 5
Joined
May 31, 2009
Messages
122
Make a dummy spell first, then make a dummy unit, each of which has locust and 0 collision, all that stuff:

  • Event
    • Unit - begins the effect of an ability
  • Conditions
    • Ability type is equal (dummy spell, like warstomp or roar)
  • Actions
    • Unit - Create (impale dummy)instantly to position of (triggering unit) offset by (50,86)
    • Unit - Order (Last Created Unit) to (Undead Cryptlord - Impale) at (position of (Last Created Unit) offset by (50,86))
    • Unit - Remove (Last Created Unit)
    • Unit - Create (impale dummy)instantly to position of (triggering unit) offset by (-50,86)
    • Unit - Order (Last Created Unit) to (Undead Cryptlord - Impale) at (position of (Last Created Unit) offset by (-50,86))
    • Unit - Remove (Last Created Unit)
    • Unit - Create (impale dummy)instantly to position of (triggering unit) offset by (-50,0)
    • Unit - Order (Last Created Unit) to (Undead Cryptlord - Impale) at (position of (Last Created Unit)offset by (-50,0))
    • Unit - Remove (Last Created Unit)
    • Unit - Create (impale dummy)instantly to position of (triggering unit) offset by (-50,-86)
    • Unit - Order (Last Created Unit) to (Undead Cryptlord - Impale) at (position of (Last Created Unit) offset by (-50,-86))
    • Unit - Remove (Last Created Unit)
    • Unit - Create (impale dummy) instantly to position of (triggering unit) offset by (50,-86)
    • Unit - Order (Last Created Unit) to (Undead Cryptlord - Impale) at (position of (Last Created Unit) offset by (50,-86))
    • Unit - Remove (Last Created Unit)
    • Unit - Create (impale dummy)instantly to position of (triggering unit) offset by (50,0)
    • Unit - Order (Last Created Unit) to (Undead Cryptlord - Impale) at (position of (Last Created Unit)offset by (50,0))
    • Unit - Remove (Last Created Unit)

For higher levels, just put an if statement concerning the level of the unit, and create impale dummy units with stronger spells. Or have it go only 4 ways at level 1, 6 at level 2, and 8 at level 3; you can calculate the offsets by using some simple circle geometry xD

Damn, i never knew that learning radians would come in handy, but it helps in dividing circles i guess. I have something like that in my map, except it's only 4 ways, so it's easier to figure out the numbers.
 
Level 14
Joined
Nov 18, 2007
Messages
1,084
Though VestriDeus trigger may work, it leaks and could have been done much better with a loop.
I made this kind of trigger before. Look here.

Sorry, I can't really explain what offset is.

The offset used by VestriDeus is kind of like coordinates while the offset used by my trigger depends on distance and angle.
 
Last edited:
Status
Not open for further replies.
Top