HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

why wont this work?

02-14-2004, 03:30 PM#1
Kaluo
Im working on a trigger for an ability based on avatar. When the ability is activated, the user gains hit points and spell immunity, but melee attackers are damaged 25 normally and more with higher levels of thorns aura.

Devils Sheath
Events
Unit - A unit Is attacked
Conditions
((Attacking unit) is A melee attacker) Equal to True
(Unit-type of (Attacked unit)) Equal to Martyr
Devils_Sheath Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Life of (Attacked unit)) Greater than 25.00
(Level of Thorn Armor for (Attacked unit)) Equal to 1
(Life of (Attacking unit)) Greater than 25.00
Then - Actions
Unit - Set life of (Attacked unit) to ((Life of (Attacked unit)) - 25.00)
Unit - Set life of (Attacking unit) to ((Life of (Attacking unit)) - 25.00)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Life of (Attacked unit)) Greater than 25.00
(Level of Thorn Armor for (Attacked unit)) Equal to 2
(Life of (Attacking unit)) Greater than 37.50
Then - Actions
Unit - Set life of (Attacked unit) to ((Life of (Attacked unit)) - 25.00)
Unit - Set life of (Attacking unit) to ((Life of (Attacking unit)) - 37.50)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Life of (Attacked unit)) Greater than 25.00
(Level of Thorn Armor for (Attacked unit)) Equal to 3
(Life of (Attacking unit)) Greater than 50.00
Then - Actions
Unit - Set life of (Attacked unit) to ((Life of (Attacked unit)) - 25.00)
Unit - Set life of (Attacking unit) to ((Life of (Attacking unit)) - 50.00)
Else - Actions

-----------------------------------------------------------------------------------

Here are the triggers i used to determine if Devil's Sheath is being cast, because boolean condition - unit has buff devils sheath wouldnt work :/

------------------------------------------------------------------------------------

Devils Sheath ON
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Devil's Sheath
Actions
Set Devils_Sheath = True


Devils Sheath OFF
Events
Unit - A unit Stops casting an ability
Conditions
(Ability being cast) Equal to Devil's Sheath
Actions
Set Devils_Sheath = False
02-14-2004, 03:41 PM#2
GaDDeN
use the code tags, its hard when it says "if then else" 3 times a row and then "then actions" 3 times after, use code tags so i can read it..... what i understood shud work, you sure the bolean is true when this happens? And that you have given him this thorny shield when he cast the avatar?
02-14-2004, 03:45 PM#3
MysticGeneral
Yeah, please edit that post to use the [code*] and [/code*] tags (without the astrix)