Taking Damage

Swiftblaze

New Member
Reaction score
2
Is it possible to use "Takes damage" as a generic unit event? If not, is there any way to use it in such a manner? I want to make it so that when a unit takes damage, it will gain mana.
 

Drunken_God

Hopes to get back into Mapmaking with SC2 :)
Reaction score
106
make a trigger that runs everytime a unit comes into the game or in WEU i think there is a event
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
Don't use WEU, want you map get corrupted?

Use emjlr3's OnAttack Template.
 

Sim

Forum Administrator
Staff member
Reaction score
534
> Is it possible to use "Takes damage" as a generic unit event?

Yes,

Unit Group - Pick every units in (Playable map area) and do (Trigger - Add to Gain Mana <gen> the event: (Unit - (Picked unit) takes damage))

Then,
make a trigger that runs everytime a unit comes into the game

similar to above.
 
M

Mandm80

Guest
You could do the event
JASS:
Event: Unit takes damge
Condition:Triggering unit is a hero(unless thast not what you want)
Action<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue    :p" loading="lazy" data-shortname=":p" />lace what you want here like heal or give gold ect..
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
That's different dude o_O
'Unit Takes Damage' and 'Unit Is Attacked' are different.

Unit Takes Damage event is fired whenever the unit takes damage.
But the Unit Is Attacked event is fired whenever a unit attempts to attack a unit.
 

Quauhtli

I have the right to remain silent.
Reaction score
62
Don't use WEU, want you map get corrupted?
Please don't constantly say that WEU corrupts. I used it for about half a year and never had my map crash or get corrupted or anything similiar like all the rumours are about WEU. (I don't have WEU now btw)

Perhaps some other people have it but whatever.

And yes there is a trigger in WEU that is A unit receives damage (or something like that).
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top