Search results

  1. K

    can someone make this function more efficient

    Bribes solution is more efficient (as always ;) ), but I am also sometimes using extended local variables just for sake of lucidity. Maybe change your integer check to boolean check and then just if check then // command block else // andother one here endif Or if you want to use multiple check...
  2. K

    Dynamic Triggers?

    What's this? Can you explain it? I mean, how it corrupt the handle stack?
  3. K

    Two questions-ifs

    Attach a triggeraction and triggercondition to your trigger and trigger itself to unit. When unit dies, simpy use function removeTrigger takes trigger trig returns nothing call DisableTrigger(trig) call TriggerRemoveAction(trig, GetHandleTriggerAction(trig, "trig_action")) call...
  4. K

    Animation not playing correctly

    Hmm, maybe because procesor saves data which won't be needed in a near future from RAM to disk space. It's called "content switch". Thanks to virtual memory, process can adress far more than RAM space (the process believes he owns whole disk space and he is only process in whole system)...
  5. K

    How can I check if any unit of a type are within X range of another unit?

    If you want to check diferent unit types: function nullFilter takes nothing returns boolean return true endfunction function IsUnitTypeInRangeOfUnit takes unit u, unittype ut, real radius returns boolean local group g = CreateGroup() // you can also used some global group...
  6. K

    Animation not playing correctly

    Sure, I know that pointed object is still the same, but let's say I create 3 pointers in 3 diferent functions. P1----> Object <----P2 P3----^ Each of this 3 pointers uses one memory cell where is stored the adress of pointed object. -------------- | ObjectData | - ObjectAdress...
  7. K

    Animation not playing correctly

    function B takes nothing returns nothing local player pl2 = GetHandlePlayer(GetExpiredTimer(), "pl1") call DoSomethingWithPlayer(pl2) endfunction function A takes nothing returns nothing local player pl1 = GetTriggerPlayer() call SetHandlePlayer(exampleTimer, "pl1"...
  8. K

    Animation not playing correctly

    How do you know that? I thought every variable (except integer, real, string and boolean) should be nulled. I am asking because I'm also using local trigger trig = CreateTrigger() ...Register ...AddAction set trig = null
  9. K

    Is this trigger or smth possible?

    Here is my edited version. Hope it helps.
  10. K

    Is this trigger or smth possible?

    Man, Im not going to watch some low quality blurred video and try to reconstructe your problem. Attach or save somewhere your map. I will download it and check your problems. AFAIK you want 1) builder with the ability, which will make a simple tree (or buch of trees??) at target point 2) if...
  11. K

    Is this trigger or smth possible?

    You can make triggers in GUI (Graphic User Interface) Events Unit - A unit Dies Conditions (Unit-Type of (Triggering Unit)) Equal to (==) Footman Actions Player - Set (Owner of (Triggering Unit)) Current gold to 0 or convert it to JASS, which is some kind of programming language...
  12. K

    Instant casts (channel ability)

    Healing salve as item doesn't interrupt movement, but when I use Healing Salve as an ability, my hero stops to cast it...
  13. K

    Instant casts (channel ability)

    With a little bit of experimenting, I found: Avatar Defend Berserk Wind Walk Immolation Divine Shield Mana Shield Which are not interrupting my hero when used. Do you know any more or is there any option wher could I set this behavior?
  14. K

    Is this trigger or smth possible?

    You can find it under: Conditions -> Integer Comparison - > Player - Property -> and then set the options as you can see above. And to your tree problem: Since this is JASS Help forum thread, I tought you are working in JASS. With GUI, I could help you, but please...explain once more, what you...
  15. K

    Stub methods

    Got it, many thanks. +Rep
  16. K

    Noob questions

    I also have a question. struct S timer t static method create takes integer int returns S local S s = S.allocate() set s.t = CreateTimer() call SetHandleInt(s.t, "int", int) return s endmethod endstruct function test takes nothing...
  17. K

    Stub methods

    Also I am using JassHelper 0.9.E.0 if that helps.
  18. K

    Stub methods

    Exactly the same error (with "test" method)...
  19. K

    Stub methods

    Hmm, this is realy weird. I tried an example from jassHelper manual: struct Parent stub method xx takes nothing returns nothing call BJDebugMsg("Parent") endmethod method doSomething takes nothing returns nothing call this.xx() call this.xx()...
  20. K

    Is this trigger or smth possible?

    I think you can use EVENT_UNIT_ISSUED_TARGET_ORDER to recognize right-clicking and then filter your tree via conditions.
Top