• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Paused unit does not unause.

Status
Not open for further replies.
Level 8
Joined
Oct 8, 2005
Messages
409
When I run this spell at lvl 1 of the spell, my hero does not always unpause.
It is fine at lvl 2 & 3.
  • Summoning Ritual
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Summoning Ritual
    • Actions
      • Animation - Play (Casting unit)'s stand - var4 animation
      • Wait 1.00 seconds
      • Unit - Pause (Casting unit)
      • Unit Group - Pick every unit in (Units in (Region centered at (Position of (Casting unit)) with size (650.00, 650.00))) and do (Actions)
        • Loop - Actions
          • Special Effect - Create a special effect attached to the overhead of (Picked unit) using Doodads\Cinematic\TownBurningFireEmitterBlue\TownBurningFireEmitterBlue.mdl
      • Wait 2.00 seconds
      • For each (Integer A) from 0 to ((Level of Summoning Ritual for (Casting unit)) x 4), do (Actions)
        • Loop - Actions
          • Unit - Create 1 Satyr Trickster for (Owner of (Casting unit)) at (Position of (Casting unit)) facing 270.00 degrees
          • Unit - Add a 240.00 second Generic expiration timer to (Last created unit)
          • Special Effect - Create a special effect attached to the overhead of (Last created unit) using Abilities\Spells\Items\AIre\AIreTarget.mdl
          • Wait 0.75 seconds
          • Special Effect - Destroy (Last created special effect)
          • Wait (30.00 / (4.00 x (Real((Level of Summoning Ritual for (Casting unit)))))) seconds
      • Unit - Unpause (Casting unit)
Any guess at what is wrong?
 
Level 9
Joined
Aug 28, 2005
Messages
271
  • Summoning Ritual
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Summoning Ritual
    • Actions
      • Set (Casting unit) = "Summoning ritual caster"
      • Animation - Play ("Summoning ritual caster")'s stand - var4 animation
      • Wait 1.00 seconds
      • Unit - Pause ("Summoning ritual caster")
      • Unit - Unpause ("Summoning ritual caster")
The special effect is also buggy. Store it in variable as well.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
For Unit Problem
Create a variable named TempUnit (unit variable)
add this action to top of actions
Custom script: local unit udg_TempUnit = Casting Unit
then repleace every (Casting unit) with TempUnit EXCEPT THE ONE IN UNITGROUP ACTION
You need to remove the Wait action before Unit Group or move it after Unit Group
For Effect Problem

Create a variable named TempEffect (special effect variable)
Add this action to top of actions (under or upper first one it doesnt matter)
Custom script: local effect udg_TempEffect
and put Set TempEffect = (Last Created Effect)
under Special Effect - Create a special effect attached to the overhead of (Last created unit) using Abilities\Spells\Items\AIre\AIreTarget.mdl
Additional
And put a Custom script: set bj_wantDestroyGroup = true
before Unit Group - Pick every unit in (Units in (Region centered at (Position of (Casting unit)) with size (650.00, 650.00))) and do (Actions)
And make your event Unit Starts Effect of Ability please
 
Last edited:
Status
Not open for further replies.
Top