• 🏆 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!

[Solved] Does this trigger leak

Status
Not open for further replies.
Level 9
Joined
Jun 10, 2013
Messages
473
hey does this trigger leak because when the ability is used lags start to happen

  • Withering
    • Events
    • Unit - A unit Starts the effect of an ability
    • Conditions
    • (Ability being cast) Equal to Withering
    • Actions
    • Set TempUnit = (Triggering unit)
    • Set tempReal = 225.00
    • Set AbilityAdd = Withering -Armor,-speed
    • Set AbilityAdd2 = Withering, -Damage
    • Set tempPlayer = (Owner of TempUnit)
    • Set TempPoint = (Target point of ability being cast)
    • Unit - Create 1 Dummy Spellcaster for tempPlayer at TempPoint facing 0.00 degrees
    • Set TempUnit2 = (Last created unit)
    • Unit - Add AbilityAdd to TempUnit2
    • Unit - Set level of AbilityAdd for TempUnit2 to (Level of Withering for TempUnit)
    • Unit - Add AbilityAdd2 to TempUnit2
    • Unit - Set level of AbilityAdd2 for TempUnit2 to (Level of Withering for TempUnit)
    • Unit - Add a 2.00 second Water Elemental expiration timer to TempUnit2
    • Set tempGroup1 = (Units within tempReal of TempPoint matching ((((Owner of (Matching unit)) is an enemy of tempPlayer) Equal to True) and (((Matching unit) is alive) Equal to True)))
    • Unit Group - Pick every unit in tempGroup1 and do (Actions)
    • Loop - Actions
    • Unit - Order TempUnit2 to Neutral Alchemist - Acid Bomb (Picked unit)
    • Unit - Order TempUnit2 to Human Priest - Inner Fire (Picked unit)
    • Custom script: call DestroyGroup(udg_tempGroup1)
    • Custom script: call RemoveLocation(udg_TempPoint)
 
Last edited by a moderator:
Level 9
Joined
Jun 10, 2013
Messages
473
As I can see it doesn't, but you may get lag when this trigger fires for it's first time, if you haven't preloaded the unit you create in it.
WELL ITS LAGS THE FIRST TIME NOT THAT BADLY HOW EVER EVERY TIME AFTER IT LAGS EXPONENTIALLY MORE making the game unplayable on the third use of the ability, perhaps its because of the AddAbilities abilities?(Innerfire and Acidbomb)

///strange it was the acid bomb
 
Last edited:
Level 11
Joined
Jan 23, 2015
Messages
788
WELL ITS LAGS THE FIRST TIME NOT THAT BADLY HOW EVER EVERY TIME AFTER IT LAGS EXPONENTIALLY MORE making the game unplayable on the third use of the ability, perhaps its because of the AddAbilities abilities?(Innerfire and Acidbomb)

///strange it was the acid bomb

Both the Unit and the AddAbilities,

When you pick your hero (or at the start of the map - elapsed tme: 0.00), create the unit you use in your trigger, add all abilities used and then remove it,

Then use your spell and see if there's still lag..

This trigger shouldn't make the game unplayable, perhaps it's not causing the lag?
 
Status
Not open for further replies.
Top