• 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.

[JASS] I am dazzled

Status
Not open for further replies.
Level 1
Joined
Sep 23, 2005
Messages
5
Question 1:
I can't find the function UnitDamagePointLoc in my blizzard.j or common.j Anybody got the same thing, or knows what is wrong?
Question 2:
I've made a block percentage damage function. But it's way to simple. What i would like to do is, when the damagetype is ATTACK_TYPE_NORMAL, do not block but reflect. But i can't seem to find a handle i can use in the common.j. Any other way out of this?

Tim R Jensen
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
TimRJensen said:
I can't find the function UnitDamagePointLoc in my blizzard.j or common.j

Points are GUI. in JASS they are called locations.

it is either called UnitDamageTargetLoc or UnitDamageLoc(i cant check right now, im at school)

TimRJensen said:
I've made a block percentage damage function. But it's way to simple. What i would like to do is, when the damagetype is ATTACK_TYPE_NORMAL, do not block but reflect. But i can't seem to find a handle i can use in the common.j. Any other way out of this?

Handle i can use? what do you mean

to reflect you would

-Register Damage

-Set Damage to 0

-Damage the Damage Source.

and ATTACK_TYPE_NORMAL is an attacktype, not a damagetype.
 
Level 1
Joined
Sep 23, 2005
Messages
5
The UnitDamagePointLoc is the formatted GUI function. Searching for UnirDamage will result in nothing as well. Anyways it doesn't really matter, i just find it odd that the function seems to not exits. It gotta be there somewhere though. The thing i would like with the reflection is:
if GetEventAttacktype() == ATTACK_TYPE_NORMAL) then
call whatever
endif
So what im looking for is a function the returns attacktype. If that does not exits i goota make my own, so i need a handle which i can use in a function.
 
Level 2
Joined
Sep 10, 2004
Messages
21
you could also try the following:

if attacker is a melee attacker and not a hero then
reflect damage
endif

so you should just set the attacktype of all melee attackers to normal and you can fake the attacktype function.
you also could create one more condition like
attackers unitid is not (unit type)
if you want to make melee units without normal damage.
 
Status
Not open for further replies.
Top