Custom quest objectives - win 3 arenas [3.3.5]

Hello. I’m trying to create a custom quest that the player needs to win 3 arenas.

I know that objectives won't be shown in the 'quest view' but I think that the whole thing is possible. 
Dunno if functions OnQuestAccept() and OnQuestComplete() are needed here. 

Of course, that I should update the objective of the quest after completing the arena in the code, but I don't know how to add custom objective.

If there is anyone with some ideas, I would be grateful!

You can use KillCredits to do this. Make a quests which requires to kill a dummy creature, then give the winner team this killcredit.

working, thanks!