- Joined
- May 3, 2009
- Messages
- 22
I hope the title says everything I need. I need an item that gives a unit critical attack only to buildings. here is what I have but it's for all units and buildings
-
Initialization
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Unit Group - Pick every unit in (Units in (Entire map)) and do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






((Picked unit) is A structure) Equal to True
-
-





Then - Actions
-






Trigger - Add to Damage <gen> the event (Unit - (Picked unit) Takes damage)
-
-





Else - Actions
-
-
-
-
-
-
EnterRect
-

Events
-


Unit - A unit enters (Entire map)
-
-

Conditions
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




((Triggering unit) is A structure) Equal to True
-
-



Then - Actions
-




Trigger - Add to Damage <gen> the event (Unit - (Triggering unit) Takes damage)
-
-



Else - Actions
-
-
-
-
Damage
-

Events
-

Conditions
-


((Damage source) has an item of type Cursed Amulet part one) Equal to True
-


(Random integer number between 1 and 100) Less than or equal to 15
-
-

Actions
-


Trigger - Turn off (This trigger)
-


Set IntegerVariable = (Integer((Damage taken)))
-


Special Effect - Create a special effect attached to the origin of (Attacked unit) using Abilities\Spells\Items\AIso\AIsoTarget.mdl
-


Floating Text - Create floating text that reads ((String(((Damage taken) x 2.25))) + !) above (Triggering unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-


Floating Text - Set the velocity of (Last created floating text) to 30.00 towards 90.00 degrees
-


Floating Text - Change (Last created floating text): Disable permanence
-


Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
-


Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
-


Unit - Cause (Damage source) to damage (Triggering unit), dealing ((Damage taken) x 2.25) damage of attack type Normal and damage type Normal
-


Special Effect - Destroy (Last created special effect)
-


Trigger - Turn on (This trigger)
-
-
Last edited:

