Recent content by Tamisrah

  1. T

    Potions heal a % of heroes max life.

    I think the problem is, that you mixed percentages and absolute values. You'd want to have set maxlife = GetUnitState(hero,UNIT_STATE_MAX_LIFE) set life = GetUnitState(hero,UNIT_STATE_LIFE)+maxlife*.35 call SetUnitState(hero,UNIT_STATE_LIFE,life) You might want to substitute the...
  2. T

    How should heroes learn Abillities?

    I would definitely love to see a map were all abilities are available at level 1. But there is a good reason that this is not common. Why would you want to gain experience for if not for these abilities? So you must invent some other way to spend experience on. For example make most skills...
  3. T

    Efficient way to find which unit has the most units near it?

    Theory&Java random thoughts in jass
  4. T

    Check cooldown of a skill

    Except for the hashtable part this won't get any easier I'm afraid. Instead of a hashtable you should look into some kind of unit attachment system. (for example AutoIndex)
  5. T

    Giving structs initial value on creation?

    Easiest way to do so: static method create takes integer x, integer y returns thistype //... this.x = x this.y = y //... endmethod
  6. T

    Multiple small things.

    A must read:
  7. T

    Faux Mirror Image Using Channel

    Could it be that you just overlooked these? But the problem is ofc that these only look good on the original blademaster. So you will probably need a custom effect to recreate this effect with a different hero.
  8. T

    2 attacks change

    You'll need to use a morph ability to switch between to different units/heroesone with melee and one with ranged attack.
  9. T

    Just an FYI (Hashtables)

    What is it that you want to tell us? Seen this?
  10. T

    Need help with triggers

    Yeah sorry for the unprecise statement :o set udg_hashtable = InitHashtable() // <- this is needed I refered to it as "call" since InitHashtable is a function. But ofc you're right to say that to use it you need it for "set"ting the variable.
  11. T

    Need help with triggers

    You have to call InitHashtable() once before initial usage of the hashtable
  12. T

    How would I make an AI player for a TD?

    Different idea: Preplace a maze in the editor remove it on mapinit while storing the posititions of the towers in game refill the positions with towers build by the ai player or you could pregenerate multiple layouts and chose a random one on game start
  13. T

    How would I make an AI player for a TD?

    Try some geometry? p = Position of tower A offset = Size of one Tower (p.x+offset,p.y) (p.x-offset,p.y) (p.x,p.y+offset) (p.x,p.y-offset) and you have all for spots to build tower B Then check whether the terrain is buildable and check for distance to the creep path to decide whether...
  14. T

    Spellbook + Spell?

    Just to prove you wrong
  15. T

    Spellbook + Spell?

    Yes you can add spells to a Spellbook but it needs some work. For every spell you might want to add to a specific spellbook you need a dummy ability. This dummy ability must be based upon spellbook and have the same base order as the spellbook where you want to add the spell. Add the spell to...
Top