All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
If the husband initiates divorce to his wife by the clear words of divorce in a drama, then his divorce takes place, and it does not matter if he said this just as a jest. The evidence about this is that it is confirmed that the Prophet said: "There are three things which if done seriously are valid and if done in jest are also valid: marriage, divorce and taking back a wife (to marital bond) after divorce." [Abu Daawood and At-Tirmithi]
For more benefit on the ruling of acting (in a film or else), please refer to Fataawa 87143 and 89099
Allaah Knows best.