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

Slide Ice

Status
Not open for further replies.
Level 2
Joined
Jun 2, 2008
Messages
15
I need help with a spell I am creating. It is using Pyrietes iceblock model to stun the enemy for a short amount of time, after stun it is also slowed for a while. I am using Firebolt spell to create it so stun isnt a problem, my problem is to create a slow effect on the unit and add the slow buff. This is what I got ATM, it is not working though:(

  • Slide effect
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
    • Actions
      • Unit - Set (Target unit of ability being cast) movement speed to 1.00
      • Special Effect - Create a special effect attached to the chest of (Target unit of ability being cast) using Abilities\Weapons\ZigguratFrostMissile\ZigguratFrostMissile.mdl
      • Set Slide_effect = (Last created special effect)
      • Wait 10.00 seconds
      • Unit - Set (Target unit of ability being cast) movement speed to (Default movement speed of (Target unit of ability being cast))
      • Special Effect - Destroy Slide_effect
 
Last edited by a moderator:
Level 11
Joined
Oct 13, 2005
Messages
233
I need help with a spell I am creating. It is using Pyrietes iceblock model to stun the enemy for a short amount of time, after stun it is also slowed for a while. I am using Firebolt spell to create it so stun isnt a problem, my problem is to create a slow effect on the unit and add the slow buff. This is what I got ATM, it is not working though:(

  • Slide effect
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
    • Actions
      • Unit - Set (Target unit of ability being cast) movement speed to 1.00
      • Special Effect - Create a special effect attached to the chest of (Target unit of ability being cast) using Abilities\Weapons\ZigguratFrostMissile\ZigguratFrostMissile.mdl
      • Set Slide_effect = (Last created special effect)
      • Wait 10.00 seconds
      • Unit - Set (Target unit of ability being cast) movement speed to (Default movement speed of (Target unit of ability being cast))
      • Special Effect - Destroy Slide_effect

First off, please use the
  • tags around your GUI triggers. I've fixed it for you this time, but be sure to do it in the future. Second, there's a few things here that need to be fixed.
  • [list]
  • [*]Instead of [b]A unit Begins casting an ability[/b], please use [b]A unit Starts the effect of an ability[/b]. Why? The first event goes off before the unit has actually spent mana on the spell and cast it. The second even goes off when the spell has actually been cast and you want to use that instead.
  • [*]It's bad idea to set a unit's movement speed with triggers as this can cause conflicts with abilities. Instead, as GhostWolf suggested, you can have a periodic trigger that checks for units with the specific buff, create a dummy unit next to them, have the dummy unit cast slow, wait a second or two, and then remove the dummy unit.
  • [*]Finally, using the wait action over a long period of time is also not a good idea as it's not entirely reliable. The solution to this is also to use a dummy unit as stated above.
  • [*]You need a condition to check that the spell being cast is the correct spell.
  • [/list]
 
Status
Not open for further replies.
Top