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
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?
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)
- Events
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
- If (All Conditions are True) then do (Then Actions) else do (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?