Search results

  1. Z

    GetTriggeringTrigger in Filter function?

    When I do something like this static method onExit takes nothing returns boolean local trigger trr=GetTriggeringTrigger() local thistype this=GetTriggerData(trr) local unit l=GetFilterUnit() local unit d if IsUnitEnemy(l,.p) and...
  2. Z

    Execution of a String

    I don't understand >.<
  3. Z

    Another Omnislash. vJass

    1. Because the Filter function is called by GroupEnumUnitsInRange, that function is called inside onLoop function, onLoop function IS called by a timer. :P 2. the first is the best, also you can use UnitAlive Thanks man, that's great!!!
  4. Z

    Another Omnislash. vJass

    Ok, i know there are a lot of Omnislash spells encoded, but only found one approved in THW, and it's GUI. Anyway, i'm not going to send this as a resource because people don't like repeated spells :D Requirements: GT - Jesus4Lyf TimerUtils - Vexorian Here's a test map, wich has the...
  5. Z

    Having two parameters

    exitwhen ( "" = substring(GetEventPlayerChatString(), 7, 1) ?? What are you trying to get with that command (-gold x y) exactly?
  6. Z

    Help with first Jass spell

    All the structs have default methods (create, destroy, allocate...). ^ http://www.thehelper.net/forums/showthread.php?t=127853 then, If you have: local Data billy = Data.create(u1, u2) local Data john = Data.create(u3, u4) billy and john are the same struct, but each is unique and...
  7. Z

    Help with first Jass spell

    1. Yes, you can... But remember to change it here too: private function init takes nothing returns nothing local trigger t = CreateTrigger() call TriggerRegisterAnyUnitEventBJ(t, EVENT_PLAYER_UNIT_SPELL_EFFECT ) call TriggerAddCondition(t, Condition(function Cond))...
  8. Z

    Help with first Jass spell

    rexpim, that condition func sucks. function conditions takes nothing returns boolean return GetSpellAbilityId()=='A000' //<- rawcode endfunction Or just use GT system http://www.thehelper.net/forums/showthread.php?t=123288
  9. Z

    Help With Parameter(?)/Help With Error Message

    function Error takes string errormsg returns nothing -Sound -Display Text (errormsg) endfunction function caller takes nothing returns nothing call Error("Error message") endfunction
  10. Z

    TESH Implement

    You must to save the notepad file as "Damage.j", and not "Damage.j.txt" check that
  11. Z

    Units Control Groups

    And how can you do that?
  12. Z

    Starting jass

    ^ Lol... Of course, I forgot. xD
  13. Z

    Starting jass

    ^ Te correct keyword is private. GetSpellTargetX() and GetSpellTargetY() are natives that are recently added by blizzard. NewGen don't higlight them... But they work! Sorry for my sucker english xD
  14. Z

    Starting jass

    I tried with a global function ... function InitTrig_NatureStrike takes nothing returns nothing call TriggerAddAction(GT_RegisterStartsEffectEvent(CreateTrigger(),NATURESTRIKE),function Trig_NatureStrike_Actions) endfunction And it works... but i don't know why xD Also you can...
  15. Z

    Starting jass

    ??? When you create a trigger, it's unique. Then you can use it for detect an event, add conditions and actions,etc... You can't use "the same local trigger for various triggers" because the local triggers only can be used in the function they are declared (init function)... And remember...
  16. Z

    Units Control Groups

    No... These groups are not like the groups (type group) in jass... i guess
  17. Z

    Starting jass

    Ok, then you don't need the life of the tree. Destructables are handles, then you can use a system like TimedHandles too (i don't know if that system is updated.)
  18. Z

    Starting jass

    I think he talks about the lifetime of the destructable (constant real LIFE = 20.00), not life itself.
  19. Z

    Starting jass

    scope NatureStrike globals private constant integer NATURESTRIKE = 'A01U' // Nature Strike RAW CODE private constant integer TREE = 'BTtw' // Tree RAW CODE private constant integer VAR = 2 // Tree variation private constant real SCALE =...
  20. Z

    Spell from DotA to practice vJASS. It's fine?

    Is not more optimal if units never enter to group?
Top