• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Where is value for DAMAGE of UNIT ?

Status
Not open for further replies.
Level 13
Joined
Mar 4, 2009
Messages
1,156
I want one of my units to have bonus damage from another unit
  • ATTACK BONUS
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Attacking unit) Equal to (My unit)
    • Actions
      • Unit - Cause (Attacking unit) to damage (Attacked unit), dealing <Number of Damage of Some Unit )> damage of attack type Hero and damage type Normal
<Number of Damage of Some Unit > I don´t know how to do that:confused:
 
Level 8
Joined
Mar 12, 2008
Messages
437
The only possibility, I think, is to store everything somewhere (base damage, number of dice, sides per die, attribute points, attribute bonuses, attack bonuses, upgrades etc.) That however would be a very messy method.
 
Level 11
Joined
Oct 20, 2007
Messages
342
never so easy say impossible to world editor ~ it's a great program~

here u can do~

  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Trigger - Add to Taken Damage <gen> the event (Unit - Peasant 0000 <gen> Takes damage)
  • Taken Damage <gen> the event (Unit - (Triggering unit) Takes damage)
1st trigger is add unit to the event of trigger "Amplify Damage"
[because there got no Taken Damage <gen> the event (Unit - (Triggering unit) Takes damage) event can be chosen in event]


  • Taken Damage
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • integer Equal to 0
        • Then - Actions
          • Set integer = 1
          • Unit - Cause (Damage source) to damage (Triggering unit), dealing ((Damage taken) x 1.50) damage of attack type Chaos and damage type Normal
        • Else - Actions
          • Set integer = 0
Damage taken is the damage u deal by the Damage source
so multiply it and like the example given is dealing 250% damage to the unit u want.

Set integer = 1
is to anti the trigger unlimited repeating,
the action Cause (unit) to damage (unit) will mean the event also~


more:

If u want do only for Attack that not including spell,
it's not a impossible also~
there got 2 way~

one way is needed to add orb effect to attacking unit~

another way is totally need nothing
but i have to say it is more complicated and not really free of bug~

if u needed tell me~ because it late, i have to sleep ad~
 
Last edited:
Level 13
Joined
Mar 4, 2009
Messages
1,156
never so easy say impossible to world editor ~ it's a great program~

here u can do~

  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Trigger - Add to Taken Damage <gen> the event (Unit - Peasant 0000 <gen> Takes damage)
  • Taken Damage <gen> the event (Unit - (Triggering unit) Takes damage)
1st trigger is add unit to the event of trigger "Amplify Damage"
[because there got no Taken Damage <gen> the event (Unit - (Triggering unit) Takes damage) event can be chosen in event]


  • Taken Damage
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • integer Equal to 0
        • Then - Actions
          • Set integer = 1
          • Unit - Cause (Damage source) to damage (Triggering unit), dealing ((Damage taken) x 1.50) damage of attack type Chaos and damage type Normal
        • Else - Actions
          • Set integer = 0
Damage taken is the damage u deal by the Damage source
so multiply it and like the example given is dealing 250% damage to the unit u want.

Set integer = 1
is to anti the trigger unlimited repeating,
the action Cause (unit) to damage (unit) will mean the event also~


more:

If u want do only for Attack that not including spell,
it's not a impossible also~
there got 2 way~

one way is needed to add orb effect to attacking unit~

another way is totally need nothing
but i have to say it is more complicated and not really free of bug~

if u needed tell me~ because it late, i have to sleep ad~

Nice but i want damage from another unit (bonus damage).......actually i´m working on double inventory and this is the only thing left, i will send it to you if you need it.......

I want to

set DAMAGE = "damage of my unit"


EVENT-unit is attacked
CONDITION-attacking unit equal to my unit
ACTION-cause attacking unit to damage attacked unit dealing DAMAGE of damage type hero and attack type normal......

BTW is it possible to add MAX mana/health not useing upgrades or abilities?
 
Status
Not open for further replies.
Top