Recent content by Weyrling

  1. Weyrling

    Altaring unit damage without items

    The RP maps use a list of damage bonus abilities that are added to the unit with a trigger. You generally have 13 invisible damage buffs with the values of: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096. These values, added together properly, can equal any number from 1 to 4096. This...
  2. Weyrling

    Knockback system not removing

    X[i] & Y[i] are the distance the unit is supposed to be moved on either axis. The testX & testY are to make sure the unit doesn't fly out of the area. function VMoveUnit takes unit u returns nothing local integer i = GetUnitUserData(u) local real testX = GetUnitX(u)+X[i] local...
  3. Weyrling

    GroupAddGroup Issue

    ...Doh
  4. Weyrling

    GroupAddGroup Issue

    The following is an example of the problem I'm having: function Example_Function takes group g returns nothing local group g2 call DisplayTextToForce(GetPlayersAll(),"Trigger Activated") call GroupAddGroup(g,g2) call DisplayTextToForce(GetPlayersAll(),"Group Added") endfunction This function...
  5. Weyrling

    Looping and Lists glitch

    I forgot to make an endloop at 0, thanks for pointing that out. I've actually capped the max number at around 500, and that's never lagged on me even with 500 aiming at the 1, so I'm just going to add an "if num == 0 then set b = true" to it.
  6. Weyrling

    Looping and Lists glitch

    This forum never helps me >.< *Bump*
  7. Weyrling

    Looping and Lists glitch

    This is what I call the following functions with: Special Effect - Create a special effect attached to the AttachPoint of TempUnit using SFXString[TempInteger] Set SFX = (Last created special effect) Custom script: call SFX(udg_TempUnit,udg_SFX) ^^In GUI, this part works perfectly^^ In a...
  8. Weyrling

    Random Terrain - Co-ordinates Help +rep

    Immediately Noticeable: You only set the random number (TempInteger) once, yet go through a large number of loops using it. Was this intentional? Edit: For efficiency, you should place the Set TempReal = ((Real((Integer A))) x 32.00) Outside of the B loop, but inside the A loop. Also...
  9. Weyrling

    ability that increases attack range?

    If you intend it to switch back and forth at will, you should use a unit-replace ability instead.
  10. Weyrling

    Trigger that works at night?

    If you can potentially have multiple of this unit type running around, use the following: First, make a unit group variable (Select the X in the trigger editor, make new, go down til you find 'Unit Group'). Event: Game - in game time becomes >= 6 Set UnitGroupVariable to Units of Type HeroGuy...
  11. Weyrling

    Trigger that works at night?

    Assuming there is only one unit with that ability, simply make a global 'unit' variable, and set it when you add the skill.
  12. Weyrling

    How do I make farms that give gold every 5 or so seconds?

    Using the previously posted trigger, you don't have to.
  13. Weyrling

    I need conditions that use upgrades =(

    (Current research level of Iron Forged Swords for Player 1 (Red)) Equal to 0 //Integer Condition - Player Maybe? Saying 'Equal to 1' or 'Equal to 0' is a simple boolean check if that is what you needed. Otherwise, I think it's self-evident.
  14. Weyrling

    DotA spell "Ion Shell"

    Just use an invisible spellbook with permanent immolation in it. With some simple usage of local variables and a loop you can make it remove itself after the buff disappears.
  15. Weyrling

    Trigger that works at night?

    The only event is 'unit learns a skill'. You need to make another trigger with the event: Game - in game time becomes >= 6 This will detect the game time entering Day Game - in game time becomes >= 18 This will detect the game time entering Night The previous 2 code strings were events. You need...
Top