Recent content by touchpad

  1. T

    Triggered Spells Help

    There is a potential issue with using global variables rather than function arguments. If you had two abilities cast at around the same time and both set global variables, you might have a global variable changed while it is being used by another function. This might be avoided if you chose...
  2. T

    Triggered Spells Help

    I have found something that I can't do using this method. If the damage function kills the unit it damages, the unit that would be dealing the damage does not have a kill added to its kill count in the UI. If I were making a hero map, a hero using a triggered ability would presumably not get...
  3. T

    Triggered Spells Help

    I found a method for doing this, but I hope there is a better one. I defined a function with the arguments damager, damagee, and amount that handles the damage dealing and scoring if the damage causes a kill. Now, whenever I want to deal damage I create an if/then/else action in the...
  4. T

    Triggered Spells Help

    Wait, you figured this out? I've been working on this all day. How did you get instant damage to work?
  5. T

    Implementing a Mercenary Camp

    Is there a 'sell units' ability somewhere that could be used to make a neutral building able to sell units to any player? I tried using triggers to set a one-way alliance between human players and a neutral player and I succeeded in making them able to use the mercenary camp building, but I...
  6. T

    How to set up teams.

    Hi. I'm pretty experienced with Worldedit, but I can't seem to figure out how to set up teams with the Starcraft II editor. What I want is to have a map that has two teams of two players each, with player 1 and player 2 on a team and player 3 and player 4 on a team. I gave each player a...
Top