• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Where is the leak?

Status
Not open for further replies.
Level 2
Joined
Jul 4, 2008
Messages
12
Call Maiev
Events
Unit - A unit Begins channeling an ability
Conditions
(Ability being cast) Equal to (==) Call Maiev
Actions
Unit - Create 1 Shimmering Portal for Neutral Passive at (Position of (Casting unit)) facing Default building facing (270.0) degrees
Set Shimmering = (Last created unit)
Animation - Play (Last created unit)'s birth animation
Wait 8.00 seconds
Unit - Create 1 Maiev for (Triggering player) at (Position of Shimmering) facing Default building facing (270.0) degrees
Set Maiev = (Last created unit)
Wait 35.00 seconds
Unit - Create 1 Akama for Player 12 (Brown) at (Position of Shimmering) facing Default building facing (270.0) degrees
Set Akama = (Last created unit)
Hero - Set Akama Hero-level to 25, Hide level-up graphics
Hero - Learn skill for Akama: Human Mountain King - Storm Bolt
Hero - Learn skill for Akama: Human Archmage - Mass Teleport
Hero - Learn skill for Akama: Night Elf Warden - Blink
Unit - Make Akama Invulnerable
Game - Display to (All players) the text: Akama: You shall go...
Wait 0.50 seconds
Unit - Order Akama to Night Elf Warden - Blink (Position of Maiev)
Wait 1.00 game-time seconds
Game - Display to (All players) the text: Akama: Got ya!
Unit - Order Akama to Human Mountain King - Storm Bolt Maiev
Wait 1.00 seconds
Unit - Change ownership of Maiev to Player 12 (Brown) and Change color
Unit - Make Maiev Invulnerable
Wait 1.00 seconds
Unit - Order Akama to Human Archmage - Mass Teleport Castle 0033 <gen>
Wait 4.50 seconds
Unit - Kill Shimmering
Unit - Remove Maiev from the game
Unit - Remove Akama from the game

Akama just wont use blink at all :/ Anyone know what could be the problem? akama have blink in is skills, and brown have visibility over all the map.
 
  • Call Maiev
  • Events
  • Unit - A unit Begins channeling an ability
  • Conditions
  • (Ability being cast) Equal to (==) Call Maiev
  • Actions
  • set TempLocA = (Postion of(CastingUnit))
  • Unit - Create 1 Shimmering Portal for Neutral Passive at TempLocA facing Default building facing (270.0) degrees
  • Set Shimmering = (Last created unit)
  • Animation - Play (Last created unit)'s birth animation
  • Wait 8.00 seconds
  • Unit - Create 1 Maiev for (Triggering player) at TempLocAfacing Default building facing (270.0) degrees
  • Set Maiev = (Last created unit)
  • Wait 35.00 seconds
  • Unit - Create 1 Akama for Player 12 (Brown) at TempLocA facing Default building facing (270.0) degrees
  • Set Akama = (Last created unit)
  • Hero - Set Akama Hero-level to 25, Hide level-up graphics
  • Hero - Learn skill for Akama: Human Mountain King - Storm Bolt
  • Hero - Learn skill for Akama: Human Archmage - Mass Teleport
  • Hero - Learn skill for Akama: Night Elf Warden - Blink
  • Unit - Make Akama Invulnerable
  • Game - Display to (All players) the text: Akama: You shall go...
  • Wait 0.50 seconds
  • set TempLocB = (Postion (of Maiev))
  • Unit - Order Akama to Night Elf Warden - Blink TempLocB
  • Wait 1.00 game-time seconds
  • Game - Display to (All players) the text: Akama: Got ya!
  • Unit - Order Akama to Human Mountain King - Storm Bolt Maiev
  • Wait 1.00 seconds
  • Unit - Change ownership of Maiev to Player 12 (Brown) and Change color
  • Unit - Make Maiev Invulnerable
  • Wait 1.00 seconds
  • Unit - Order Akama to Human Archmage - Mass Teleport Castle 0033 <gen>
  • Wait 4.50 seconds
  • Unit - Kill Shimmering
  • Unit - Remove Maiev from the game
  • Unit - Remove Akama from the game
  • customscript: set Maiev = null
  • customscript: set Akama = null
  • customscript: call removeLocation(udg_TempLocA)
  • customscript: call removeLocation(udg_TempLocB)
