• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] Triggers to get around this problem?

Status
Not open for further replies.

muse1988a

M

muse1988a

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 by a moderator:
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
 
*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 -.-
 
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.
Back
Top