- Joined
- Aug 5, 2010
- Messages
- 147
Im trying to make it so when a unit critically strikes the owner of the unit gets 20 gold.
Here is the trigger i created
Ive also used 'Unit - A unit Finishes casting an ability' in the trigger but it didnt work.
Here is the trigger i created
-
Crit Gold
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Critical Strike [Marine Sniper]
-
Actions
- Player - Add 20 to (Owner of (Casting unit)) Current gold
- Floating Text - Create floating text that reads +20 Gold at (Position of (Casting unit)) with Z offset 0.00, using font size 8.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
- Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
- Floating Text - Set the velocity of (Last created floating text) to 100.00 towards 0.00 degrees
-
Events
Ive also used 'Unit - A unit Finishes casting an ability' in the trigger but it didnt work.