Trigger:
- Events
- Unit - A unit Dies
- Conditions
- (Owner of (Dying unit)) Equal to Player 12 (Brown)
- (Owner of (Killing unit)) Equal to Player 1 (Red)
- Actions
- If/Then/Else
- If - Conditions
- (Random integer number between 1 and 5) Equal to 1
- Then - Actions
- Floating Text - Create floating text that reads ((Name of (Killing unit)) + : |cffff0000Boom...Headshot!|r above (Killing unit) with Z offset 0.00, using font size 10.00, colour (100.00%, 100.00%, 100.00%), and 0.00% transparency
- Set BoomHeadshot = (Last created floating text)
- Floating Text - Show BoomHeadshot for (All players)
- Floating Text - Change BoomHeadshot: Disable permanence
- Floating Text - Change the lifespan of BoomHeadshot to 2.00 seconds
- Custom script: call DestroyTextTag ( udg_BoomHeadshot )
- Else - Actions
- Do nothing
- If - Conditions
- If/Then/Else
I haven't worked with floating text (not this far into it anyway)