I don't think the commentary has a direct correlation to the match events.
I don't think the commentary has a direct correlation to the match events.
Expressed above is my own opinion. ☻ Your results may vary.
▬ ▬ ▬▬ ▬ ▬▬ ▬ >BvB< ▬ ▬▬ ▬ ▬▬ ▬ ▬
[SIGPIC][/SIGPIC]
The way you do it is the events are decided, then it selects from a list of commentary consistent with that event. It's also easy to program something like that to show highlights.
Match Event 1 happens
Event results stored in variables
If found interesting, go to a subroutine which turns it into commentary, if not, continue on to Match event 2.
The only hard part would be setting the trigger to what is "interesting."
Notice how often stats change without any commentary?
This would logically explain this:
Match event 1 happens
MC got the ball, shoots get deflected out for corner
ST passes it in, Foul on the other ST
This is boring, next...
a few minutes pass on the game clock, your Corners, fouls and shots increase by 1. Would be really easy to code too.
If instead the game triggers that this was a highlight, it then "reads" the variables stored in the arrays (multi dimensional storages of data), in English.
Once this cycle completes, it resets to zero and runs the next event, looking for the next highlight to display.