Search results

  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...
  16. T

    Couple of questions

    1. See Nenads post 2. AE Dmg: Unreliable Formula - The scientist is trying to refine his potion of <insert something interesting here>. But the forumula still has the irritating tendency to explode. [Simple AE Dmg spell, but with randomized area of effect] Nuke: Spark Device - The scientist has...
  17. T

    creeps

    function RespawnCreeps_Filter takes nothing returns boolean return ( IsUnitEnemy(GetFilterUnit(), Player(PLAYER_NEUTRAL_AGGRESSIVE)) ) endfunction function RespawnCreeps_Actions takes nothing returns nothing //============================================================ // First...
  18. T

    Need help with creep summoning system. Arena Map

    Event - Switch is pressed if it is a footswitch, you could place a region on top of it and use 'Unit Enters Region' Condition - Who may use the switch? filter all units out that might step on the switch for which you don't want units to be spawned Actions - Create Units -...
  19. T

    Storage issues

    BagSys uses vJass, so you'll need jasshelper probably in form of NewGenPack to use any of it.
  20. T

    Tavern trouble

    Did you create the Variables?
Top