I have these triggers, given to me from the tutorial i asked for the other day, but it doesn't seem to work on neutral passive, and its somewhat important it does, any ideas?
Code:
Setting The Units
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Set AllTheUnits = (Units in (Entire map))
Unit Group - Pick every unit in AllTheUnits and do (Actions)
Loop - Actions
Trigger - Add to Damage From Player To Enemy <gen> the event (Unit - (Picked unit) Takes damage)
Custom script: call DestroyGroup(udg_AllTheUnits)
Code:
Giving Other Units This Added Event
Events
Unit - A unit enters (Entire map)
Conditions
Actions
Trigger - Add to Damage From Player To Enemy <gen> the event (Unit - (Triggering unit) Takes damage)
Code:
Damage From Player To Enemy
Events
Conditions
((Owner of (Attacking unit)) controller) Equal to User
Actions
Floating Text - Create floating text that reads (String((Integer((Damage taken))))) at (Position of (Attacked unit)) with Z offset 0.00, using font size 7.00, color (100.00%, 0.00%, 0.00%), and 0.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 5.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 4.00 seconds