I Have in my map a spell based in breath of frost that causes no damage in the default spell, the damage is triggered because is a percentage of the hit point! The trigger is:
Event: A unit starts the effect of an ability Condition: Ability being cast equal to Terrify Actions: Set TerrifyCaster = Casting Unit Wait 0.75 second Pick every units in playable map area matching (matching unit has buff Terrify equal to true) and do: Cause TerrifyCaster to damage picked unit by Agility of Picked unit x 2 dealing attack type spell and damage type enhanced.
The distance of the wave is 800 and the missile speed is 4000, then, the missile reachs everyone before these 0,75 seconds of the wait action in the trigger and the buff lasts 1.5 second. The problem is that sometimes this spell not causes damage, 90% of the times it works perfectly, but the others 10% don't cause damage, the missile passes through the unit but the unit takes no damage. Someone know why?
Those pick units matching condition functions are not to trust I can tell. Especally not pick N units. I tried to make a spell once that should pick N matching units but it worked around every 10 try. It picked both invalid targets and invalid amount. With JASS you have full control.
I don't know use JASS ! But I'll try the action to pick every unit within 800 range of casting unit, perhaps the chance to the spell don't work decrease from 10% to 0%.
In the moment I think I don't need to learn JASS, I can do everything I want using GUI. In my map, a hero can be used by only 1 player, then, I don't need the multinstaciablitiy, But, perhaps I try to read and learn in a near future!
I looked at some of the Jass tutorials and blew myself away. The problem I have with Jass is that there are alot of functions that I have no idea what they do. I also have no idea how to thread a function so it can do multi catches. The best I could think of would be using a shit load of local variables to specify every unit in a range then do a spell on that unit or something like that.
Alot of work for something that can easily be done with GUI with dummy units. Yes it messes up the final score, but I can live with that. I'm not picky. I just want it to work, and it does.
frog15I looked at some of the Jass tutorials and blew myself away. The problem I have with Jass is that there are alot of functions that I have no idea what they do. I also have no idea how to thread a function so it can do multi catches. The best I could think of would be using a **** load of local variables to specify every unit in a range then do a spell on that unit or something like that.
He he. I got crazy too the at my first JASS atempts. I almost couldn't make a single line without syntax error as long with a lot of other problems. BUT, this was before I red Daelin's tutorial. After that I truly learned who to use it.
What is multi catches? You mean pick units functions?