Recent content by N-a-z-g-u-l

  1. N-a-z-g-u-l

    What can crash Warcraft III without an error notification?

    thanks, that was a good hint... i added some safety checks there, i dont know whether this fixed it, but anyways, safety can never be wrong. by the way, this is the map i am talking about: http://supcom.btanks.net/
  2. N-a-z-g-u-l

    What can crash Warcraft III without an error notification?

    function ExitWarcraft takes nothing returns nothing loop call ExecuteFunc("ExitWarcraft") endloop endfunction its this function, it just closes warcraft without any message and heres a version for just one player, however, this may open the "player lags" window... dont know...
  3. N-a-z-g-u-l

    What can crash Warcraft III without an error notification?

    function ExitWarcraft takes nothing returns nothing loop call ExecuteFunc("ExitWarcraft") endloop endfunction function FreezeWarcraft takes nothing returns nothing loop call TriggerSyncReady() call ExecuteFunc("FreezeWarcraft") endloop endfunction function BreakThread...
  4. N-a-z-g-u-l

    Attack/Move - Stop From Retreating

    is there a function to stop creeps from walking back to their original position after the use of "attack" to a point? they attack everything in the way, but when they reach the target and theres no enemy left, they all walk back to their base EDIT: native RemoveGuardPosition takes unit hUnit...
  5. N-a-z-g-u-l

    Best alternative?

    ah yes, my mistake... i am substracting the speed... this way is right: globals integer udg_Index real udg_GravityForce real array udg_SpeedZ real array udg_Z unit array udg_Unit endglobals function MoveZ takes integer udg_Index returns real set...
  6. N-a-z-g-u-l

    Best alternative?

    globals integer udg_Index real udg_GravityForce real array udg_Y_Velocity boolean array udg_Up real array udg_YA real array udg_YB unit array udg_Unit endglobals function MoveZ takes integer udg_Index returns real if udg_Up[udg_Index] then set udg_Y_Velocity[udg_Index] =...
  7. N-a-z-g-u-l

    Best alternative?

    a handle is a variable which holds more than one value... basically...^^ you can detect a handle this way: local location p = Location(0,0) local location p2 = p call RemoveLocation(p) // p2 is a pointer to the same space in memory, it is removed, too! local integer i = 100 local...
  8. N-a-z-g-u-l

    Best alternative?

    units and other "bigger stuff" are just integers poiting to some space in the memory, so i think there shouldnt be a big difference in speed but again, what for? if your map is running fluently, everything is great^^ first steps to optimize your map would be to reduce the amount of units...
  9. N-a-z-g-u-l

    Best alternative?

    actually... warcraft puts all your triggers in the map script when saving... the first script is the map script, then all your triggers and function calls to their initialization functions "triggers" in jass are only handles which are hold in global variables "triggers" in the trigger editor...
  10. N-a-z-g-u-l

    per player multiboard issue

    call MultiboardDisplay(board[p],false) if GetLocalPlayer() == Player(p) then call MultiboardDisplay(board[p],true) endif better: call MultiboardDisplay(board[p],GetLocalPlayer() == Player(p)) i know this doesnt solve the problem, but...
  11. N-a-z-g-u-l

    Special effect with JASS not working

    umm well what are you doing there? function Trig_Ardent_Mist_Copy_Conditions takes nothing returns boolean return GetSpellAbilityId() == 'A00L' endfunction function Trig_Ardent_Mist_Copy_Actions takes nothing returns nothing local location ARDENTLOC = GetUnitLoc(GetSpellTargetUnit())...
  12. N-a-z-g-u-l

    Need help with math(?) function

    might work, but the new location will never be on another cliff level (can be quite annoying if the space on that cliff-level is filled, then the building can be created in some trees... and building order would fail im not 100% sure, but i had the same problem (only with units) my...
  13. N-a-z-g-u-l

    Snippet Handle Counter

    the name should be: last destroyed handle id displayer^^
  14. N-a-z-g-u-l

    Snippet Handle Counter

    this is not meant as a system, but for tests :D i wanted to see if the result is jumping.. it is not (it only jumps in between 92...192 if i have another periodic function which creates 1...100 locations and destroys them in the order 1...100)
  15. N-a-z-g-u-l

    Adding onto a local integer?

    and by the way... you are faster typing jass than creating gui triggers, if you know the basic commands and how jass works
Top