Warcraft III resources & community, 2003–2006 · archived

A Problem with spell based in Breath of Frost!

9 posts
#1

A Problem with spell based in Breath of Frost!

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:
:arrow: A unit starts the effect of an ability
Condition:
:arrow: Ability being cast equal to Terrify
Actions:
:arrow: Set TerrifyCaster = Casting Unit
:arrow: Wait 0.75 second
:arrow: 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? :?:
#2
hm... i heared once that the "pick every unit" could make some difficulties with that.

you can try using the "units within range of 800" of casting unit. with condition they have the buff.

anyway you have to try that out. hope that helped ya :?
#3
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.
#4
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%. :D
#5
You can easily learn JASS by Vexorian's tutorial and then look at Daelin's tutorial. Do it! :D
#6
DaminonYou can easily learn JASS by Vexorian's tutorial and then look at Daelin's tutorial. Do it! icon_biggrin.gif


Yeah, learn JASS, GUI sucks, especially for things that require multi instanceability, like spells.

Useful tutorial links: Vexorian's Introduction to JASS tutorial, KaTTaNa's Using the Handle vars tutorial.

Those are the best tutorials to new people I can remember at the moment.

Go ahead, "Don't be an ass: learn JASS!".
#7
Go ahead, "Don't be an ass: learn JASS!".

LOLLLLLLLLLLLLLL :lol: :lol: :lol: :lol:

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! :D
#8
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.
#9
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?