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

Fixing the leaking spell

Status
Not open for further replies.
Level 9
Joined
Aug 16, 2008
Messages
318
Can someone fix this spell that leaks any other spells?

Spellthatleakotherspells.png
 
Level 10
Joined
Sep 6, 2008
Messages
423
It leaks 2 positions each loop (40 loops = 80 position leaks each cast) and is not mui (not sure about mpi) because of the wait inside the loop. You need 2 Point variables (or a Point array) where you store the location of the target and the caster and in the end of the trigger you put in a custom script for each location (2 in this trigger) sayning "Call RemoveLocation(udg_TempLoc[1])" and the other one with [2] (this is an example for a point array named TempLoc)
 
Level 9
Joined
Aug 16, 2008
Messages
318
Placing

It leaks 2 positions each loop (40 loops = 80 position leaks each cast) and is not mui (not sure about mpi) because of the wait inside the loop. You need 2 Point variables (or a Point array) where you store the location of the target and the caster and in the end of the trigger you put in a custom script for each location (2 in this trigger) sayning "Call RemoveLocation(udg_TempLoc[1])" and the other one with [2] (this is an example for a point array named TempLoc)

Like someone's multi slash spells like blade slash
 
Last edited:
Status
Not open for further replies.
Top