Search results

  1. E

    Can someone explain what "For Loop Integer A" does?

    Yes, you can do it like this (freehand): for loop integer a from 0 to 11 if not yourVariable[integer A] = (null/no unit/etc.) then (your code) endif I'm not sure how to exit loops in gui but you might want to do that to if you only want this to run for one non-empty variable...
  2. E

    Custom Script that doesn't work

    set udg_move_to_here = gg_rct_The_Town ... call RemoveLocation(udg_Move_to_Here) You're either trying to set a location variable to a rect, or remove a rect as if it were a location try this function Trig_Move_to_Here_Func003A takes nothing returns nothing call...
  3. E

    An alchemy skill

    You will have to go through every possible potion but that's unavoidable no matter how you do it. When you give the ability to a unit, also store it to a variable, that will be used when removing.
  4. E

    An alchemy skill

    unit - add ability and unit - remove ability
  5. E

    NewGen with Windows 7 ??

    Unfortunately, I don't know what your problem is :( However, NewGen works fine for me (With windows 7), so there is hope! Try running as admin or using compatibility mode?
  6. E

    EVENT: (unit) life becomes . . .

    Wherever you set the unit variable add this action Trigger - Add to (your trigger) the event (Unit - (your unit)'s life becomes...)
  7. E

    Some basic trigger help

    The square bracket is the index for the array. You're replacing the owner of killing unit's kill count with the kill count of another player. The '+ 1' should be outside of the bracket.
  8. E

    Map problem

    This is the absolute weirdest thing that I have ever seen in the world editor! The problem is in the trigger "Spawn Creeps" Specifically the line For each (Integer A) from 1 to creepSpawnCount[levelCount], do (Actions) After deleting that line and remaking it the exact same way, it started...
  9. E

    Map problem

    # If - Conditions * levelCount Equal to (creepCount_lastIndex + 1) Where is creepCount_lastIndex set?
  10. E

    Far Seer Attacking Effect

    AFAIK its part of the model; not changable in the world editor
  11. E

    Order unit to drop item.

    I believe in your conditions it should be "item being manipulated" instead of picked item.
  12. E

    Working with RANDOM!! HELP!!

    Thank you, sir ;)
  13. E

    Working with RANDOM!! HELP!!

    Replace -pick every unit in tempGroup replace picked unit with heroes[random integer between 1 and totalHeroes] using new unit's max life and mana with -pick every unit in tempGroup --set tempInt = random integer between 1 and totalHeroes --replace picked unit with heroes[tempInt] using new...
  14. E

    Working with RANDOM!! HELP!!

    Heres the simple way that I'd do it. Havn't used the world editor much recently so it might be a little rusty ;) -set heroes[1] = dread lord -set heroes[2] = archmage etc... -set totalHeroes = *number of hero types in the array* -set tempGroup = units in playable map of type peasent -unit -...
  15. E

    Help!!

    Try designating somebody else, I know that works for Diablo 2
  16. E

    Need opinion for game type

    It would be very hard to balance, but if you can manage it i think it could be pretty fun :)
  17. E

    Custom Scrpt help

    GetHeroAgi returns an integer, not a real.
  18. E

    Select hero with a key

    You can simply change ownership when somebody selects the unit... This may also help to regulate who gets to choose a hero and when ;)
  19. E

    Spawn random unit from group

    In the variable editor (little yellow X) Add a variable of type "Unit-Type" and tick off the little box called "Array" and set the size to 3. Then in your trigger actions (the word "units" is just an example, replace it with whatever you name your variable) set units[1] = your first...
  20. E

    Nearby partron

    I don't think you can remove it, but is there a value in object editor for how close a unit must be? If you have any units at all you can probably set that to the full map and use it from anywhere. Alternativly you can make a unit with no model file (i.e. a dummy unit) and put it beside the shop.
Top