Dealing INT of Unit + Damage of unit to target

tanchunhung

New Member
Reaction score
2
I hard to find Dealing INT of Triggering unit + Damage of him to a unit.Can everyone help me right now?
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
right now we cant because you havent given us the information we need.
what kind of ability is it? active? AoE? unit target? orb effect? DoT?

you havent told us anything but that you want to deal damage equal to int but you havent told us to whom this damage shall be dealt or whos intelligence is used.


to deal damage to a unit you only have to use
"Unit - Damage Target"
 

tanchunhung

New Member
Reaction score
2
Damage target,dealing int + damage of triggering(attacking unit) to unit attack type hero to force
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
what is the event? when one unit attacks an other with a normal attack?
 

Cheddar

This is the way it was meant to be.
Reaction score
126
Skippy is right. There is no way to get a unit's attack into an integer or real.

To get intelligence, I believe it's an integer in the Hero - Attribute section.
 

tommerbob

Minecraft. :D
Reaction score
110
If you want to trigger the bonus damage whenever the unit deals damage, like a passive damage bonus, you can use a damage detection system, like Weep's GDD. That would make what you want to do very easy.

Trigger:
  • Events
    • Game - GDD_Event becomes equal to 0.00
    • Conditions
      • GDD_DamageSource equal to <your unit>
    • Actions
      • Unit - Cause GDD_DamageSource to damage GDD_DamagedUnit dealing (Intelligence of (GDD_DamageSource)) of attack type spells and damage type normal


That would cause your unit to deal bonus damage equal to his intelligence each time he deals damage. Of course there are lots of loopholes with this, because you would then need to distinguish between ATTACK damage and SPELL damage, etc. etc. But the gist of it is there.

Other than that, what everyone else has said is true.
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
@tommerbob:
you trigger would make the game crash since it would be an infinite loop.

you have to disable / enable the trigger before / after the damage dealing process.
 

Cheddar

This is the way it was meant to be.
Reaction score
126
I already posted this.

It's an integer. Hero -- Attribute, I believe.
 
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