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

Where Is The Leaks Here??

Status
Not open for further replies.
Level 4
Joined
Mar 13, 2014
Messages
93
  • Tsukuemi
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Tsukuyomi [|cffffcc00R|r]
    • Actions
      • Sound - Play Tsukuyomi1 <gen>
      • Set Tsuk1[1] = (Casting unit)
      • Set Tsuk1[2] = (Target unit of ability being cast)
      • Set Tsuk2[1] = (Position of Tsuk1[2])
      • Unit - Hide Tsuk1[1]
      • Unit - Pause Tsuk1[2]
      • Unit - Create 1 DummyItachiMangekeKupol for Neutral Passive at (Position of Tsuk1[2]) facing Default building facing degrees
      • Unit - Add a 15.00 second Generic expiration timer to (Last created unit)
      • Set Tsuk1[3] = (Last created unit)
      • Wait 0.40 seconds
      • Unit - Create 1 DummyItachiMangekeTsukuemi for (Owner of Tsuk1[1]) at Tsuk2[1] facing Default building facing degrees
      • Unit - Add a 15.00 second Generic expiration timer to (Last created unit)
      • Set Tsuk4 = (Last created unit)
      • For each (Integer A) from 1 to 20, do (Actions)
        • Loop - Actions
          • Unit - Create 1 DummyItachiTsukuemi for (Owner of Tsuk1[1]) at (Tsuk2[1] offset by 250.00 towards ((Real((Integer A))) x 18.00) degrees) facing 0.00 degrees
          • Set Tsuk1[(3 + (Integer((Real((Integer A))))))] = (Last created unit)
          • Unit - Make Tsuk1[(3 + (Integer((Real((Integer A))))))] face Tsuk2[1] over 0.00 seconds
          • Unit - Add a 15.00 second Generic expiration timer to (Last created unit)
      • Wait 0.35 seconds
      • For each (Integer A) from 1 to 20, do (Actions)
        • Loop - Actions
          • Animation - Play Tsuk1[(3 + (Integer((Real((Integer A))))))]'s Morph animation
          • Custom script: call RemoveLocation(udg_Tsuk2[1])
      • Wait 1.25 seconds
      • Trigger - Turn on TsukuemiItachiAttack <gen>
 
  • Unit - Create 1 DummyItachiMangekeKupol for Neutral Passive at (Position of Tsuk1[2]) facing Default building facing degrees
Position of Tsuk1[2] should be your variable Tsuk2[1].

  • (Tsuk2[1] offset by 250.00 towards ((Real((Integer A))) x 18.00) degrees)
This leaks, it's a new location reference.

  • Custom script: call RemoveLocation(udg_Tsuk2[1])
Move it outside of the (Integer A) loop.
 
Level 4
Joined
Mar 13, 2014
Messages
93
Like this ?????
  • Tsukuemi
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Tsukuyomi [|cffffcc00R|r]
    • Actions
      • Sound - Play Tsukuyomi1 <gen>
      • Set Tsuk1[1] = (Casting unit)
      • Set Tsuk1[2] = (Target unit of ability being cast)
      • Set Tsuk2[1] = (Position of Tsuk1[2])
      • Set Tsuk5 = (Tsuk2[1] offset by 250.00 towards ((Real((Integer A))) x 18.00) degrees)
      • Unit - Hide Tsuk1[1]
      • Unit - Pause Tsuk1[2]
      • Unit - Create 1 DummyItachiMangekeKupol for Neutral Passive at (Position of Tsuk1[2]) facing Default building facing degrees
      • Unit - Add a 15.00 second Generic expiration timer to (Last created unit)
      • Set Tsuk1[3] = (Last created unit)
      • Wait 0.40 seconds
      • Unit - Create 1 DummyItachiMangekeTsukuemi for (Owner of Tsuk1[1]) at Tsuk2[1] facing Default building facing degrees
      • Unit - Add a 15.00 second Generic expiration timer to (Last created unit)
      • Set Tsuk4 = (Last created unit)
      • For each (Integer A) from 1 to 20, do (Actions)
        • Loop - Actions
          • Unit - Create 1 DummyItachiTsukuemi for (Owner of Tsuk1[1]) at Tsuk5 facing 0.00 degrees
          • Set Tsuk1[(3 + (Integer((Real((Integer A))))))] = (Last created unit)
          • Unit - Make Tsuk1[(3 + (Integer((Real((Integer A))))))] face Tsuk2[1] over 0.00 seconds
          • Unit - Add a 15.00 second Generic expiration timer to (Last created unit)
      • Wait 0.35 seconds
      • For each (Integer A) from 1 to 20, do (Actions)
        • Loop - Actions
          • Animation - Play Tsuk1[(3 + (Integer((Real((Integer A))))))]'s Morph animation
      • Custom script: call RemoveLocation(udg_Tsuk2[1])
      • Custom script: call RemoveLocation(udg_Tsuk5)
      • Wait 1.25 seconds
      • Trigger - Turn on TsukuemiItachiAttack <gen>
Edit: You Bugged My Tsukuyomi !!! :)
 
Last edited by a moderator:
  • For each (Integer A) from 1 to 20, do (Actions)
    • Loop - Actions
      • Set Tsuk5 = (Tsuk2[1] offset by 250.00 towards ((Real((Integer A))) x 18.00) degrees)
      • ....
      • Custom script: call RemoveLocation(udg_Tsuk5)
  • Unit - Create 1 DummyItachiMangekeKupol for Neutral Passive at (Position of Tsuk1[2]) facing Default building facing degrees
Position of Tsuk1[2] leaks. Use the variable that you have already created instead.
 
Level 4
Joined
Mar 13, 2014
Messages
93
My Tsukuyomi
236686-albums7300-picture86227.png
 
Last edited:
Status
Not open for further replies.
Top