- Joined
- Aug 3, 2004
- Messages
- 2,906
I've browsed the various threads on this subject and the below was my attempt. It doesn't work.
-
Marked Foe Damage
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
(Level of Spell Book (Marked Foe) for (Triggering unit)) Greater than 0
-
((Owner of (Triggering unit)) is an enemy of (Owner of (Attacking unit))) Equal to True
-
-
Actions
-
Trigger - Add to (This trigger) the event (Unit - (Attacked unit) Takes damage)
-
Set Marked_Foe_Damage = (Integer((Damage taken)))
-
Set Marked_Foe_Damage_Real = (Real(Marked_Foe_Damage))
-
Unit - Cause (Attacking unit) to damage (Triggering unit), dealing (0.25 x Marked_Foe_Damage_Real) damage of attack type Normal and damage type Magic
-
Floating Text - Create floating text that reads (String(Marked_Foe_Damage)) at (Position of (Triggering unit)) with Z offset 0.00, using font size 12.00, color (100.00%, 0.00%, 0.00%), and 25.00% transparency
-
Floating Text - Change (Last created floating text): Disable permanence
-
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
-
Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
-
-