- Joined
- Jul 22, 2009
- Messages
- 214
I've create a system that add some ability to the hero when he have all item of a set. My system work like this:
-
Events
- Unit - A unit Acquires an item
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Item-type of (Item being manipulated)) Equal to |CFF4A79FFCrusader's Plate|r
- (Item-type of (Item being manipulated)) Equal to |CFF4A79FFCrusader's sword|r
- (Item-type of (Item being manipulated)) Equal to |CFF4A79FFCrusader's helm|r
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Wait 0.02 seconds
- Set SetHero = (Hero manipulating item)
- Set PlayerItem = (Player group((Owner of SetHero)))
- Set SetPlayerNumber = (Player number of (Owner of SetHero))
- Set SetTier1[SetPlayerNumber] = (SetTier1[SetPlayerNumber] + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SetTier1[SetPlayerNumber] Equal to 3
-
Then - Actions
- Set CrusaderSet1[SetPlayerNumber] = True
- Game - Display to PlayerItem for 5.00 seconds the text: |CFFA8A8A8Crusader ...
- Game - Display to PlayerItem for 5.00 seconds the text: 200 hit point
- Game - Display to PlayerItem for 5.00 seconds the text: 14 armor
- Game - Display to PlayerItem for 5.00 seconds the text: 5 hit points regen ...
- Unit - Add Item Armor Bonus (+14) to SetHero
- Unit - Add Item Life Regeneration(5/s) to SetHero
- Unit - Add Item HP Bonus (+200) to SetHero
- Else - Actions
-
If - Conditions
-
Events
- Unit - A unit Loses an item
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Item-type of (Item being manipulated)) Equal to |CFF4A79FFCrusader's Plate|r
- (Item-type of (Item being manipulated)) Equal to |CFF4A79FFCrusader's sword|r
- (Item-type of (Item being manipulated)) Equal to |CFF4A79FFCrusader's helm|r
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Wait 0.02 seconds
- Set SetHero = (Hero manipulating item)
- Set PlayerItem = (Player group((Owner of SetHero)))
- Set SetPlayerNumber = (Player number of (Owner of SetHero))
- Set SetTier1[SetPlayerNumber] = (SetTier1[SetPlayerNumber] - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SetTier1[SetPlayerNumber] Not equal to 3
-
Then - Actions
- Set CrusaderSet1[SetPlayerNumber] = False
- Unit - Remove Item Armor Bonus (+14) from SetHero
- Unit - Remove Item Life Regeneration(5/s) from SetHero
- Unit - Remove Item HP Bonus (+200) from SetHero
- Else - Actions
-
If - Conditions
-
Events
- Unit - A unit Finishes casting an ability
-
Conditions
- (Ability being cast) Equal to Divine froce (crusader spell)
-
Actions
- Set SetPlayerNumber = (Player number of (Owner of (Casting unit)))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- CrusaderSet1[SetPlayerNumber] Equal to True
-
Then - Actions
- Unit - Add Item Armor Bonus (+14) to SetHero
- Unit - Add Item Life Regeneration(5/s) to SetHero
- Unit - Add Item HP Bonus (+200) to SetHero
- Else - Actions
-
If - Conditions