Recent content by XeRo13g

  1. X

    Yet, another leak question

    Thanks guys, that clear things up. PS. I can't give rep to any of you. I'll get back to that asap.
  2. X

    Yet, another leak question

    function 2 takes nothing returns nothing local timer t=GetExpiredTimer() (do something) call PauseTimer(t) call DestroyTimer(t) set t=null endfunction function 1 takes nothing returns nothing local effect sfx local timer t if (condition==true) then set...
  3. X

    Remove Magic Immunity from Magic Defense

    I've already tried every ability that I was willing to 'sacrifice'. Every one of them cause some kind of an annoying effect. Divine shield-can't get rid of invulnerability, mana shield gives a buff to the unit and also has a delay if I remember correctly, bladestorm cannot be deactivated even if...
  4. X

    Remove Magic Immunity from Magic Defense

    -Unfortunately, I cannot use Defend. Whatever ability I use in this case, won't be able to -ever- be used again by any hero. -I don't see how the effects of the dummy ability make any difference but I guess, you mean to ask what this is needed for. If that is the case... I just want an...
  5. X

    Remove Magic Immunity from Magic Defense

    I can't believe how much time I've wasted over this already...:( As the title suggests, I wish to remove the magic immunity from the Magic Defense ability when it's activated and use it as a dummy ability. My first thought was that the ability works much like defend but as it seems, I was...
  6. X

    Very Simple Group Filter

    Actually, I'm using that bad named (gr) group for everything in the map. Do I need to add any prefix to that? Constant or Static? Will it help? If that is true, then I get some weird behavior. If I try to get the value of a global before it's set, the trigger doesn't run at all. If I set an...
  7. X

    Very Simple Group Filter

    It seems that I don't understand the mechanics behind the -private- prefix. I thought those were normal globals, just available in this specific trigger. It seems like the global block runs each time the trigger runs and erases any value it might have had - Thus my concern for leaks. If I...
  8. X

    Very Simple Group Filter

    -I don't currently use any external system. Is there a problem using a universal empty group (gr) for all similar occasions? So, if I use those private globals above the trigger, I don't need to use scope? My main concern was that those globals should be able to be re-declared to other...
  9. X

    Very Simple Group Filter

    The Simple spell causes units around the target unit to take damage based on some variables, simple as that. -I don't want to keep the group, thus using a empty global group (gr) declared at initialization. function Simple_Filter takes nothing returns boolean local unit uf=GetFilterUnit()...
  10. X

    Trigger not working

    I saw the map just fine. That's why I've posted the code, including the dummy unit. If he needs an effect, he should simply use an effect. If he needs an ability, he should use that ability. Using longer or split between triggers code(Manipulate created unit and then again upon death) and...
  11. X

    How to make a Peon able to build a Wall... Please help!

    This is the simplest way that I can come up with atm. Using a worker to build 4 types of walls. Walls are units for the purpose of this example. They can be made as destructibles but it can be somewhat complicated and also harder to manipulate them with triggers. Doable anyhow.
  12. X

    Trigger not working

    He will need to pick a random unit first, which requires forming a group(which should be avoided as much as possible, especially in GUI). Then add the ability to that unit and it still requires a trigger to detect if the dying unit has the ability or a unit has spawned a summoned unit(the unit...
  13. X

    Trigger not working

    This problem doesn't require an additional ability.
  14. X

    Trigger not working

    Actually, I don’t quite get this part and thus I didn’t include anything in the code for it. In your initial code, you seem to use a condition for unit-type, so any unit that is “EXPLOSION Power Up” will produce the effects. If you need the effect to have randomness, just add some simple –if-...
  15. X

    Rejuvenation That Heals % Per Second

    Checked the map. Still using BJ's and both leak a local.
Top