damage on impact

ianu74

New Member
Reaction score
8
How do i make an Attribute based attack that works on impact?
Meaning that once the unit takes the damage from the attack, it takes extra damage based on the attacking unit's strength.
 

wingdnosring

New Member
Reaction score
16
Freehand Trigger:

Code:
Events:
Unit - Unit takes damage

Conditions:
Unit Type of (Damage Source) is equal to (Your Unit Type Here)
Level of (Your Ability Here) for (Damage Source) is Greater than or Equal to 1

Actions:
Turn off (This Trigger)
Unit - Make (Damage Source) damage (Triggering Unit) dealing (Your Damage Here) of damage Chaos and type Normal
Turn on (This Trigger)

I could probably come up with something better than that, but I need to know more about what you want. Is it something that only one unit will ever use or does the trigger have to be able to support 10 units at the same time? And how fast does your attacking unit attack?
 

ianu74

New Member
Reaction score
8
I want it to work for multiple units, and your trigger will still run even if the attacking unit misses. I want it to run if the attacking unit hits only.
 

wingdnosring

New Member
Reaction score
16
The only way to accomplish that would be with the event: "A Unit Takes Damage"

I'll edit my above trigger to show you what I mean.

[Edit] Hope that works for you.
 

Slapshot136

Divide et impera
Reaction score
471
for multiple units, something like this

event - unit enters (playable map area)
conditions - (triggering unit) has ability (w/e) = true
actions - trigger - add event (triggering unit) takes damage to (2nd trigger)
 

wingdnosring

New Member
Reaction score
16
Yes that's true you would want a second trigger that adds the event to the first trigger.

Freehand:

Code:
Events
Unit enters (Playable Map Area)

Conditions
None

Actions
Trigger - Add event to (The Other Trigger) (Entering Unit) takes damage
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
I want it to work for multiple units, and your trigger will still run even if the attacking unit misses. I want it to run if the attacking unit hits only.

Dude? Are you serious? The unit doesn't take damage when it misses...

Thus the event wouldn't fire.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top