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

2 Questions please help

Status
Not open for further replies.
Level 19
Joined
Aug 24, 2007
Messages
2,888
First one how can we detect someone is REALLY attacked (attack is completed)
I think it requires a BIT jass. I want to make sure attack is finished to execute the trigger for example I have a buff that ends when you attack someone and when I attack someone and press stop in backswing+damagepoint time it removes the buff and target unit doesnt get damaged. I think I gave enough information

Second one how can I make a chain lightning with custom damage like x2 int damage of everytarget well I can create int/5 ammount of dummy casters with 10 damage chain lightning but is there another way for it

And first question is more important for me
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
1) Detect when the unit is damaged...

2) A long script. However, dil999 recently submitted a Chain Lightning System-ish thing that makes this much easier. (writing your own code is always better, but this would be a nightmare to make (especially MUI) in GUI)

about first you can only detect single unit get damaged
there is no unit is damaged event in general unit events its in specific unit events only but thanks anyway

AND

The chain lightning is not the chain lightning we know it seems you didnt look at it. It is not chain lightning already it shows how do you cast an ability with chain system like chain banish or chain poisoned dagger
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
about first you can only detect single unit get damaged
there is no unit is damaged event in general unit events its in specific unit events only but thanks anyway
Yes there is, it's called a custom system.

Here's one someone did in JASS awhile back; AnyUnitTakesDamage by Shadow1500

For the second one; it just calls a 'callback' function. The contents of that function, from damage to dummy abilities to heal, are up to you.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
I knew there is a way to detect if some is really attacked I know it takes a long Jass code I was just looking for and you helped me so Thank You :D

And There is a part with "your actions here" so I can make it run another trigger or convert my GUI in custom text and paste the actions part of it.

Here are the questions:
1- Is attacking unit Attacking unit and Attacked unit Attacked unit, or will this only trigger something when someone gets damaged ?
2- Can we make it not detect the spells like a storm bolt doesnt trigger it or something
 
Status
Not open for further replies.
Top