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

Avalanche spell - problem

Status
Not open for further replies.
Level 5
Joined
Nov 29, 2007
Messages
106
Hi
I based on Frost nova - the spell should work normaly as nova but also should stun the target unit of ability beign cast for 2/3/4 seconds.
Any ideas??
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 007
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Frost Nova
    • Actions
      • Set u1 = (Triggering unit)
      • Set u2 = (Target unit of ability being cast)
      • Set l1 = (Position of u2)
      • Unit - Create 1 SpellDummy for Neutral Passive at l1 facing Default building facing degrees
      • Unit - Add Storm Bolt (custom) to u3
      • Unit - Set level of Storm Bolt for u3 to (Level of Frost Nova for u1)
      • Unit - Order u3 to Human Mountain King - Storm Bolt u2
      • Unit - Add a 3.00 second Generic expiration timer to u3
Create a dummy unit, make it have none.mdl model. Set
Art - Animation - Cast backswing to 0
Art - Animation - Cas point to 0

Create custom Strom Bolt, make it cost 0 mana, make it non-hero ability. Add neutral to targets allowed if it isn't there already.
 
Level 19
Joined
Feb 25, 2009
Messages
2,004
  • Untitled Trigger 007
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Frost Nova
    • Actions
      • Set u1 = (Triggering unit)
      • Set u2 = (Target unit of ability being cast)
      • Set l1 = (Position of u2)
      • Unit - Create 1 SpellDummy for Neutral Passive at l1 facing Default building facing degrees
      • Unit - Add Storm Bolt (custom) to u3
      • Unit - Set level of Storm Bolt for u3 to (Level of Frost Nova for u1)
      • Unit - Order u3 to Human Mountain King - Storm Bolt u2
      • Unit - Add a 3.00 second Generic expiration timer to u3
Create a dummy unit, make it have none.mdl model. Set
Art - Animation - Cast backswing to 0
Art - Animation - Cas point to 0

Create custom Strom Bolt, make it cost 0 mana, make it non-hero ability. Add neutral to targets allowed if it isn't there already.

You are missing "Set u3 = (Last Created Unit)"
Also u1 and u2 are clearly unneeded here.
 
Because if you have, for example 2 spells based on the same ability normally added to the unit, it can stuff up. Whereas, just leaving the dummy with no spells and adding spells via trigger solves this problem. Also, why do you use u1, u2 and u3(unless for future use, which wouldn't work anyway, because of the need for arrays)? Units don't leak. but variables take up map space.
 
Level 5
Joined
Nov 29, 2007
Messages
106
This doesnt work, I made this aand not stunning the target.
the U, U1,U2,U3 are variables without arrays
 

Attachments

  • trigger3.JPG
    trigger3.JPG
    170 KB · Views: 91
Status
Not open for further replies.
Top