• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Detecting Spells and Attacks

Status
Not open for further replies.
The easy but very inefficient and buggy way:

-->make normal attacks give a buff by giving all units an orb-based ability that gives buff... so if the unit that gets damaged has the buff, then its a normal attack

The only efficient and non-buggy way to do this is via triggering all damages... that way you can set on the damage triggers what type of damage it is...
 

sentrywiz

S

sentrywiz

You can: however its gonna be time consuming. There are lots of ways it can be done, this just my view:

- a preset of data in a sort of trigger-database. you can save all possible spells and all possible items that affect spells into variables, then simple control the damage yourself [THIS WOULD COUNT AS SPELL DAMAGE]

- then you can use a gui damage detection system, to display in text how much damage is being dealt and in what fashion. since you already have a preset of spell damage, anything that isn't spell damage is attack damage.
 
Status
Not open for further replies.
Top