Search results

  1. darkbeer

    Circle movement using vectors?

    ye and thats what i think he did here: call helper.scale(.velocity.getLengthSquare() / helper.getLengthSquare() * PERIODE)
  2. darkbeer

    Set percentage movement speed of unit

    waits make most things non MUI but not everything ... and triggering unit IS MUI test it yourself Events - Units casts spell y Actions - Wait 10. seconds and then display unit name of triggering unit will always work properly no matter how often u cast it ....
  3. darkbeer

    Will adding events to a trigger the whole game cause a leak

    your trigger will be running multiple times, if you add the same event for the same unit multiple times. meaning the actions would appear multiple times on the same unit to prevent it, add the unit to a group and check if its already in it when adding the event.
  4. darkbeer

    How to limit training of heros to just one?

    Player - Limit training of Heroes to 0 for Player 1 (Red)
  5. darkbeer

    Tree triggers help

    0 means forever in most cases for buffs you can try a trigger like this: Events - Unit is issued an order with point target Conditions - Issued Order equal to move/smart/attack - move .... - Unit has buff invis Actions - Remove buff invis from triggering unit
  6. darkbeer

    Tree triggers help

    use a timer .... Events - Time every 0.5 sec Actions - - set TempGroup = Units of Type XY //whatever units you want here, could bed declared in another trigger as well - Unit group - pick all units in TempGroup - set TempLoc = Position of picked unit - Destructible - Pick every...
  7. darkbeer

    need help with blink blocker

    Events - unit is issued an order Conditions - Issued Order = Order Blink Actions - - set TempLoc = Target Point of issued order - If TempLoc is in Rect BLABLA then //<-- or for multiple regions - Issue triggering unit to stop - Display error message - Custom script: call...
  8. darkbeer

    AoE spell trigger

    use variables^^ non MUI: Events Unit - Unit Is attacked Actions Set TempLoc = (Random point in Region 184 <gen>) Special Effect - Create a special Effect at TempLoc using (spell Effect) Special Effect - Destroy (last created Effect) Wait 3.00 seconds Special...
  9. darkbeer

    WE unlimited question

    you might wanna take a look at this as well^^ EGUI
  10. darkbeer

    Find where the player is looking right now

    Set TempLoc = (Target of current camera view) guess this is what you want its under Camera .... (whe you set a variable not the thing under action)
  11. darkbeer

    Making variable with array greater than 8192

    ever heard of the word receycling? :D you should reuse arrays of removed units, instead of creating new ones for them then you wont have any problem. (8192 units and your map is doomed to be unplayable ;))
  12. darkbeer

    Leak inquiry

    both of them leak unless you remove them like this: Set Force = (All players matching ((Owner of (Triggering unit)) Equal to (Matching player))) Game - Display to Force the text: Custom script: call DestroyForce(udg_Force) set points8p1Engineer_habstation = ..... Unit - Move (Triggering unit)...
  13. darkbeer

    I cant open my map

    try opening it with winmpq and remove all imports. also you could post the error message...
  14. darkbeer

    Problems with Sliding / Skating trigger

    'Hblm' change to 'H008' also clean the group leaks! a little bit cleaner: function Trig_Slide_Actions takes nothing returns nothing local group g1 local location p local location p2 local unit u local integer i = 0 loop exitwhen i > 11 set g1 =...
  15. darkbeer

    Changing ownership to Custom Value

    Unit - Change ownership of (Last created unit) to (Player((Custom value of (Item being manipulated)))) and Change color this should only crash if the Custom value is a Player that doesnt exist in GUI like 0. so somehow the Custom value probably returns 0, but i dont now why yet^^ add a message...
  16. darkbeer

    Help me Clean up my spell

    well using locals is enough for this i guess^^ basically we create a local for everything we need after the wait and set our Globals to the locals after each wait. Same principle you used in the destroy effect trigger. * ShiveringFeeling o Events + Unit - A unit...
  17. darkbeer

    Help me Clean up my spell

    waits in an integer A loop can cause you some problems if you have any other integer A loop running while your trigger is running so better use a integer variable. put setting of i inside the loop, since you have waits there other triggers will interfere as well. (unless youre using the...
  18. darkbeer

    AOE Effects by many dummies

    on map init create a unit add the ability and remove the unit. there should be a tutorial aobut it somewehre
  19. darkbeer

    AOE Effects by many dummies

    does it lag everytime or only the first time? if its only the first time, you can preload the abilities. else, well it actually shouldnt lag at all^^
  20. darkbeer

    Sliding Trigger Won't Work

    i tested exactly your trigger and it worked with only changing that. if you dont believe me add more debug messages and see for yourself.
Top