• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] got a problem damage detection based triggered-critical strike spell

Status
Not open for further replies.
Level 2
Joined
Apr 19, 2008
Messages
5
This is problem section of my triggered-critical strike GUI
  • Crit
    • Events
      • Unit - A unit is attacked
    • Conditions
    • Actions
      • Trigger - Add to Crit Effect <gen> the event (Unit - (Triggering Unit) Takes damage)
  • Crit Effect
    • Events
    • Conditions
    • Actions
      • Unit - Cause (Damage Source) to damage (Triggering Unit), dealing Damage taken type bla bla

Every time i attack the target, damage done is multiplying. i mean it doesnt goes 2x. it goes 2x 3x 4x 5x etc.where is the problem? why thats happening?

thnx for your helps anyway

btw sorry for my bad grammer.
 
Level 20
Joined
Oct 21, 2006
Messages
3,231
You get one new event on every time whe the unit is attacked. Thats why its first 2, then 3 and then 4. You need to change the event of your first trigger to the Map Initialization and pick all units in a playeable map or something that happens only once for that unit. Or "unit is sold".
 
Status
Not open for further replies.
Top