• 🏆 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] Trouble with bonus dmg and items

Status
Not open for further replies.
Level 3
Joined
Jun 20, 2008
Messages
43
Hello :(
Now I'm very confused, I explain first what I want to do :

I have :

Hero X 20 Strength; 0 Bonus Dmg
Enemy Y 40 Strength ; 10 Bonus Dmg

(Strenght = Power how ever or how ever)

Now :
  • Event - A unit is attacked
  • Condition - Attacking unit X
Then I want something like this :
  • If Y Strength+Bonus > Strength X + Bonus then
  • Set X strength + Bonus = Y Strenght + Bonus Dmg
So first of all I need something to save Strength + Bonus Dmg.
I thought about items but I realy don't have an idea how to go ahead with this.
I propably just need to know how to handle it with the Bonus Dmg.
I tried it with items, but I probably can't change the value of the Bonus Dmg of the item :/
Would be nice of you could help me
 
Status
Not open for further replies.
Top