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

Dual Effect of Attack

Status
Not open for further replies.
Level 2
Joined
Jun 15, 2016
Messages
7
Hello guys, I'm new here...

Let's to the point, I just wondering..
is it possible to create dual effect of attack in warcraft 3?

let's say, i have an ability called "Medic Gun", it's a passive spell.
When the hero learn it, it will change the normal attack to be medic gun. Medic Gun will hurt enemy when player attack on enemies, but when player attack or right click on allies, will heal the allies.

if it possible, how to create it?
sankyu before.. :3

*sorry for my English..
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
I presume attacking enemies is no problem, since you can use the normal attack interface for that and you don't need to do anything. To heal allies You need to catch the order given to the unit and then instead stop it and order it to use its healing spell instead. Do you want the heal to be a channeled spell for the medic, or should the medic be able to heal and walk around simultaneously but just not be able to attack enemies while healing?

  • Events
    • Unit - A unit is issued an order targeting a unit
  • Conditions
    • (Level of MEDIC_GUN for (Triggering Unit)) greater than 0
    • ((Owner of (Target unit of issued order)) is an ally of (Owner of (Triggering unit))) Equal to True
    • Or - Any condition is true
      • (Issued order) equal to (Order(attack))
      • (Issued order) equal to (Order(smart))
  • Actions
    • -------- these may be necessary to properly clear the issued order --------
    • Unit - Pause (Triggering Unit)
    • Unit - Order (Triggering Unit) to stop
    • Unit - Unpause (Triggering Unit)
    • -------- ^^^^ --------
    • Unit - Order (Triggering Unit) to YOUR_HEAL_ABILITY_ORDER_STRING (Target unit of issued order) //I think you should just make medic gun an active skill with a passive looking icon and use it for the healing
Another way to solve this is to use a damage detect system to deal negative damage to allies. That would remove the need to have a heal ability the unit uses to heal targets, but would be a more involved trigger.
 
Level 2
Joined
Jun 15, 2016
Messages
7
Thank you for the reply, @Pyrogasm..

In my concept, when hero learn medic gun, the gun will imbue with heal power which is damage to enemy and/heal the ally

Let me try the trigger.. :) and download 'damage detect system' when I got my notebook..

Sankyu..
 
Level 11
Joined
May 16, 2016
Messages
730
Hello guys, I'm new here...

Let's to the point, I just wondering..
is it possible to create dual effect of attack in warcraft 3?

let's say, i have an ability called "Medic Gun", it's a passive spell.
When the hero learn it, it will change the normal attack to be medic gun. Medic Gun will hurt enemy when player attack on enemies, but when player attack or right click on allies, will heal the allies.

if it possible, how to create it?
sankyu before.. :3

*sorry for my English..
The problem is you have to divide damage caused by abilities and attack damage.
 

Attachments

  • MEDIC GUN.w3x
    28.9 KB · Views: 28
Status
Not open for further replies.
Top