• 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] Mass sleep by GUI

Status
Not open for further replies.
Level 14
Joined
Nov 17, 2010
Messages
1,266
Make sure the sleep spell that is used by the dummy has no mana cost, no cooldown, and no cast time. This way he can simultaneously cast it on all the units in the area at once.

You will also have to make a dummy ability for your hero based on an AOE ability that does nothing, so when you cast it you can create the dummy and have him cast sleep on the units via triggers.

If I had time I'd give you a sample trigger, maybe later if no one else has.
 
Level 5
Joined
Sep 1, 2022
Messages
88
Make sure the sleep spell that is used by the dummy has no mana cost, no cooldown, and no cast time. This way he can simultaneously cast it on all the units in the area at once.

You will also have to make a dummy ability for your hero based on an AOE ability that does nothing, so when you cast it you can create the dummy and have him cast sleep on the units via triggers.

If I had time I'd give you a sample trigger, maybe later if no one else has.
send a sample
 
Level 42
Joined
Feb 27, 2007
Messages
5,328
send a sample
Next time make your own thread if you're confused instead of reviving one 9-years-dead. These are the settings a dummy needs to have to be able to cast instantly:
  • Art - Animation - Cast point: 0
  • Art - Animation - Cast backswing: 0
  • Movement - Speed Base: 0
  • Movement - Type: None
In order to resolve potential issues with your map it is recommended that your dummies also have these settings:
  • Abilities - Normal: Locust
  • Art - Model File: None
  • Art - Shadow Image (Unit): None
  • Combat - Attacks Enabled: None
  • Combat - Death Type: Can't raise, Does not decay
  • Stats - Hide Minimap Display: True
  • Stats - Mana Maximum: 100000
  • Stats - Mana Initial Amount: 100000
  • Sight Radius - Day: 0
  • Sight Radius - Night: 0
  • Stats - Point Value: 0
  • Techtree - Upgrades Used: None
Then you can literally do this:
  • Unit - Create 1 DUMMY for ...
  • Set Dum = (Last created unit)
  • Unit - Add Storm Bolt to Dum
  • Unit - Add a 1.00 second Generic expiration timer to Dum
  • Unit Group - Pick every unit in SOME GROUP and do (Actions)
    • Loop - Actions
      • Unit - Order Dum to Human Mountain King - Storm Bolt (Picked Unit)
 
Level 5
Joined
Sep 1, 2022
Messages
88
Next time make your own thread if you're confused instead of reviving one 9-years-dead. These are the settings a dummy needs to have to be able to cast instantly:
  • Art - Animation - Cast point: 0
  • Art - Animation - Cast backswing: 0
  • Movement - Speed Base: 0
  • Movement - Type: None
In order to resolve potential issues with your map it is recommended that your dummies also have these settings:
  • Abilities - Normal: Locust
  • Art - Model File: None
  • Art - Shadow Image (Unit): None
  • Combat - Attacks Enabled: None
  • Combat - Death Type: Can't raise, Does not decay
  • Stats - Hide Minimap Display: True
  • Stats - Mana Maximum: 100000
  • Stats - Mana Initial Amount: 100000
  • Sight Radius - Day: 0
  • Sight Radius - Night: 0
  • Stats - Point Value: 0
  • Techtree - Upgrades Used: None
Then you can literally do this:
  • Unit - Create 1 DUMMY for ...
  • Set Dum = (Last created unit)
  • Unit - Add Storm Bolt to Dum
  • Unit - Add a 1.00 second Generic expiration timer to Dum
  • Unit Group - Pick every unit in SOME GROUP and do (Actions)
    • Loop - Actions
      • Unit - Order Dum to Human Mountain King - Storm Bolt (Picked Unit)
not worked
 
Level 42
Joined
Feb 27, 2007
Messages
5,328
If it's a targeted spell, the dummy needs to have vision of the target by some other means since it has a sight radius of 1. But you literally provided 0 information so I am just making a random guess as to what the issue is. The way I described works; I use it all of the time to instantly cast whenever I need something to. Be more specific.
 
Level 5
Joined
Sep 1, 2022
Messages
88
If it's a targeted spell, the dummy needs to have vision of the target by some other means since it has a sight radius of 1. But you literally provided 0 information so I am just making a random guess as to what the issue is. The way I described works; I use it all of the time to instantly cast whenever I need something to. Be more specific.
send a map with an example
 
Status
Not open for further replies.
Top