• 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!
  • Get your art tools and paintbrushes ready and enter Hive's 34th Texturing Contest: Void! Click here to enter!

I wish there is a trigger that disable orb effect

Status
Not open for further replies.
Level 4
Joined
Sep 13, 2014
Messages
106
I control-f-ed through common.j and found this:

constant unitevent EVENT_UNIT_DAMAGED

It isn't mentioned in blizzard.j, which probably means that it isn't available in GUI, and I haven't tested it out or anything, but not everything that is possible can be done in GUI or by converting it to JASS.

Unless you mean strictly when a unit is dealt damage by an attack. I also haven't tested it.

Also I found these:

// EVENT_UNIT_DAMAGED
constant native GetEventDamage takes nothing returns real
constant native GetEventDamageSource takes nothing returns unit

It is quite useful to read through common.j, because it might allow you to do things you were otherwise unable to do.
 
Level 1
Joined
Mar 27, 2016
Messages
5
There are need 2 triggers, 1 triggers use to detect after a unit is entered to Playable Map Area and add a new event to next trigger (Entering unit - Takes Damage) and you can do your action now. However, i suggested you use Bribe Damage Engine will be better :)
 
I saw this done in an old map (Wc3 wow, or something)

  • Some Trigger
    • Events
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • Trigger - Add to SomeOtherTrigger <gen> the event (Unit - (Matching unit) Takes damage)
Which is a terrible way to do it, just use a Damage Detection System people.
 
Status
Not open for further replies.
Top