Need Help

Hot

New Member
Reaction score
9
Hello!

Im trying to create a system that will add bonus damage which is multiplied with a certain attribute point depending on what Item you are carrying.

Example: 9 Dmg + (2*Str)

i have allready created the trigger for adding the bonus damage, but i dont know how to check what item the hero is carrying

trigger
Trigger:
  • Damage System
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
    • Actions
      • Trigger - Add to Damage Modifer <gen> the event (Unit - (Triggering unit) Takes damage)


Trigger:
  • Damage Modifer
    • Events
    • Conditions
      • ((Damage source) is A Hero) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
        • Then - Actions
          • Set RealDamage = (Real(((Strength of (Damage source) (Exclude bonuses)) x 4)))
          • Unit - Cause (Triggering unit) to damage (Triggering unit), dealing RealDamage damage of attack type Spells and damage type Normal
          • Game - Display to (All players) the text: (String(RealDamage))
        • Else - Actions


The items are divided in classed (Attribute Type)

ItemType[1]= Dagger of the Swift (AGI)
ItemType[2]= Rusty Axe (STR)
ItemType[3]= Staff of Souls (INT)

(More items will come)

So how can i do a trigger like that?
 

jig7c

Stop reading me...-statement
Reaction score
123
wtf??

Trigger:
  • Unit - Cause (Triggering unit) to damage (Triggering unit), dealing RealDamage damage of attack type Spells and damage type Normal
 

Hot

New Member
Reaction score
9
wtf??

Trigger:
  • Unit - Cause (Triggering unit) to damage (Triggering unit), dealing RealDamage damage of attack type Spells and damage type Normal

Well it does work, first i changed the first "triggerin unit" to damage source but it created an infinity loop causing WE to crash

now it wont deal attribute in bonus damage but i can easily change that
 

Carnerox

The one and only.
Reaction score
84
turn if the trigger off, then turn it back on..

Also why do you use If/Then/Else when you don't even use IF?
 
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