- Joined
- Aug 1, 2009
- Messages
- 714
I only ask a lot of questions so that I can create a Formula.
#1: How could I check in a condition the damage type that dealt in a unit...
#2: Will this leak?
#1: How could I check in a condition the damage type that dealt in a unit...
-
Bleeding Sword Effect
-
Events
- Game - GDD_Event becomes Equal to 0.00
-
Conditions
- (GDD_DamageSource has an item of type Bleeding Sword) Equal to True
- (GDD_DamagedUnit is A structure) Equal to False
- GDD_Damage Greater than or equal to 0.01
-
Actions
- Trigger - Turn off (This trigger)
- Set BleedSword_DamageSMaxLife = (Max life of GDD_DamagedUnit)
- Set BleedSword_DamageSMaxLifeDealt = (BleedSword_DamageSMaxLife x 0.04)
- Unit - Cause GDD_DamageSource to damage GDD_DamagedUnit, dealing BleedSword_DamageSMaxLifeDealt damage of attack type Hero and damage type Normal
- Set BleedSword_Point = (Position of GDD_DamageSource)
- Unit - Create 1 Dummy Unit - Speller for (Owner of GDD_DamageSource) at BleedSword_Point facing Default building facing degrees
- Unit - Add Unit Attachment (Ability) - Bleeding Sword to (Last created unit)
- Unit - Order (Last created unit) to Night Elf Druid Of The Talon - Cyclone GDD_DamagedUnit
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation (udg_BleedSword_Point)
- Trigger - Turn on (This trigger)
-
Events
- Damage Type is Magic Equal to False
#2: Will this leak?
-
Bleeding Sword Add Effect
-
Events
- Unit - A unit Is attacked
-
Conditions
- ((Attacking unit) has an item of type Bleeding Sword) Equal to True
- ((Attacking unit) is in BleedingSword_Group) Equal to False
-
Actions
- Unit Group - Add (Attacking unit) to BleedingSword_Group
-
Events
-
Bleeding Sword Effect
-
Events
- Game - GDD_Event becomes Equal to 0.00
-
Conditions
- (GDD_DamageSource has an item of type Bleeding Sword) Equal to True
- (GDD_DamagedUnit is A structure) Equal to False
- (GDD_DamageSource is in BleedingSword_Group) Equal to True
- GDD_Damage Greater than or equal to 0.01
-
Actions
- Trigger - Turn off (This trigger)
- Unit Group - Remove GDD_DamageSource from BleedingSword_Group
- Set BleedSword_DamageSMaxLife = (Max life of GDD_DamagedUnit)
- Set BleedSword_DamageSMaxLifeDealt = (BleedSword_DamageSMaxLife x 0.04)
- Unit - Cause GDD_DamageSource to damage GDD_DamagedUnit, dealing BleedSword_DamageSMaxLifeDealt damage of attack type Hero and damage type Normal
- Set BleedSword_Point = (Position of GDD_DamageSource)
- Unit - Create 1 Dummy Unit - Speller for (Owner of GDD_DamageSource) at BleedSword_Point facing Default building facing degrees
- Unit - Add Unit Attachment (Ability) - Bleeding Sword to (Last created unit)
- Unit - Order (Last created unit) to Night Elf Druid Of The Talon - Cyclone GDD_DamagedUnit
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation (udg_BleedSword_Point)
- Trigger - Turn on (This trigger)
-
Events