Trigger:
- AI Talk
- Events
- Unit - A unit Dies
- Conditions
- ((Owner of (Triggering unit)) controller) Equal to User
- Actions
- Player Group - Pick every player in AI_Group and do (Actions)
- Loop - Actions
- For each (Integer AI_Talk_Integer) from 1 to 8, do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Player[AI_Talk_Integer] controller) Equal to Computer
- (Player[AI_Talk_Integer] slot status) Equal to Is playing
- Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: ((Name of Player[AI_Talk_Integer]) + AI_Talk[(Random integer number between 1 and 10)])
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- For each (Integer AI_Talk_Integer) from 1 to 8, do (Actions)
- Loop - Actions
- Player Group - Pick every player in AI_Group and do (Actions)
- Events
I try to make the AI look as if it really does the talk, but it doesn't work out very well. The message pop up at least twice. Any idea how to fix it?