• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

A Problem with spell based in Breath of Frost!

Status
Not open for further replies.
Level 6
Joined
Aug 12, 2005
Messages
205
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? :?:
 
Level 6
Joined
Sep 17, 2005
Messages
276
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 :?
 
Level 12
Joined
Apr 29, 2005
Messages
999
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.
 
Level 7
Joined
May 6, 2005
Messages
390
Level 6
Joined
Aug 12, 2005
Messages
205
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
 
Level 3
Joined
Oct 21, 2004
Messages
72
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.
 
Level 12
Joined
Apr 29, 2005
Messages
999
frog15 said:
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 **** 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?
 
Status
Not open for further replies.
Top