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

[Trigger] Triggers to get around this problem?

Status
Not open for further replies.
Level 2
Joined
Jan 16, 2008
Messages
8
What triggers could i use to solve this problem

I have a hero who can metamorphis into melee/range units, each of these units has some unit abilities, each of these abilities have 3 levels.

basically the problem is that if i have level 2 or 3 abilities on my melee unit, and i morph him into range, then back to melee, his abilities reset back to level 1.

is there any way to fix this?

*EDIT - I have found a solution but it will probly leak, basically every 0.01 seconds it checks what level the Hero is and adjusts his ability levels accordingly, is this going to leak? as there will b 12 players using this trigger. is there a better way to do this?
 
Last edited:
Level 2
Joined
Jan 16, 2008
Messages
8
my trigger leaks, it checks every 0.01 seconds what level and what mode the hero is in and assigns it the proper abilities but leaks and lags heaps
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
*EDIT - I have found a solution but it will probly leak, basically every 0.01 seconds it checks what level the Hero is and adjusts his ability levels accordingly, is this going to leak? as there will b 12 players using this trigger. is there a better way to do this?

Do you even know what leaks are ? No ? Yes, I know you don't.

Anyway, post your trigger -.-
 
Level 24
Joined
May 9, 2007
Messages
3,563
Almost everything "leaks". This is true for many other languages as well. Leaks occur if the language/program does not have good garbage collection for variables. It is lekely that you're trigger does not leak any huge amount, at least not enough to majorly slow down the game play.
 
Status
Not open for further replies.
Top