Corrections are freetyped, so it might not be exactly right.
 
Level 2
Joined
Jul 4, 2008
Messages
12
Im sorry to up this topic,i yet got another problem with the trigger,i made a few modification, but now, akama just wont use mass teleport anymore... anyone can figure the problem? :/ The blink problem as ben solved.

  • Call Maiev
    • Events
      • Unit - A unit Begins channeling an ability
    • Conditions
      • (Ability being cast) Equal to (==) Call Maiev
    • Actions
      • Set LocA = (Position of (Casting unit))
      • Unit - Create 1 Shimmering Portal for Neutral Passive at LocA facing Default building facing (270.0) degrees
      • Set Shimmering = (Last created unit)
      • Animation - Play Shimmering's birth animation
      • Wait 8.00 seconds
      • Unit - Create 1 Maiev for (Triggering player) at (Position of Shimmering) facing Default building facing (270.0) degrees
      • Set Maiev = (Last created unit)
      • Wait 0.50 seconds
      • Unit - Kill Shimmering
      • Wait 25.00 seconds
      • Set LocB = (Position of Maiev)
      • Unit - Create 1 Shimmering Portal for Neutral Passive at LocB facing Default building facing (270.0) degrees
      • Set Shimmering = (Last created unit)
      • Animation - Play Shimmering's birth animation
      • Wait 8.00 seconds
      • Unit - Create 1 Akama for Player 12 (Brown) at (Position of Shimmering) facing Default building facing (270.0) degrees
      • Set Akama = (Last created unit)
      • Hero - Set Akama Hero-level to 25, Hide level-up graphics
      • Hero - Learn skill for Akama: Human Mountain King - Storm Bolt
      • Hero - Learn skill for Akama: Human Archmage - Mass Teleport
      • Hero - Learn skill for Akama: Night Elf Warden - Blink
      • Unit - Make Akama Invulnerable
      • Game - Display to (All players) the text: Akama: You shall go...
      • Wait 0.50 seconds
      • Set LocB = (Position of Maiev)
      • Unit - Order Akama to Night Elf Warden - Blink LocB
      • Wait 0.10 game-time seconds
      • Unit - Order Akama to Human Mountain King - Storm Bolt Maiev
      • Wait 1.00 seconds
      • Unit - Change ownership of Maiev to Player 12 (Brown) and Change color
      • Unit - Make Maiev Invulnerable
      • Wait until ((Owner of Maiev) Equal to (==) Player 12 (Brown)), checking every 0.10 seconds
      • Unit - Order Akama to Human Archmage - Mass Teleport Castle 0033 <gen>
      • Wait 4.50 seconds
      • Unit - Kill Shimmering
      • Unit - Remove Maiev from the game
      • Unit - Remove Akama from the game
 
Level 10
Joined
Apr 13, 2005
Messages
630
I believe it was this

  • Set Maiev = (Last created unit)
isnt set to null
Also I learned that using the wait #.## seconds is bad and should use ingame command. Idk how true is this but it should be

Also on all the create spells the (position of (names)) leaks because they arent removed

*edit* ok i just reread i think your problem is that you changed it to a new wait as you can see.
  • Wait until ((Owner of Maiev) Equal to (==) Player 12 (Brown)), checking every 0.10 seconds
and this is prob wuts messing up..... ALSO where did the remove triggers go all the variable now leak


i believe that is all
 
Level 2
Joined
Jul 4, 2008
Messages
12
Ah i found the bug,for some reason, akama couldnt target the castle with mass teleport,i just changed the target :p thanks anyway to both of you,i learned many usefull things to make even greater spells :grin:
 
Status
Not open for further replies.
Top