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

[Solved] ability problem

Status
Not open for further replies.
Level 9
Joined
May 31, 2010
Messages
366
this is my trigger for that spell (sry im using a german we)
  • DFK
    • Ereignisse
      • Einheit - A unit Startet den Effekt einer Fähigkeit
    • Bedingungen
      • (Ability being cast) Gleich (==) Dreifachklinge lvl5
    • Aktionen
      • Einheit - Create 1 Dummy for Spieler 2 (Blau) at (Position of Berserker 0010 <gen>) facing Vorgabe für Gebäude-Ausrichtung (270.0) degrees
      • Set BersiDummy1 = (Last created unit)
      • Einheit - Add Dreifachklinge dummy to BersiDummy1
      • Einheit - Set level of Dreifachklinge dummy for BersiDummy1 to (Level of Dreifachklinge lvl5 for Berserker 0010 <gen>)
      • Einheit - Create 1 Dummy for Spieler 2 (Blau) at (Position of Berserker 0010 <gen>) facing Vorgabe für Gebäude-Ausrichtung (270.0) degrees
      • Set BersiDummy2 = (Last created unit)
      • Einheit - Add Dreifachklinge dummy to BersiDummy2
      • Einheit - Set level of Dreifachklinge dummy for BersiDummy2 to (Level of Dreifachklinge lvl5 for Berserker 0010 <gen>)
      • Animation - Change BersiDummy1's vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency
      • Animation - Change BersiDummy2's vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency
      • Einheit - Order BersiDummy1 to Orc-Tauren-Häuptling - 'Schockwelle' ((Target point of ability being cast) offset by ((Facing of Berserker 0010 <gen>) + 25.00) towards ((Facing of Berserker 0010 <gen>) + 25.00) degrees)
      • Einheit - Order BersiDummy1 to Orc-Tauren-Häuptling - 'Schockwelle' ((Target point of ability being cast) offset by ((Facing of Berserker 0010 <gen>) - 25.00) towards ((Facing of Berserker 0010 <gen>) - 25.00) degrees)
      • Wait 5.00 seconds
      • Einheit - Remove BersiDummy1 from the game
      • Einheit - Remove BersiDummy2 from the game
it should cast 3 shockwaves instead of 1 with an offset of 25 degrees +/-

i testet it buy creating an special effect on the both positions and it worked but now the dummys don't cast the waves can someone help me pls?


Edit: okay i got it with help of friend can be closed
 
Last edited:
Level 9
Joined
May 31, 2010
Messages
366
i really need to say that i don't understand that i never had problems with that and im not able to see what's leaking and what does not...

what i mean with i never had problems with that is that i really like to make rpgs with high game time (so 1 map takes about 72h) and the game wasn't affected by any leaks...

if you want you can give me an example whats leaking in this trigger.. maybe i understand it then...
 
Level 12
Joined
Aug 12, 2008
Messages
350
There are several leaks after you creating them. Points, unit groups are the example of leaks if you create them without clearing them in the end of a trigger.
For example, you create a unit at a point which is the position of the Berserker. The point in the end of a trigger will leak which will then cause lag. So, in order to get rid of those leak, you should actually store it into variable and then clear it in the end of a trigger.
First, you set it
  • Set tempPoint = (Position of Berserker)
  • Unit - Create 1 <unit> at tempPoint facing 270 degrees
Lastly, you clear it.
  • Custom script: call RemoveLocation (udg_tempPoint)
Just the same for unit group. You first set it the unit group, then after you use it.
Just use this to clear it.
  • Custom script: call DestroyGroup (udg_tempGroup)
You should actually take a look and read on the Things that Leak by Maker. It's on the Maker's comment up there.
 
Status
Not open for further replies.
Top